From d8afca69010dc7d2c94170656c2f7d2935bb6390 Mon Sep 17 00:00:00 2001
From: Todd Dembrey <todd.dembrey@torchbox.com>
Date: Tue, 17 Jul 2018 17:41:49 +0100
Subject: [PATCH] Update the change password template styling

---
 .../templates/users/change_password.html      | 43 +++++++++----------
 1 file changed, 20 insertions(+), 23 deletions(-)

diff --git a/opentech/apply/users/templates/users/change_password.html b/opentech/apply/users/templates/users/change_password.html
index 02e74a077..ba6419db4 100644
--- a/opentech/apply/users/templates/users/change_password.html
+++ b/opentech/apply/users/templates/users/change_password.html
@@ -5,36 +5,33 @@
 {% block title %}{% trans "Set a password" %}{% endblock %}
 
 {% block content %}
-<div class="wrapper wrapper--small wrapper--bottom-space">
+<div class="wrapper wrapper--small wrapper--inner-space-medium">
+    <form class="form" action="" method="POST" novalidate>
+        {% if form.non_field_errors %}
+            <ul class="errorlist">
+                {% for error in form.non_field_errors %}
+                    <li>{{ error }}</li>
+                {% endfor %}
+            </ul>
+        {% endif %}
 
-    {% if form.non_field_errors %}
-        <ul class="errorlist">
-            {% for error in form.non_field_errors %}
-                <li>{{ error }}</li>
-            {% endfor %}
-        </ul>
-    {% endif %}
+        {% if form.errors %}
+            <ul class="errorlist">
+                {% blocktrans count counter=form.errors.items|length %}
+                <li>Please correct the error below.</li>
+                {% plural %}
+                <li>Please correct the errors below.</li>
+                {% endblocktrans %}
+            </ul>
+        {% endif %}
 
-    {% if form.errors %}
-        <ul class="errorlist">
-            {% blocktrans count counter=form.errors.items|length %}
-            <li>Please correct the error below.</li>
-            {% plural %}
-            <li>Please correct the errors below.</li>
-            {% endblocktrans %}
-        </ul>
-    {% endif %}
-
-    <form class="form form--with-p-tags" action="" method="POST" novalidate>
         {% csrf_token %}
 
         {% for field in form %}
-            {{ field.errors }}
-            <p>{{ field.label_tag }}</p>
-            <p>{{ field }}</p>
+            {% include "funds/includes/field.html" %}
         {% endfor %}
 
-        <button class="link link--button-secondary" type="submit">{% trans 'Reset password' %}</button>
+        <button class="button button--primary" type="submit">{% trans 'Reset password' %}</button>
     </form>
 </div>
 {% endblock %}
-- 
GitLab