]> git.0d.be Git - panikdb.git/blob - panikdb/templates/registration/password_change_form.html
76c72ad7cd87c188242790cb50c16d55382b34dd
[panikdb.git] / panikdb / templates / registration / password_change_form.html
1 {% extends "registration/base.html" %}
2 {% load i18n static %}
3
4
5 {% block content %}<div id="content-main">
6
7 <h2>{% trans 'Password change' %}</h2>
8
9 <form action="" method="post">{% csrf_token %}
10 <div>
11 {% if form.errors %}
12     <p class="errornote">
13     {% blocktrans count counter=form.errors.items|length %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
14     </p>
15 {% endif %}
16
17 <p>{% trans "Please enter your old password, for security's sake, and then enter your new password twice so we can verify you typed it in correctly." %}</p>
18
19 <fieldset class="module aligned wide">
20
21 <div class="form-row">
22     {{ form.old_password.errors }}
23     <label for="id_old_password" class="required">{% trans 'Old password' %}:</label>{{ form.old_password }}
24 </div>
25
26 <div class="form-row">
27     {{ form.new_password1.errors }}
28     <label for="id_new_password1" class="required">{% trans 'New password' %}:</label>{{ form.new_password1 }}
29 </div>
30
31 <div class="form-row">
32 {{ form.new_password2.errors }}
33     <label for="id_new_password2" class="required">{% trans 'Password (again)' %}:</label>{{ form.new_password2 }}
34 </div>
35
36 </fieldset>
37
38 <div class="submit-row">
39   <button>{% trans 'Change my password' %}</button>
40 </div>
41
42 <script type="text/javascript">document.getElementById("id_old_password").focus();</script>
43 </div>
44 </form></div>
45
46 {% endblock %}