diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2010-12-10 12:24:14 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2010-12-10 12:24:14 +0800 |
commit | 7fb5a6477b853ef758201c3d4b38cd5666b97ef3 (patch) | |
tree | 9f279d0ff306ac5d2b4198efbd2a6b02038e2432 /templates | |
parent | ec565d23253cfea2ddc3335e45ce58a0bc1bb052 (diff) | |
download | patchwork-7fb5a6477b853ef758201c3d4b38cd5666b97ef3.tar patchwork-7fb5a6477b853ef758201c3d4b38cd5666b97ef3.tar.gz |
templates: use custom templates for password change
Add a couple of templates to keep the password change flow in the same
look & feel as the rest of the site.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/registration/password_change_done.html | 10 | ||||
-rw-r--r-- | templates/registration/password_change_form.html | 45 |
2 files changed, 55 insertions, 0 deletions
diff --git a/templates/registration/password_change_done.html b/templates/registration/password_change_done.html new file mode 100644 index 0000000..3f3061f --- /dev/null +++ b/templates/registration/password_change_done.html @@ -0,0 +1,10 @@ +{% extends "base.html" %} + +{% block title %}Password Change Complete{% endblock %} +{% block heading %}Password Change Complete{% endblock %} + +{% block body %} + +<p>Your password has been changed sucessfully.</p> + +{% endblock %} diff --git a/templates/registration/password_change_form.html b/templates/registration/password_change_form.html new file mode 100644 index 0000000..8abe55e --- /dev/null +++ b/templates/registration/password_change_form.html @@ -0,0 +1,45 @@ +{% extends "base.html" %} + +{% block title %}Password Change{% endblock %} +{% block heading %}Password Change{% endblock %} + +{% block body %} + +<p>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> + +<form method="post"> +{% csrf_token %} + +<table class="form passwordform"> + +{% if form.errors %} + <tr> + <td colspan="2" class="error">Please correct the errors below.</p> + </tr> +{% endif %} + + +{% for field in form %} + <tr> + <td>{{ field.label_tag }}</td> + <td> + {{ field.errors }} + {{ field }} +{% if field.help_text %} + <div class="help_text"/>{{ field.help_text }}</div> +{% endif %} + </td> + </tr> +{% endfor %} + + <tr> + <td colspan="2" class="error"> + <input type="submit" value="Change my password" class="default" /> + </td> + </tr> + +</table> + +</form> +{% endblock %} |