diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-08-26 13:19:24 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-08-26 13:19:24 +0100 |
commit | b575f9e59a12e472f63a8f982e3bbafed1425e4d (patch) | |
tree | ac89a539179064efdb609e5ce69766df1f6f1212 | |
parent | 0e2e741fc8380fbd1d0b7b5ed16050d6f4dc27e2 (diff) | |
parent | 54fbadee103a81a08783ed1e5703dc156838fcbd (diff) |
Merge branch 'issues/forcouncils/8-change-password-tweaks'
-rw-r--r-- | templates/web/base/auth/change_password.html | 21 |
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' %] |