1 {% extends
"base.html" %}
3 {% block title %}{{ _(
"Edit user profile: %s") % user.realname }}{% 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 }}/edit">{{ _(
"Edit") }}
</a>
24 <div class=
"page-header">
26 {{ _(
"Edit user profile: %s") % user.realname }}
30 <form class=
"form-horizontal" method=
"POST" action=
"">
31 {% raw xsrf_form_html() %}
34 <legend>{{ _(
"User Identity") }}
</legend>
36 <div class=
"control-group">
37 <label class=
"control-label">{{ _(
"Username") }}
</label>
38 <div class=
"controls">
39 <span class=
"input-xlarge uneditable-input">{{ user.name }}
</span>
41 <span class=
"help-inline">
42 {{ _(
"Cannot be changed.") }}
47 <div class=
"control-group">
48 <label class=
"control-label" for=
"inputRealname">{{ _(
"Real name") }}
</label>
49 <div class=
"controls">
50 <input type=
"text" class=
"input-xlarge" id=
"inputRealname" name=
"realname" placeholder=
"{{ _("Real name
") }}"
51 value=
"{{ user.realname }}">
53 <span class=
"help-block">
54 {{ _(
"This field is optional, but we appreciate it very much if you type in your real name.") }}
59 <div class=
"control-group">
60 <label class=
"control-label" for=
"inputEmail">{{ _(
"Email address") }}
</label>
61 <div class=
"controls">
62 <input type=
"text" class=
"input-xlarge" id=
"inputEmail" name=
"email" placeholder=
"{{ _("Email address
") }}"
63 value=
"{{ user.email }}">
65 <span class=
"help-block">
66 {{ _(
"If the email address is changed, your account will be disabled until you confirm the new email address.") }}
72 {% if current_user.is_admin() %}
74 <legend>{{ _(
"Admin actions") }}
</legend>
76 <div class=
"control-group">
77 <label class=
"control-label" for=
"inputState">{{ _(
"State") }}
</label>
78 <div class=
"controls">
79 <select class=
"input-xlarge" id=
"inputState" name=
"state">
80 <option value=
"user">{{ _(
"User") }}
</option>
81 <option value=
"tester" {% if user.is_tester() %}
selected=
"selected"{% end %}
>
84 <option value=
"admin" {% if user.is_admin() %}
selected=
"selected"{% end %}
>
89 <span class=
"help-block">
90 {{ _(
"Define the permissions of the user.") }}
98 <legend>{{ _(
"Account security settings") }}
</legend>
100 <div class=
"control-group">
101 <label class=
"control-label" for=
"inputPass1">{{ _(
"Password") }}
</label>
102 <div class=
"controls">
103 <input type=
"password" class=
"input-xlarge" id=
"inputPass1" name=
"pass1" placeholder=
"{{ _("Password
") }}">
105 <span class=
"help-block">
106 {{ _(
"The password is used to secure the login and must be at least 8 characters.") }}
111 <div class=
"control-group">
112 <label class=
"control-label" for=
"inputPass2">{{ _(
"Confirm") }}
</label>
113 <div class=
"controls">
114 <input type=
"password" class=
"input-xlarge" id=
"inputPass2" name=
"pass2" placeholder=
"{{ _("Confirm password
") }}">
116 <span class=
"help-block">
117 {{ _(
"Leave the password fields empty to keep the current password.") }}
124 <legend>{{ _(
"Locale & timezone settings") }}
</legend>
126 <div class=
"control-group">
127 <label class=
"control-label" for=
"inputLocale">{{ _(
"Preferred language") }}
</label>
128 <div class=
"controls">
129 {% module SelectLocale(
name=
"locale",
id=
"inputLocale", preselect=user.locale) %}
131 <span class=
"help-block">
132 {{ _(
"Auto-detect will use the language transmitted by your browser.") }}
137 <div class=
"control-group">
138 <label class=
"control-label" for=
"inputTimezone">{{ _(
"Timezone") }}
</label>
139 <div class=
"controls">
140 {% module SelectTimezone(
name=
"timezone",
id=
"inputTimezone", preselect=user.timezone.zone) %}
142 <span class=
"help-block">
143 {{ _(
"Auto-detect will use the timezone transmitted by your browser.") }}
149 <div class=
"form-actions">
150 <button type=
"submit" class=
"btn btn-primary">{{ _(
"Save") }}
</button>
151 <a class=
"btn" href=
"/user/{{ user.name }}">{{ _(
"Cancel") }}
</a>