root / env / lib / python2.7 / site-packages / django / contrib / admin / templates / registration / password_reset_confirm.html @ 1a305335
History | View | Annotate | Download (1.15 KB)
1 | 1a305335 | officers | {% extends "admin/base_site.html" %} |
---|---|---|---|
2 | {% load i18n %} |
||
3 | {% load url from future %} |
||
4 | |||
5 | {% block breadcrumbs %} |
||
6 | <div class="breadcrumbs"> |
||
7 | <a href="{% url 'admin:index' %}">{% trans 'Home' %}</a> |
||
8 | › {% trans 'Password reset confirmation' %}
|
||
9 | </div>
|
||
10 | {% endblock %} |
||
11 | |||
12 | {% block title %}{% trans 'Password reset' %}{% endblock %} |
||
13 | |||
14 | {% block content %} |
||
15 | |||
16 | {% if validlink %} |
||
17 | |||
18 | <h1>{% trans 'Enter new password' %}</h1> |
||
19 | |||
20 | <p>{% trans "Please enter your new password twice so we can verify you typed it in correctly." %}</p> |
||
21 | |||
22 | <form action="" method="post">{% csrf_token %} |
||
23 | {{ form.new_password1.errors }} |
||
24 | <p class="aligned wide"><label for="id_new_password1">{% trans 'New password:' %}</label>{{ form.new_password1 }}</p> |
||
25 | {{ form.new_password2.errors }} |
||
26 | <p class="aligned wide"><label for="id_new_password2">{% trans 'Confirm password:' %}</label>{{ form.new_password2 }}</p> |
||
27 | <p><input type="submit" value="{% trans 'Change my password' %}" /></p> |
||
28 | </form>
|
||
29 | |||
30 | {% else %} |
||
31 | |||
32 | <h1>{% trans 'Password reset unsuccessful' %}</h1> |
||
33 | |||
34 | <p>{% trans "The password reset link was invalid, possibly because it has already been used. Please request a new password reset." %}</p> |
||
35 | |||
36 | {% endif %} |
||
37 | |||
38 | {% endblock %} |