5cdd68e3af66d387ce5a7d39d36a57ac5de923b8
[wolnelektury.git] / wolnelektury / templates / account / password_reset_from_key.html
1 {% extends "base.html" %}
2 {% load i18n %}
3 {% load ajaxable_tags %}
4
5 {% block titleextra %}{% trans "Change Password" %}{% endblock %}
6
7 {% block body %}
8     <h1>{% if token_fail %}{% trans "Bad Token" %}{% else %}{% trans "Change Password" %}{% endif %}</h1>
9     
10     {% if token_fail %}
11         {% url account_reset_password as passwd_reset_url %}
12         <p class="normal-text">{% 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>
13     {% else %}
14         {% if form %}
15             <form method="POST" action="" class="cuteform hidelabels">
16                 {% csrf_token %}
17                 <ul>
18                                 {{ form|placeholdized_ul }}
19                                 <li><input type="submit" name="action" value="{% trans "change password" %}"/></li>
20                 </ul>
21             </form>
22         {% else %}
23             <p class="normal-text">{% trans 'Your password is now changed.' %}</p>
24         {% endif %}
25     {% endif %}
26 {% endblock %}