]>
Commit | Line | Data |
---|---|---|
9137135a MT |
1 | {% extends "base.html" %} |
2 | ||
cd870d0a MT |
3 | {% block title %}{{ _("Edit user profile: %s") % user.realname }}{% end block %} |
4 | ||
9137135a | 5 | {% block body %} |
c28a3768 JS |
6 | |
7 | <div class="row"> | |
8 | <div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12"> | |
9 | <nav aria-label="breadcrumb" role="navigation"> | |
10 | <ol class="breadcrumb"> | |
11 | <li class="breadcrumb-item"><a href="/">{{ _("Home") }}</a></li> | |
12 | <li class="breadcrumb-item"> | |
13 | <a href="/users">{{ _("Users") }}</a> | |
14 | </li> | |
15 | <li class="breadcrumb-item"> | |
16 | <a href="/user/{{ user.name }}">{{ user.realname }}</a> | |
17 | </li> | |
18 | <li class="breadcrumb-item active"> | |
19 | <a href="/user/{{ user.name }}/edit">{{ _("Edit") }}</a> | |
20 | </li> | |
21 | </ol> | |
22 | </nav> | |
23 | </div> | |
cd870d0a | 24 | </div> |
9137135a | 25 | |
c28a3768 JS |
26 | <div class="row"> |
27 | <div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12"> | |
28 | <h2 style="word-wrap: break-word;"> | |
29 | {{ _("Edit user profile: %s") % user.realname }} | |
30 | </h2> | |
cd870d0a | 31 | </div> |
c28a3768 JS |
32 | </div> |
33 | <div class="row"> | |
34 | <div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12"> | |
35 | <form method="POST" action=""> | |
36 | {% raw xsrf_form_html() %} | |
37 | ||
38 | <fieldset> | |
39 | <legend>{{ _("User Identity") }}</legend> | |
40 | ||
41 | <div class="form-group"> | |
42 | <label for="username">{{ _("Username") }}</label> | |
43 | <input type="text" class="form-control" id="username" name="username" | |
44 | aria-describedby="usernameHelp" value="{{ user.name }}" disabled> | |
45 | <small id="usernameHelp" class="form-text text-muted"> | |
46 | {{ _("Cannot be changed.") }} | |
47 | </small> | |
48 | </div> | |
49 | ||
50 | <div class="form-group"> | |
51 | <label for="inputRealname">{{ _("Real name") }}</label> | |
52 | <input type="text" class="form-control" id="inputRealname" name="realname" aria-describedby="realnameHelp" | |
53 | placeholder="{{ _("Real name") }}" value="{{ user.realname }}"> | |
54 | <small id="inputRealnameHelp" class="form-text text-muted"> | |
55 | {{ _("This field is optional, but we appreciate it very much if you type in your real name.") }} | |
56 | </small> | |
57 | </div> | |
58 | </fieldset> | |
59 | ||
60 | <fieldset> | |
61 | <legend>{{ _("Email Adresses") }}</legend> | |
62 | ||
63 | <div class="form-group"> | |
64 | <label for="primary_email_address">{{ _("Primary email address") }}</label> | |
65 | <select class="form-control" id="primary_email_address" name="primary_email_address" aria-describedby="primary_email_addressHelp"> | |
66 | {% for email in user.emails %} | |
67 | <option {% if user.email == email %}selected{% end %}>{{ email }}</option> | |
68 | {% end %} | |
69 | </select> | |
70 | <small id="primary_email_addressHelp" class="form-text text-muted"> | |
71 | {{ _("This email address will be used for all messages to you.") }} | |
72 | </small> | |
73 | </div> | |
74 | </fieldset> | |
75 | ||
76 | <fieldset> | |
77 | <legend>{{ _("Account security settings") }}</legend> | |
78 | ||
79 | <div class="form-group"> | |
80 | <label for="inputPass1">{{ _("Password") }}</label> | |
81 | <input type="password" class="form-control" | |
82 | id="inputPass1" name="pass1" aria-describedby="pass1Help" placeholder="{{ _("Password") }}"> | |
83 | <small id="inputPass1Help" class="form-text text-muted"> | |
84 | {{ _("The password is used to secure the login and must be at least 8 characters.") }} | |
85 | </small> | |
86 | </div> | |
87 | ||
88 | <div class="form-group"> | |
89 | <label for="inputPass2">{{ _("Confirm Password") }}</label> | |
90 | <input type="password" class="form-control" | |
91 | id="inputPass2" name="pass2" aria-describedby="inputPass2Help" placeholder="{{ _("Confirm Password") }}"> | |
92 | <small id="inputPass2Help" class="form-text text-muted"> | |
93 | {{ _("Leave the password fields empty to keep the current password.") }} | |
94 | </small> | |
95 | </div> | |
96 | </fieldset> | |
97 | ||
98 | <fieldset> | |
99 | <legend>{{ _("Locale & timezone settings") }}</legend> | |
100 | ||
101 | <div class="form-group"> | |
102 | <label for="inputLocale">{{ _("Preferred language") }}</label> | |
103 | {% module SelectLocale(name="locale", id="inputLocale", preselect=user.locale) %} | |
104 | <small id="inputLocaleHelp" class="form-text text-muted"> | |
105 | {{ _("Auto-detect will use the language transmitted by your browser.") }} | |
106 | </small> | |
107 | </div> | |
108 | ||
109 | <div class="form-group"> | |
110 | <label for="inputTimezone">{{ _("Timezone") }}</label> | |
111 | {% module SelectTimezone(name="timezone", id="inputTimezone", preselect=user.timezone.zone) %} | |
112 | <small id="inputTimezoneHelp" class="form-text text-muted"> | |
113 | {{ _("Auto-detect will use the timezone transmitted by your browser.") }} | |
114 | </small> | |
115 | </div> | |
116 | </fieldset> | |
117 | ||
118 | <button type="submit" class="btn btn-primary">{{ _("Save") }}</button> | |
119 | <a class="btn btn-light" href="/user/{{ user.name }}">{{ _("Cancel") }}</a> | |
120 | </form> | |
9137135a | 121 | {% end block %} |