diff options
-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' %] |