]> git.ozlabs.org Git - patchwork/blob - templates/registration/password_change_form.html
templates: use custom templates for password change
[patchwork] / templates / registration / password_change_form.html
1 {% extends "base.html" %}
2
3 {% block title %}Password Change{% endblock %}
4 {% block heading %}Password Change{% endblock %}
5
6 {% block body %}
7
8 <p>Please enter your old password, for security's sake, and then enter your new
9 password twice so we can verify you typed it in correctly.</p>
10
11 <form method="post">
12 {% csrf_token %}
13
14 <table class="form passwordform">
15
16 {% if form.errors %}
17  <tr>
18   <td colspan="2" class="error">Please correct the errors below.</p>
19  </tr>
20 {% endif %}
21
22
23 {% for field in form %}
24   <tr>
25    <td>{{ field.label_tag }}</td>
26    <td>
27     {{ field.errors }}
28     {{ field }}
29 {% if field.help_text %}
30     <div class="help_text"/>{{ field.help_text }}</div>
31 {% endif %}
32    </td>
33   </tr>
34 {% endfor %}
35
36  <tr>
37   <td colspan="2" class="error">
38    <input type="submit" value="Change my password" class="default" />
39   </td>
40  </tr>
41
42 </table>
43
44 </form>
45 {% endblock %}