You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.0 KiB
48 lines
1.0 KiB
{% extends "base_catalog.html" %}
|
|
{% load i18n %}
|
|
{% load url from future %}
|
|
|
|
{% block title %}{% trans "Password recovery" %}{% endblock %}
|
|
{% block bread_scrumbs %}
|
|
{% endblock %}
|
|
|
|
{% block page_title %}
|
|
<div class="page-title">
|
|
<h1>{% trans "Password recovery" %}</h1>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block content_list %}
|
|
<div class="m-article recovery-page">
|
|
|
|
<form class="pw-form" method="post" action="{{ url }}">{% csrf_token %}
|
|
|
|
<p class="label">{{ form.username_or_email.label }}</p>
|
|
|
|
<div>
|
|
|
|
|
|
|
|
{% if form.errors %}
|
|
{# если есть ошибка #}
|
|
<div class="required err input">
|
|
{{ form.username_or_email }}
|
|
</div>
|
|
<div class="error-text">
|
|
{{ form.errors.username_or_email.0 }}{# текст ошибки #}
|
|
</div>
|
|
|
|
{% else %}
|
|
{# ошибки нет #}
|
|
<div class="input">
|
|
{{ form.username_or_email }}
|
|
</div>
|
|
{% endif %}
|
|
<button type="submit" class="icon-check submit">{% trans 'Восстановить' %}</button>
|
|
</div>
|
|
|
|
|
|
</form>
|
|
|
|
</div>
|
|
{% endblock %} |