parent
205abceb2b
commit
ef1d2b4bc5
13 changed files with 253 additions and 158 deletions
@ -1,46 +1,55 @@ |
|||||||
{% extends "password_reset/base.html" %}{% load i18n %} |
{% extends "password_reset/base.html" %}{% load i18n %} |
||||||
|
|
||||||
{% block content %} |
{% block content %} |
||||||
<div class="container container_1200"> |
{% include 'partials/header.html' %} |
||||||
<hr> |
<div class="container mainScore"> |
||||||
</div> |
<div class="row"> |
||||||
|
<div class="col-lg-12"> |
||||||
<!-- block_registr --> |
<p class="titleScore">Сброс пароля</p> |
||||||
<div class="container container_1200"> |
</div> |
||||||
|
|
||||||
<div class="block_registr" style="height: auto;"> |
|
||||||
<div class="text-center registr">Сброс пароля</div> |
{% if invalid %}{% url "password_reset_recover" as recovery_url %} |
||||||
|
<div class="col-lg-12"> |
||||||
{% if invalid %}{% url "password_reset_recover" as recovery_url %} |
{% blocktrans %}Sorry, this password reset link is invalid. You can still |
||||||
{% blocktrans %}Sorry, this password reset link is invalid. You can still |
<a href="{{ recovery_url }}">request a new one</a>.{% endblocktrans %} |
||||||
<a href="{{ recovery_url }}">request a new one</a>.{% endblocktrans %} |
</div> |
||||||
{% else %} |
{% else %} |
||||||
|
|
||||||
{% blocktrans %}Hi, <strong>{{ username }}</strong>. Please choose your new password.{% endblocktrans %} |
|
||||||
|
|
||||||
|
|
||||||
<form method="post" action="{% url "password_reset_reset" token %}"> |
<div class="form-regestration" style="padding-top:10px;"> |
||||||
{% csrf_token %} |
{% blocktrans %}Hi, <strong>{{ username }}</strong>. Please choose your new password. |
||||||
|
{% endblocktrans %} |
||||||
<div class="form-group"> |
<form method="post" action="{% url "password_reset_reset" token %}"> |
||||||
<input type="password" name="{{ form.password1.name }}" class="col-xs-10 form-control" id="id_password1" |
{% csrf_token %} |
||||||
placeholder="Новый пароль"> |
|
||||||
<p>{{ form.password1.errors.as_text }}</p> |
<div class="col-lg-12 select-reg"> |
||||||
</div> |
<input type="password" name="{{ form.password1.name }}" class="box-sizing pass-reg" |
||||||
<div class="form-group"> |
id="id_password1" |
||||||
<input type="password" name="{{ form.password2.name }}" class="col-xs-10 form-control" id="id_password2" |
placeholder="Новый пароль"> |
||||||
placeholder="Подтверждение"> |
<p>{{ form.password1.errors.as_text }}</p> |
||||||
<p>{{ form.password2.errors.as_text }}</p> |
</div> |
||||||
</div> |
|
||||||
|
<div class="col-lg-12 select-reg"> |
||||||
<div> |
<input type="password" name="{{ form.password2.name }}" class="box-sizing pass-reg" |
||||||
<button type="submit" class="btn registr_button"> |
id="id_password2" |
||||||
Изменить пароль |
placeholder="Подтверждение"> |
||||||
</button> |
<p>{{ form.password2.errors.as_text }}</p> |
||||||
</div> |
</div> |
||||||
</form> |
|
||||||
{% endif %} |
<div class="col-lg-12 select-reg"> |
||||||
|
<button type="submit" class="reg-sub"> |
||||||
|
Изменить пароль |
||||||
|
</button> |
||||||
|
</div> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
{% endif %} |
||||||
|
|
||||||
|
{% include 'partials/footer.html' %} |
||||||
|
</div> |
||||||
</div> |
</div> |
||||||
</div> |
|
||||||
<!-- block_registr end --> |
|
||||||
{% endblock %} |
{% endblock %} |
||||||
|
|||||||
@ -1,7 +1,15 @@ |
|||||||
{% extends 'partials/base.html' %} |
{% extends 'partials/base.html' %} |
||||||
|
|
||||||
{% block content %} |
{% block content %} |
||||||
<div class="col-lg-12"> |
{% include 'partials/header.html' %} |
||||||
<p class="titleScore">Выход</p> |
<div class="container mainScore"> |
||||||
</div> |
<div class="row"> |
||||||
|
<div class="col-lg-12"> |
||||||
|
<p class="titleScore">Вы вышли</p> |
||||||
|
</div> |
||||||
|
|
||||||
|
{% include 'partials/footer.html' %} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
{% endblock %} |
{% endblock %} |
||||||
|
|||||||
Loading…
Reference in new issue