]> git.ozlabs.org Git - patchwork/blobdiff - templates/registration/password_change_form.html
templates: use custom templates for password change
[patchwork] / templates / registration / password_change_form.html
diff --git a/templates/registration/password_change_form.html b/templates/registration/password_change_form.html
new file mode 100644 (file)
index 0000000..8abe55e
--- /dev/null
@@ -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 %}