]>
Commit | Line | Data |
---|---|---|
f6e6ff79 MT |
1 | {% extends "base.html" %} |
2 | ||
3 | {% block title %}{{ _("Change password") }}{% end block %} | |
4 | ||
5 | {% block body %} | |
6 | <ul class="breadcrumb"> | |
7 | <li> | |
8 | <a href="/">{{ _("Home") }}</a> | |
9 | <span class="divider">/</span> | |
10 | </li> | |
11 | <li> | |
12 | <a href="/users">{{ _("Users") }}</a> | |
13 | <span class="divider">/</span> | |
14 | </li> | |
15 | <li> | |
5aa556bf | 16 | <a href="/user/{{ user.name }}">{{ user.realname }}</a> |
f6e6ff79 MT |
17 | <span class="divider">/</span> |
18 | </li> | |
19 | <li class="active"> | |
5aa556bf | 20 | <a href="/user/{{ user.name }}/passwd">{{ _("Change password") }}</a> |
f6e6ff79 MT |
21 | </li> |
22 | </ul> | |
23 | ||
24 | <div class="page-header"> | |
25 | <h1>{{ _("Change password") }}</h1> | |
26 | </div> | |
27 | ||
28 | <div class="row"> | |
29 | <div class="span6 offset3"> | |
30 | {% if user == current_user %} | |
31 | <p> | |
32 | {{ _("You are going to change your password.") }} | |
33 | </p> | |
34 | <p> | |
35 | {{ _("To do so, you need to enter your current password and the new password twice.") }} | |
36 | </p> | |
37 | {% else %} | |
38 | <p> | |
5aa556bf | 39 | {{ _("In this dialog, you may change the password of %s.") % user.realname }} |
f6e6ff79 MT |
40 | </p> |
41 | {% end %} | |
42 | <hr /> | |
43 | </div> | |
44 | </div> | |
45 | ||
46 | <div class="row"> | |
47 | <div class="span6 offset3"> | |
48 | {% if error_msg %} | |
49 | <div class="alert alert-block alert-important"> | |
50 | <a class="close" data-dismiss="alert">×</a> | |
5aa556bf | 51 | <strong>{{ _("Oops!") }}</strong> {{ error_msg }} |
f6e6ff79 MT |
52 | </div> |
53 | {% end %} | |
54 | ||
55 | <form class="form-horizontal" method="POST" action=""> | |
f55d0127 | 56 | {% raw xsrf_form_html() %} |
f6e6ff79 MT |
57 | |
58 | <fieldset> | |
59 | {% if user == current_user %} | |
60 | <div class="control-group"> | |
61 | <label class="control-label">{{ _("Old password") }}</label> | |
62 | <div class="controls"> | |
63 | <input type="password" class="input-xlarge" name="pass0" /> | |
64 | ||
65 | <p class="help-block"> | |
66 | {{ _("Please provide your old password.") }} | |
67 | </p> | |
68 | </div> | |
69 | </div> | |
70 | {% end %} | |
71 | ||
72 | <div class="control-group"> | |
73 | <label class="control-label">{{ _("New password") }}</label> | |
74 | <div class="controls"> | |
75 | <input type="password" class="input-xlarge" name="pass1" /> | |
76 | ||
77 | <p class="help-block"> | |
78 | {{ _("Choose a new password. Make sure that it is as strong as possible.") }} | |
79 | </p> | |
80 | </div> | |
81 | </div> | |
82 | ||
83 | <div class="control-group"> | |
84 | <label class="control-label">{{ _("Confirm") }}</label> | |
85 | <div class="controls"> | |
86 | <input type="password" class="input-xlarge" name="pass2" /> | |
87 | ||
88 | <p class="help-block"> | |
89 | {{ _("Confirm the new password.") }} | |
90 | </p> | |
91 | </div> | |
92 | </div> | |
93 | ||
94 | <div class="form-actions"> | |
95 | <button type="submit" class="btn btn-primary">{{ _("Change password") }}</button> | |
5aa556bf | 96 | <a class="btn" href="/user/{{ user.name }}">{{ _("Cancel") }}</a> |
f6e6ff79 MT |
97 | </div> |
98 | </fieldset> | |
99 | </form> | |
100 | </div> | |
101 | </div> | |
102 | {% end %} |