| 1 |
{% extends "account/base.html" %} |
| 2 |
|
| 3 |
{% load i18n %} |
| 4 |
{% load bootstrap_tags %} |
| 5 |
|
| 6 |
{% block head_title %}{% trans "Change Password" %}{% endblock %} |
| 7 |
|
| 8 |
{% block content %} |
| 9 |
<h1>{% if token_fail %}{% trans "Bad Token" %}{% else %}{% trans "Change Password" %}{% endif %}</h1> |
| 10 |
|
| 11 |
{% if token_fail %} |
| 12 |
{% url 'account_reset_password' as passwd_reset_url %} |
| 13 |
<p>{% blocktrans %}The password reset link was invalid, possibly because it has already been used. Please request a <a href="{{ passwd_reset_url }}">new password reset</a>.{% endblocktrans %}</p> |
| 14 |
{% else %} |
| 15 |
{% if form %} |
| 16 |
<form method="POST" action="." class="form-horizontal"> |
| 17 |
{% bootstrap_form_horizontal form 2 4 %} |
| 18 |
<div class="form-group"> |
| 19 |
<div class="offset-md-2 col-md-10"> |
| 20 |
<input class="btn btn-primary" type="submit" name="action" value="{% trans 'change password' %}"/> |
| 21 |
</div> |
| 22 |
</div> |
| 23 |
</form> |
| 24 |
{% else %} |
| 25 |
<p>{% trans 'Your password is now changed.' %}</p> |
| 26 |
{% endif %} |
| 27 |
{% endif %} |
| 28 |
{% endblock %} |