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