Show More
@@ -1,161 +1,161 b'' | |||
|
1 | 1 | <%namespace name="base" file="/base/base.mako"/> |
|
2 | 2 | |
|
3 | 3 | <div class="panel panel-default user-profile"> |
|
4 | 4 | <div class="panel-heading"> |
|
5 | 5 | <h3 class="panel-title">${_('User Profile')}</h3> |
|
6 | 6 | </div> |
|
7 | 7 | <div class="panel-body"> |
|
8 | 8 | <div class="user-profile-content"> |
|
9 | 9 | ${h.secure_form(h.route_path('user_update', user_id=c.user.user_id), class_='form', request=request)} |
|
10 | 10 | <% readonly = None %> |
|
11 | 11 | <% disabled = "" %> |
|
12 | 12 | %if c.extern_type != 'rhodecode': |
|
13 | 13 | <% readonly = "readonly" %> |
|
14 | 14 | <% disabled = " disabled" %> |
|
15 | 15 | <div class="alert-warning" style="margin:0px 0px 20px 0px; padding: 10px"> |
|
16 | 16 | <strong>${_('This user was created from external source (%s). Editing some of the settings is limited.' % c.extern_type)}</strong> |
|
17 | 17 | </div> |
|
18 | 18 | %endif |
|
19 | 19 | <div class="form"> |
|
20 | 20 | <div class="fields"> |
|
21 | 21 | <div class="field"> |
|
22 | 22 | <div class="label photo"> |
|
23 | 23 | ${_('Photo')}: |
|
24 | 24 | </div> |
|
25 | 25 | <div class="input profile"> |
|
26 | 26 | %if c.visual.use_gravatar: |
|
27 | 27 | ${base.gravatar(c.user.email, 100)} |
|
28 | 28 | <p class="help-block">${_('Change the avatar at')} <a href="http://gravatar.com">gravatar.com</a>.</p> |
|
29 | 29 | %else: |
|
30 | 30 | ${base.gravatar(c.user.email, 100)} |
|
31 | 31 | %endif |
|
32 | 32 | </div> |
|
33 | 33 | </div> |
|
34 | 34 | <div class="field"> |
|
35 | 35 | <div class="label"> |
|
36 | 36 | ${_('Username')}: |
|
37 | 37 | </div> |
|
38 | 38 | <div class="input"> |
|
39 | 39 | ${h.text('username', class_='%s medium' % disabled, readonly=readonly)} |
|
40 | 40 | </div> |
|
41 | 41 | </div> |
|
42 | 42 | <div class="field"> |
|
43 | 43 | <div class="label"> |
|
44 | 44 | <label for="name">${_('First Name')}:</label> |
|
45 | 45 | </div> |
|
46 | 46 | <div class="input"> |
|
47 | 47 | ${h.text('firstname', class_="medium")} |
|
48 | 48 | </div> |
|
49 | 49 | </div> |
|
50 | 50 | |
|
51 | 51 | <div class="field"> |
|
52 | 52 | <div class="label"> |
|
53 | 53 | <label for="lastname">${_('Last Name')}:</label> |
|
54 | 54 | </div> |
|
55 | 55 | <div class="input"> |
|
56 | 56 | ${h.text('lastname', class_="medium")} |
|
57 | 57 | </div> |
|
58 | 58 | </div> |
|
59 | 59 | |
|
60 | 60 | <div class="field"> |
|
61 | 61 | <div class="label"> |
|
62 | 62 | <label for="email">${_('Email')}:</label> |
|
63 | 63 | </div> |
|
64 | 64 | <div class="input"> |
|
65 | 65 | ## we should be able to edit email ! |
|
66 | 66 | ${h.text('email', class_="medium")} |
|
67 | 67 | </div> |
|
68 | 68 | </div> |
|
69 | 69 | <div class="field"> |
|
70 | 70 | <div class="label"> |
|
71 | 71 | <label for="description">${_('Description')}:</label> |
|
72 | 72 | </div> |
|
73 | 73 | <div class="input textarea editor"> |
|
74 | 74 | ${h.textarea('description', rows=10, class_="medium")} |
|
75 | 75 | <% metatags_url = h.literal('''<a href="#metatagsShow" onclick="$('#meta-tags-desc').toggle();return false">meta-tags</a>''') %> |
|
76 |
<span class="help-block">${_('Plain text format with support of {metatags}. |
|
|
76 | <span class="help-block">${_('Plain text format with support of {metatags}.').format(metatags=metatags_url)|n}</span> | |
|
77 | 77 | <span id="meta-tags-desc" style="display: none"> |
|
78 | 78 | <%namespace name="dt" file="/data_table/_dt_elements.mako"/> |
|
79 | 79 | ${dt.metatags_help()} |
|
80 | 80 | </span> |
|
81 | 81 | </div> |
|
82 | 82 | </div> |
|
83 | 83 | <div class="field"> |
|
84 | 84 | <div class="label"> |
|
85 | 85 | ${_('New Password')}: |
|
86 | 86 | </div> |
|
87 | 87 | <div class="input"> |
|
88 | 88 | ${h.password('new_password',class_='%s medium' % disabled,autocomplete="off",readonly=readonly)} |
|
89 | 89 | </div> |
|
90 | 90 | </div> |
|
91 | 91 | <div class="field"> |
|
92 | 92 | <div class="label"> |
|
93 | 93 | ${_('New Password Confirmation')}: |
|
94 | 94 | </div> |
|
95 | 95 | <div class="input"> |
|
96 | 96 | ${h.password('password_confirmation',class_="%s medium" % disabled,autocomplete="off",readonly=readonly)} |
|
97 | 97 | </div> |
|
98 | 98 | </div> |
|
99 | 99 | <div class="field"> |
|
100 | 100 | <div class="label-text"> |
|
101 | 101 | ${_('Active')}: |
|
102 | 102 | </div> |
|
103 | 103 | <div class="input user-checkbox"> |
|
104 | 104 | ${h.checkbox('active',value=True)} |
|
105 | 105 | </div> |
|
106 | 106 | </div> |
|
107 | 107 | <div class="field"> |
|
108 | 108 | <div class="label-text"> |
|
109 | 109 | ${_('Super-admin')}: |
|
110 | 110 | </div> |
|
111 | 111 | <div class="input user-checkbox"> |
|
112 | 112 | ${h.checkbox('admin',value=True)} |
|
113 | 113 | </div> |
|
114 | 114 | </div> |
|
115 | 115 | <div class="field"> |
|
116 | 116 | <div class="label-text"> |
|
117 | 117 | ${_('Authentication type')}: |
|
118 | 118 | </div> |
|
119 | 119 | <div class="input"> |
|
120 | 120 | ${h.select('extern_type', c.extern_type, c.allowed_extern_types)} |
|
121 | 121 | <p class="help-block">${_('When user was created using an external source. He is bound to authentication using this method.')}</p> |
|
122 | 122 | </div> |
|
123 | 123 | </div> |
|
124 | 124 | <div class="field"> |
|
125 | 125 | <div class="label-text"> |
|
126 | 126 | ${_('Name in Source of Record')}: |
|
127 | 127 | </div> |
|
128 | 128 | <div class="input"> |
|
129 | 129 | <p>${c.extern_name}</p> |
|
130 | 130 | ${h.hidden('extern_name', readonly="readonly")} |
|
131 | 131 | </div> |
|
132 | 132 | </div> |
|
133 | 133 | <div class="field"> |
|
134 | 134 | <div class="label"> |
|
135 | 135 | ${_('Language')}: |
|
136 | 136 | </div> |
|
137 | 137 | <div class="input"> |
|
138 | 138 | ## allowed_languages is defined in the users.py |
|
139 | 139 | ## c.language comes from base.py as a default language |
|
140 | 140 | ${h.select('language', c.language, c.allowed_languages)} |
|
141 | 141 | <p class="help-block">${h.literal(_('User interface language. Help translate %(rc_link)s into your language.') % {'rc_link': h.link_to('RhodeCode Enterprise', h.route_url('rhodecode_translations'))})}</p> |
|
142 | 142 | </div> |
|
143 | 143 | </div> |
|
144 | 144 | <div class="buttons"> |
|
145 | 145 | ${h.submit('save', _('Save'), class_="btn")} |
|
146 | 146 | ${h.reset('reset', _('Reset'), class_="btn")} |
|
147 | 147 | </div> |
|
148 | 148 | </div> |
|
149 | 149 | </div> |
|
150 | 150 | ${h.end_form()} |
|
151 | 151 | </div> |
|
152 | 152 | </div> |
|
153 | 153 | </div> |
|
154 | 154 | |
|
155 | 155 | <script> |
|
156 | 156 | $('#language').select2({ |
|
157 | 157 | 'containerCssClass': "drop-menu", |
|
158 | 158 | 'dropdownCssClass': "drop-menu-dropdown", |
|
159 | 159 | 'dropdownAutoWidth': true |
|
160 | 160 | }); |
|
161 | 161 | </script> |
General Comments 0
You need to be logged in to leave comments.
Login now