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