aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-08-25 14:18:23 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-08-25 14:18:23 +0100
commit54fbadee103a81a08783ed1e5703dc156838fcbd (patch)
tree7b76dee2fee27a9d946ef54d27cb0d80a8a42913
parent2c15366893abcabc09b5b743199525412e5a2940 (diff)
Improve change password form/success page.
-rw-r--r--templates/web/base/auth/change_password.html21
1 files changed, 15 insertions, 6 deletions
diff --git a/templates/web/base/auth/change_password.html b/templates/web/base/auth/change_password.html
index 44b695e0d..80708abb1 100644
--- a/templates/web/base/auth/change_password.html
+++ b/templates/web/base/auth/change_password.html
@@ -1,11 +1,19 @@
-[% INCLUDE 'header.html', title = loc('Change password'), bodyclass = 'authpage' %]
-
-<h1>[% loc('Change password') %]</h1>
+[%
+SET bclass = 'authpage';
+SET bclass = 'fullwidthpage' IF password_changed;
+INCLUDE 'header.html', title = loc('Change password'), bodyclass = bclass
+%]
[% IF password_changed %]
- <p class="form-success">[% loc('Your password has been changed') %]</p>
-[% END %]
+ <div class="confirmation-header">
+ <h1>[% loc('Your password has been changed') %]</h1>
+ <p><a href="/my">[% loc('Your account') %]</a></p>
+ </div>
+
+[% ELSE %]
+
+<h1>[% loc('Change password') %]</h1>
<form action="[% c.uri_for('change_password') %]" method="post" name="change_password" class="fieldset">
<input type="hidden" name="token" value="[% csrf_token %]">
@@ -24,7 +32,7 @@
[% END %]
<div class="form-field">
- <label for="new_password">[% loc('Password:') %]</label>
+ <label for="new_password">[% loc('New password:') %]</label>
<input type="password" name="new_password" value="[% new_password | html %]">
</div>
<div class="form-field">
@@ -38,5 +46,6 @@
</fieldset>
</form>
+[% END %]
[% INCLUDE 'footer.html' %]