Show More
@@ -1,65 +1,64 b'' | |||
|
1 | 1 | <%namespace name="base" file="/base/base.mako"/> |
|
2 | 2 | <div class="panel panel-default user-profile"> |
|
3 | 3 | <div class="panel-heading"> |
|
4 | 4 | <h3 class="panel-title">${_('My Profile')}</h3> |
|
5 | 5 | <a href="${h.route_path('my_account_edit')}" class="panel-edit">${_('Edit')}</a> |
|
6 | 6 | </div> |
|
7 | 7 | |
|
8 | 8 | <div class="panel-body fields"> |
|
9 | 9 | <div class="field"> |
|
10 | 10 | <div class="label"> |
|
11 | 11 | ${_('Photo')}: |
|
12 | 12 | </div> |
|
13 | 13 | <div class="input"> |
|
14 | 14 | <div class="text-as-placeholder"> |
|
15 | 15 | %if c.visual.use_gravatar: |
|
16 | 16 | ${base.gravatar(c.user.email, 100)} |
|
17 | 17 | %else: |
|
18 |
${base.gravatar(c.user.email, |
|
|
19 | ${_('Avatars are disabled')} | |
|
18 | ${base.gravatar(c.user.email, 100)} | |
|
20 | 19 | %endif |
|
21 | 20 | </div> |
|
22 | 21 | </div> |
|
23 | 22 | </div> |
|
24 | 23 | <div class="field"> |
|
25 | 24 | <div class="label"> |
|
26 | 25 | ${_('Username')}: |
|
27 | 26 | </div> |
|
28 | 27 | <div class="input"> |
|
29 | 28 | <div class="text-as-placeholder"> |
|
30 | 29 | ${c.user.username} |
|
31 | 30 | </div> |
|
32 | 31 | </div> |
|
33 | 32 | </div> |
|
34 | 33 | <div class="field"> |
|
35 | 34 | <div class="label"> |
|
36 | 35 | ${_('First Name')}: |
|
37 | 36 | </div> |
|
38 | 37 | <div class="input"> |
|
39 | 38 | <div class="text-as-placeholder"> |
|
40 | 39 | ${c.user.first_name} |
|
41 | 40 | </div> |
|
42 | 41 | </div> |
|
43 | 42 | </div> |
|
44 | 43 | <div class="field"> |
|
45 | 44 | <div class="label"> |
|
46 | 45 | ${_('Last Name')}: |
|
47 | 46 | </div> |
|
48 | 47 | <div class="input"> |
|
49 | 48 | <div class="text-as-placeholder"> |
|
50 | 49 | ${c.user.last_name} |
|
51 | 50 | </div> |
|
52 | 51 | </div> |
|
53 | 52 | </div> |
|
54 | 53 | <div class="field"> |
|
55 | 54 | <div class="label"> |
|
56 | 55 | ${_('Email')}: |
|
57 | 56 | </div> |
|
58 | 57 | <div class="input"> |
|
59 | 58 | <div class="text-as-placeholder"> |
|
60 | 59 | ${c.user.email or _('Missing email, please update your user email address.')} |
|
61 | 60 | </div> |
|
62 | 61 | </div> |
|
63 | 62 | </div> |
|
64 | 63 | </div> |
|
65 | 64 | </div> No newline at end of file |
@@ -1,71 +1,70 b'' | |||
|
1 | 1 | <%namespace name="base" file="/base/base.mako"/> |
|
2 | 2 | <div class="panel panel-default user-profile"> |
|
3 | 3 | <div class="panel-heading"> |
|
4 | 4 | <h3 class="panel-title">${_('My Profile')}</h3> |
|
5 | 5 | <a href="${h.route_path('my_account_profile')}" class="panel-edit">Close</a> |
|
6 | 6 | </div> |
|
7 | 7 | |
|
8 | 8 | <div class="panel-body"> |
|
9 | 9 | <% readonly = None %> |
|
10 | 10 | <% disabled = "" %> |
|
11 | 11 | |
|
12 | 12 | %if c.extern_type != 'rhodecode': |
|
13 | 13 | <% readonly = "readonly" %> |
|
14 | 14 | <% disabled = "disabled" %> |
|
15 | 15 | <div class="infoform"> |
|
16 | 16 | <div class="fields"> |
|
17 | 17 | <p>${_('Your user account details are managed by an external source. Details cannot be managed here.')} |
|
18 | 18 | <br/>${_('Source type')}: <strong>${c.extern_type}</strong> |
|
19 | 19 | </p> |
|
20 | 20 | |
|
21 | 21 | <div class="field"> |
|
22 | 22 | <div class="label"> |
|
23 | 23 | <label for="username">${_('Username')}:</label> |
|
24 | 24 | </div> |
|
25 | 25 | <div class="input"> |
|
26 | 26 | ${c.user.username} |
|
27 | 27 | </div> |
|
28 | 28 | </div> |
|
29 | 29 | |
|
30 | 30 | <div class="field"> |
|
31 | 31 | <div class="label"> |
|
32 | 32 | <label for="name">${_('First Name')}:</label> |
|
33 | 33 | </div> |
|
34 | 34 | <div class="input"> |
|
35 | 35 | ${c.user.firstname} |
|
36 | 36 | </div> |
|
37 | 37 | </div> |
|
38 | 38 | |
|
39 | 39 | <div class="field"> |
|
40 | 40 | <div class="label"> |
|
41 | 41 | <label for="lastname">${_('Last Name')}:</label> |
|
42 | 42 | </div> |
|
43 | 43 | <div class="input-valuedisplay"> |
|
44 | 44 | ${c.user.lastname} |
|
45 | 45 | </div> |
|
46 | 46 | </div> |
|
47 | 47 | </div> |
|
48 | 48 | </div> |
|
49 | 49 | % else: |
|
50 | 50 | <div class="form"> |
|
51 | 51 | <div class="fields"> |
|
52 | 52 | <div class="field"> |
|
53 | 53 | <div class="label photo"> |
|
54 | 54 | ${_('Photo')}: |
|
55 | 55 | </div> |
|
56 | 56 | <div class="input profile"> |
|
57 | 57 | %if c.visual.use_gravatar: |
|
58 | 58 | ${base.gravatar(c.user.email, 100)} |
|
59 | 59 | <p class="help-block">${_('Change your avatar at')} <a href="http://gravatar.com">gravatar.com</a>.</p> |
|
60 | 60 | %else: |
|
61 |
${base.gravatar(c.user.email, |
|
|
62 | ${_('Avatars are disabled')} | |
|
61 | ${base.gravatar(c.user.email, 100)} | |
|
63 | 62 | %endif |
|
64 | 63 | </div> |
|
65 | 64 | </div> |
|
66 | 65 | ${c.form.render()| n} |
|
67 | 66 | </div> |
|
68 | 67 | </div> |
|
69 | 68 | % endif |
|
70 | 69 | </div> |
|
71 | 70 | </div> No newline at end of file |
@@ -1,151 +1,150 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="infoform"> |
|
16 | 16 | <div class="fields"> |
|
17 | 17 | <p>${_('This user was created from external source (%s). Editing some of the settings is limited.' % c.extern_type)}</p> |
|
18 | 18 | </div> |
|
19 | 19 | </div> |
|
20 | 20 | %endif |
|
21 | 21 | <div class="form"> |
|
22 | 22 | <div class="fields"> |
|
23 | 23 | <div class="field"> |
|
24 | 24 | <div class="label photo"> |
|
25 | 25 | ${_('Photo')}: |
|
26 | 26 | </div> |
|
27 | 27 | <div class="input profile"> |
|
28 | 28 | %if c.visual.use_gravatar: |
|
29 | 29 | ${base.gravatar(c.user.email, 100)} |
|
30 | 30 | <p class="help-block">${_('Change the avatar at')} <a href="http://gravatar.com">gravatar.com</a>.</p> |
|
31 | 31 | %else: |
|
32 |
${base.gravatar(c.user.email, |
|
|
33 | ${_('Avatars are disabled')} | |
|
32 | ${base.gravatar(c.user.email, 100)} | |
|
34 | 33 | %endif |
|
35 | 34 | </div> |
|
36 | 35 | </div> |
|
37 | 36 | <div class="field"> |
|
38 | 37 | <div class="label"> |
|
39 | 38 | ${_('Username')}: |
|
40 | 39 | </div> |
|
41 | 40 | <div class="input"> |
|
42 | 41 | ${h.text('username', class_='%s medium' % disabled, readonly=readonly)} |
|
43 | 42 | </div> |
|
44 | 43 | </div> |
|
45 | 44 | <div class="field"> |
|
46 | 45 | <div class="label"> |
|
47 | 46 | <label for="name">${_('First Name')}:</label> |
|
48 | 47 | </div> |
|
49 | 48 | <div class="input"> |
|
50 | 49 | ${h.text('firstname', class_="medium")} |
|
51 | 50 | </div> |
|
52 | 51 | </div> |
|
53 | 52 | |
|
54 | 53 | <div class="field"> |
|
55 | 54 | <div class="label"> |
|
56 | 55 | <label for="lastname">${_('Last Name')}:</label> |
|
57 | 56 | </div> |
|
58 | 57 | <div class="input"> |
|
59 | 58 | ${h.text('lastname', class_="medium")} |
|
60 | 59 | </div> |
|
61 | 60 | </div> |
|
62 | 61 | |
|
63 | 62 | <div class="field"> |
|
64 | 63 | <div class="label"> |
|
65 | 64 | <label for="email">${_('Email')}:</label> |
|
66 | 65 | </div> |
|
67 | 66 | <div class="input"> |
|
68 | 67 | ## we should be able to edit email ! |
|
69 | 68 | ${h.text('email', class_="medium")} |
|
70 | 69 | </div> |
|
71 | 70 | </div> |
|
72 | 71 | <div class="field"> |
|
73 | 72 | <div class="label"> |
|
74 | 73 | ${_('New Password')}: |
|
75 | 74 | </div> |
|
76 | 75 | <div class="input"> |
|
77 | 76 | ${h.password('new_password',class_='%s medium' % disabled,autocomplete="off",readonly=readonly)} |
|
78 | 77 | </div> |
|
79 | 78 | </div> |
|
80 | 79 | <div class="field"> |
|
81 | 80 | <div class="label"> |
|
82 | 81 | ${_('New Password Confirmation')}: |
|
83 | 82 | </div> |
|
84 | 83 | <div class="input"> |
|
85 | 84 | ${h.password('password_confirmation',class_="%s medium" % disabled,autocomplete="off",readonly=readonly)} |
|
86 | 85 | </div> |
|
87 | 86 | </div> |
|
88 | 87 | <div class="field"> |
|
89 | 88 | <div class="label-text"> |
|
90 | 89 | ${_('Active')}: |
|
91 | 90 | </div> |
|
92 | 91 | <div class="input user-checkbox"> |
|
93 | 92 | ${h.checkbox('active',value=True)} |
|
94 | 93 | </div> |
|
95 | 94 | </div> |
|
96 | 95 | <div class="field"> |
|
97 | 96 | <div class="label-text"> |
|
98 | 97 | ${_('Super Admin')}: |
|
99 | 98 | </div> |
|
100 | 99 | <div class="input user-checkbox"> |
|
101 | 100 | ${h.checkbox('admin',value=True)} |
|
102 | 101 | </div> |
|
103 | 102 | </div> |
|
104 | 103 | <div class="field"> |
|
105 | 104 | <div class="label-text"> |
|
106 | 105 | ${_('Authentication type')}: |
|
107 | 106 | </div> |
|
108 | 107 | <div class="input"> |
|
109 | 108 | <p>${c.extern_type}</p> |
|
110 | 109 | ${h.hidden('extern_type', readonly="readonly")} |
|
111 | 110 | <p class="help-block">${_('User was created using an external source. He is bound to authentication using this method.')}</p> |
|
112 | 111 | </div> |
|
113 | 112 | </div> |
|
114 | 113 | <div class="field"> |
|
115 | 114 | <div class="label-text"> |
|
116 | 115 | ${_('Name in Source of Record')}: |
|
117 | 116 | </div> |
|
118 | 117 | <div class="input"> |
|
119 | 118 | <p>${c.extern_name}</p> |
|
120 | 119 | ${h.hidden('extern_name', readonly="readonly")} |
|
121 | 120 | </div> |
|
122 | 121 | </div> |
|
123 | 122 | <div class="field"> |
|
124 | 123 | <div class="label"> |
|
125 | 124 | ${_('Language')}: |
|
126 | 125 | </div> |
|
127 | 126 | <div class="input"> |
|
128 | 127 | ## allowed_languages is defined in the users.py |
|
129 | 128 | ## c.language comes from base.py as a default language |
|
130 | 129 | ${h.select('language', c.language, c.allowed_languages)} |
|
131 | 130 | <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> |
|
132 | 131 | </div> |
|
133 | 132 | </div> |
|
134 | 133 | <div class="buttons"> |
|
135 | 134 | ${h.submit('save', _('Save'), class_="btn")} |
|
136 | 135 | ${h.reset('reset', _('Reset'), class_="btn")} |
|
137 | 136 | </div> |
|
138 | 137 | </div> |
|
139 | 138 | </div> |
|
140 | 139 | ${h.end_form()} |
|
141 | 140 | </div> |
|
142 | 141 | </div> |
|
143 | 142 | </div> |
|
144 | 143 | |
|
145 | 144 | <script> |
|
146 | 145 | $('#language').select2({ |
|
147 | 146 | 'containerCssClass': "drop-menu", |
|
148 | 147 | 'dropdownCssClass': "drop-menu-dropdown", |
|
149 | 148 | 'dropdownAutoWidth': true |
|
150 | 149 | }); |
|
151 | 150 | </script> |
@@ -1,58 +1,57 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 | %if c.is_super_admin: |
|
7 | 7 | ${h.link_to(_('Edit'), h.route_path('user_edit', user_id=c.user.user_id), class_='panel-edit')} |
|
8 | 8 | %endif |
|
9 | 9 | </div> |
|
10 | 10 | |
|
11 | 11 | <div class="panel-body user-profile-content"> |
|
12 | 12 | <div class="fieldset"> |
|
13 | 13 | <div class="left-label"> |
|
14 | 14 | ${_('Photo')}: |
|
15 | 15 | </div> |
|
16 | 16 | <div class="right-content"> |
|
17 | 17 | %if c.visual.use_gravatar: |
|
18 | 18 | ${base.gravatar(c.user.email, 100)} |
|
19 | 19 | %else: |
|
20 |
${base.gravatar(c.user.email, |
|
|
21 | ${_('Avatars are disabled')} | |
|
20 | ${base.gravatar(c.user.email, 100)} | |
|
22 | 21 | %endif |
|
23 | 22 | </div> |
|
24 | 23 | </div> |
|
25 | 24 | <div class="fieldset"> |
|
26 | 25 | <div class="left-label"> |
|
27 | 26 | ${_('Username')}: |
|
28 | 27 | </div> |
|
29 | 28 | <div class="right-content"> |
|
30 | 29 | ${c.user.username} |
|
31 | 30 | </div> |
|
32 | 31 | </div> |
|
33 | 32 | <div class="fieldset"> |
|
34 | 33 | <div class="left-label"> |
|
35 | 34 | ${_('First name')}: |
|
36 | 35 | </div> |
|
37 | 36 | <div class="right-content"> |
|
38 | 37 | ${c.user.first_name} |
|
39 | 38 | </div> |
|
40 | 39 | </div> |
|
41 | 40 | <div class="fieldset"> |
|
42 | 41 | <div class="left-label"> |
|
43 | 42 | ${_('Last name')}: |
|
44 | 43 | </div> |
|
45 | 44 | <div class="right-content"> |
|
46 | 45 | ${c.user.last_name} |
|
47 | 46 | </div> |
|
48 | 47 | </div> |
|
49 | 48 | <div class="fieldset"> |
|
50 | 49 | <div class="left-label"> |
|
51 | 50 | ${_('Email')}: |
|
52 | 51 | </div> |
|
53 | 52 | <div class="right-content"> |
|
54 | 53 | ${c.user.email or _('Missing email, please update your user email address.')} |
|
55 | 54 | </div> |
|
56 | 55 | </div> |
|
57 | 56 | </div> |
|
58 | 57 | </div> No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now