blob: c10560c3e3e73bdad3619b2888e3ca1d80404d2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
[% INCLUDE 'header.html', title = loc('Change Password') %]
<h1>[% loc('Change Password') %]</h1>
[% IF password_changed %]
<p id="fixed">[% loc('Your password has been changed') %]</p>
[% END %]
<form action="[% c.uri_for('change_password') %]" method="post" name="change_password" class="fieldset">
[% IF password_error;
errors = {
missing => loc('Please enter a password'),
mismatch => loc('The passwords do not match'),
other => loc('Please check the passwords and try again'),
};
loc_password_error = errors.$password_error || errors.other; %]
<div class="form-error">[% loc_password_error %]</div>
[% END %]
<div class="form-field">
<label for="new_password">[% loc('Password:') %]</label>
<input type="password" name="new_password" value="[% new_password | html %]">
</div>
<div class="form-field">
<label for="confirm">[% loc('Again:') %]</label>
<input type="password" name="confirm" value="[% confirm | html %]">
</div>
<div class="checkbox">
<input type="submit" value="[% loc('Change Password') %]">
</div>
</form>
[% INCLUDE 'footer.html' %]
|