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.
46 lines
1.6 KiB
46 lines
1.6 KiB
{% extends "password_reset/base.html" %}{% load i18n %}
|
|
|
|
{% block content %}
|
|
<div class="container container_1200">
|
|
<hr>
|
|
</div>
|
|
|
|
<!-- block_registr -->
|
|
<div class="container container_1200">
|
|
|
|
<div class="block_registr" style="height: auto;">
|
|
<div class="text-center registr">Сброс пароля</div>
|
|
|
|
{% if invalid %}{% url "password_reset_recover" as recovery_url %}
|
|
{% blocktrans %}Sorry, this password reset link is invalid. You can still
|
|
<a href="{{ recovery_url }}">request a new one</a>.{% endblocktrans %}
|
|
{% else %}
|
|
|
|
{% blocktrans %}Hi, <strong>{{ username }}</strong>. Please choose your new password.{% endblocktrans %}
|
|
|
|
|
|
<form method="post" action="{% url "password_reset_reset" token %}">
|
|
{% csrf_token %}
|
|
|
|
<div class="form-group">
|
|
<input type="password" name="{{ form.password1.name }}" class="col-xs-10 form-control" id="id_password1"
|
|
placeholder="Новый пароль">
|
|
<p>{{ form.password1.errors.as_text }}</p>
|
|
</div>
|
|
<div class="form-group">
|
|
<input type="password" name="{{ form.password2.name }}" class="col-xs-10 form-control" id="id_password2"
|
|
placeholder="Подтверждение">
|
|
<p>{{ form.password2.errors.as_text }}</p>
|
|
</div>
|
|
|
|
<div>
|
|
<button type="submit" class="btn registr_button">
|
|
Изменить пароль
|
|
</button>
|
|
</div>
|
|
</form>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
<!-- block_registr end -->
|
|
{% endblock %}
|
|
|