1 {% extends
"base.html" %}
3 {% block title %}{{ _(
"Change password") }}{% end block %}
6 <ul class=
"breadcrumb">
8 <a href=
"/">{{ _(
"Home") }}
</a>
9 <span class=
"divider">/
</span>
12 <a href=
"/users">{{ _(
"Users") }}
</a>
13 <span class=
"divider">/
</span>
16 <a href=
"/user/{{ user.name }}">{{ user.realname }}
</a>
17 <span class=
"divider">/
</span>
20 <a href=
"/user/{{ user.name }}/passwd">{{ _(
"Change password") }}
</a>
24 <div class=
"page-header">
25 <h1>{{ _(
"Change password") }}
</h1>
29 <div class=
"span6 offset3">
30 {% if user == current_user %}
32 {{ _(
"You are going to change your password.") }}
35 {{ _(
"To do so, you need to enter your current password and the new password twice.") }}
39 {{ _(
"In this dialog, you may change the password of %s.") % user.realname }}
47 <div class=
"span6 offset3">
49 <div class=
"alert alert-block alert-important">
50 <a class=
"close" data-dismiss=
"alert">×</a>
51 <strong>{{ _(
"Oops!") }}
</strong> {{ error_msg }}
55 <form class=
"form-horizontal" method=
"POST" action=
"">
56 {% raw xsrf_form_html() %}
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" />
65 <p class=
"help-block">
66 {{ _(
"Please provide your old password.") }}
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" />
77 <p class=
"help-block">
78 {{ _(
"Choose a new password. Make sure that it is as strong as possible.") }}
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" />
88 <p class=
"help-block">
89 {{ _(
"Confirm the new password.") }}
94 <div class=
"form-actions">
95 <button type=
"submit" class=
"btn btn-primary">{{ _(
"Change password") }}
</button>
96 <a class=
"btn" href=
"/user/{{ user.name }}">{{ _(
"Cancel") }}
</a>