Password reset, standardize some stuff.
[cas.git] / src / accounts / templates / registration / password_change_form.html
diff --git a/src/accounts/templates/registration/password_change_form.html b/src/accounts/templates/registration/password_change_form.html
new file mode 100644 (file)
index 0000000..c968ee5
--- /dev/null
@@ -0,0 +1,39 @@
+{% extends "account/base.html" %}
+{% load i18n static %}
+
+{% block title %}{{ title }}{% endblock %}
+
+
+{% block menu %}
+  {% with menu='password' %}
+    {{ block.super }}
+  {% endwith %}
+{% endblock %}
+
+
+{% block accounts-content %}
+  <h1>{{ title }}</h1>
+
+  <form method="post">
+    {% csrf_token %}
+    {% if form.errors %}
+      <p class="errornote">
+        {% if form.errors.items|length == 1 %}
+          {% trans "Please correct the error below." %}
+        {% else %}
+          {% trans "Please correct the errors below." %}
+        {% endif %}
+      </p>
+    {% endif %}
+
+    <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>
+
+    {{ form.as_p }}
+
+    <p>
+      <input type="submit" value="{% trans 'Change my password' %}">
+    </p>
+
+  </form>
+
+{% endblock %}