Сделаны страницы входа и регистрации, сжата картинка intro.png

This commit is contained in:
2022-10-09 13:44:48 +03:00
parent 47359a7932
commit c757646354
6 changed files with 94 additions and 27 deletions

View File

@@ -1,20 +1,23 @@
{% extends 'base.html' %}
{% extends 'registration/login.html' %}
{% block title %} Аккаунт | регистрация {% endblock %}
{% block content %}
<h1 class=deprecated-page-header"> Ваш аккаунт </h1>
<h3>Регистрация</h3>
<form action="" method="POST">
{% csrf_token %}
<table>
<tbody>
{{ form.as_table }}
</tbody>
</table>
<button type="submit">Регистрация</button>
</form>
{% block page-title %} Регистрация {% endblock %}
{% block form-action-url %}{% url 'register' %}{% endblock %}
{# пустой блок #}
{% block form-pre-fields %}
<div>
Уже зарегистрированы? <a href="{% url 'login' %}">Войти</a>
</div>
{% endblock %}
{% block form-pre-submit %}
<div>
Уже зарегистрированы? <a href="{% url 'login' %}">Вход</a>
<input id="user-agreement-check" type="checkbox" required>
<label for="user-agreement-check">
Я принимаю <a href="{% url 'user-agreement' %}">пользовательское соглашение</a>
</label>
</div>
{% endblock %}
{% block submit-button-text %}Отправить{% endblock %}