Mercurial > kallithea
annotate rhodecode/templates/admin/users/user_edit.html @ 2453:d2a528b60e50 beta
whitespace cleanup
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 14 Jun 2012 02:06:35 +0200 |
parents | 751c1c56e080 |
children | 1f9c467e01eb |
rev | line source |
---|---|
216
c8162373f214
Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
Marcin Kuzminski <marcin@python-works.com>
parents:
182
diff
changeset
|
1 ## -*- coding: utf-8 -*- |
127
20dc7a5eb748
Html changes and cleanups, made folders for html templates, implemented tags and branches pages
Marcin Kuzminski <marcin@python-works.com>
parents:
70
diff
changeset
|
2 <%inherit file="/base/base.html"/> |
216
c8162373f214
Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
Marcin Kuzminski <marcin@python-works.com>
parents:
182
diff
changeset
|
3 |
48
8e250e86a670
Css fixes, implemented removal of users, and display draft
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
4 <%def name="title()"> |
619
a1ec653f5f95
#38 updated RhodeCode titles
Marcin Kuzminski <marcin@python-works.com>
parents:
582
diff
changeset
|
5 ${_('Edit user')} ${c.user.username} - ${c.rhodecode_name} |
48
8e250e86a670
Css fixes, implemented removal of users, and display draft
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
6 </%def> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
7 |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
8 <%def name="breadcrumbs_links()"> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1629
diff
changeset
|
9 ${h.link_to(_('Admin'),h.url('admin_home'))} |
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1629
diff
changeset
|
10 » |
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1629
diff
changeset
|
11 ${h.link_to(_('Users'),h.url('users'))} |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
12 » |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
13 ${_('edit')} "${c.user.username}" |
48
8e250e86a670
Css fixes, implemented removal of users, and display draft
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
14 </%def> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
15 |
48
8e250e86a670
Css fixes, implemented removal of users, and display draft
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
16 <%def name="page_nav()"> |
182
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
174
diff
changeset
|
17 ${self.menu('admin')} |
48
8e250e86a670
Css fixes, implemented removal of users, and display draft
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
18 </%def> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
19 |
48
8e250e86a670
Css fixes, implemented removal of users, and display draft
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
20 <%def name="main()"> |
889
79f42866bcbb
extended user editing view with permissions (still a todo)
Marcin Kuzminski <marcin@python-works.com>
parents:
888
diff
changeset
|
21 <div class="box box-left"> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
22 <!-- box / title --> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
23 <div class="title"> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1629
diff
changeset
|
24 ${self.breadcrumbs()} |
48
8e250e86a670
Css fixes, implemented removal of users, and display draft
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
25 </div> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
26 <!-- end box / title --> |
1266
a1bcfe58a1ab
Fixed #161 form saves the create repository permission.
Marcin Kuzminski <marcin@python-works.com>
parents:
1116
diff
changeset
|
27 ${h.form(url('update_user', id=c.user.user_id),method='put')} |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
28 <div class="form"> |
1116
716911af91e1
Added api_key into user, api key get's generated again after password change
Marcin Kuzminski <marcin@python-works.com>
parents:
1051
diff
changeset
|
29 <div class="field"> |
716911af91e1
Added api_key into user, api key get's generated again after password change
Marcin Kuzminski <marcin@python-works.com>
parents:
1051
diff
changeset
|
30 <div class="gravatar_box"> |
716911af91e1
Added api_key into user, api key get's generated again after password change
Marcin Kuzminski <marcin@python-works.com>
parents:
1051
diff
changeset
|
31 <div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(c.user.email)}"/></div> |
1629
2196aa27954b
implements #293 gravatar link should be disabled when use_gravatar = false
Marcin Kuzminski <marcin@python-works.com>
parents:
1597
diff
changeset
|
32 <p> |
2196aa27954b
implements #293 gravatar link should be disabled when use_gravatar = false
Marcin Kuzminski <marcin@python-works.com>
parents:
1597
diff
changeset
|
33 %if c.use_gravatar: |
2196aa27954b
implements #293 gravatar link should be disabled when use_gravatar = false
Marcin Kuzminski <marcin@python-works.com>
parents:
1597
diff
changeset
|
34 <strong>${_('Change your avatar at')} <a href="http://gravatar.com">gravatar.com</a></strong> |
2196aa27954b
implements #293 gravatar link should be disabled when use_gravatar = false
Marcin Kuzminski <marcin@python-works.com>
parents:
1597
diff
changeset
|
35 <br/>${_('Using')} ${c.user.email} |
2196aa27954b
implements #293 gravatar link should be disabled when use_gravatar = false
Marcin Kuzminski <marcin@python-works.com>
parents:
1597
diff
changeset
|
36 %else: |
2196aa27954b
implements #293 gravatar link should be disabled when use_gravatar = false
Marcin Kuzminski <marcin@python-works.com>
parents:
1597
diff
changeset
|
37 <br/>${c.user.email} |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1629
diff
changeset
|
38 %endif |
1116
716911af91e1
Added api_key into user, api key get's generated again after password change
Marcin Kuzminski <marcin@python-works.com>
parents:
1051
diff
changeset
|
39 </div> |
716911af91e1
Added api_key into user, api key get's generated again after password change
Marcin Kuzminski <marcin@python-works.com>
parents:
1051
diff
changeset
|
40 </div> |
716911af91e1
Added api_key into user, api key get's generated again after password change
Marcin Kuzminski <marcin@python-works.com>
parents:
1051
diff
changeset
|
41 <div class="field"> |
716911af91e1
Added api_key into user, api key get's generated again after password change
Marcin Kuzminski <marcin@python-works.com>
parents:
1051
diff
changeset
|
42 <div class="label"> |
716911af91e1
Added api_key into user, api key get's generated again after password change
Marcin Kuzminski <marcin@python-works.com>
parents:
1051
diff
changeset
|
43 <label>${_('API key')}</label> ${c.user.api_key} |
716911af91e1
Added api_key into user, api key get's generated again after password change
Marcin Kuzminski <marcin@python-works.com>
parents:
1051
diff
changeset
|
44 </div> |
716911af91e1
Added api_key into user, api key get's generated again after password change
Marcin Kuzminski <marcin@python-works.com>
parents:
1051
diff
changeset
|
45 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1629
diff
changeset
|
46 |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
47 <div class="fields"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
48 <div class="field"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
49 <div class="label"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
50 <label for="username">${_('Username')}:</label> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
51 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
52 <div class="input"> |
889
79f42866bcbb
extended user editing view with permissions (still a todo)
Marcin Kuzminski <marcin@python-works.com>
parents:
888
diff
changeset
|
53 ${h.text('username',class_='medium')} |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
54 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
55 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1629
diff
changeset
|
56 |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
57 <div class="field"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
58 <div class="label"> |
991
b232a36cc51f
Improve LDAP authentication
Thayne Harbaugh <thayne@fusionio.com>
parents:
895
diff
changeset
|
59 <label for="ldap_dn">${_('LDAP DN')}:</label> |
b232a36cc51f
Improve LDAP authentication
Thayne Harbaugh <thayne@fusionio.com>
parents:
895
diff
changeset
|
60 </div> |
b232a36cc51f
Improve LDAP authentication
Thayne Harbaugh <thayne@fusionio.com>
parents:
895
diff
changeset
|
61 <div class="input"> |
1906
90a4066d4261
marked ldap_dn in user edit form as readonly ref #292
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
62 ${h.text('ldap_dn',class_='medium disabled',readonly="readonly")} |
991
b232a36cc51f
Improve LDAP authentication
Thayne Harbaugh <thayne@fusionio.com>
parents:
895
diff
changeset
|
63 </div> |
b232a36cc51f
Improve LDAP authentication
Thayne Harbaugh <thayne@fusionio.com>
parents:
895
diff
changeset
|
64 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1629
diff
changeset
|
65 |
991
b232a36cc51f
Improve LDAP authentication
Thayne Harbaugh <thayne@fusionio.com>
parents:
895
diff
changeset
|
66 <div class="field"> |
b232a36cc51f
Improve LDAP authentication
Thayne Harbaugh <thayne@fusionio.com>
parents:
895
diff
changeset
|
67 <div class="label"> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
68 <label for="new_password">${_('New password')}:</label> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
69 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
70 <div class="input"> |
1366
9c0f5d558789
fixes #200, rewrote the whole caching mechanism to get rid of such problems. Now cached instances are attached
Marcin Kuzminski <marcin@python-works.com>
parents:
1266
diff
changeset
|
71 ${h.password('new_password',class_='medium',autocomplete="off")} |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
72 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
73 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1629
diff
changeset
|
74 |
1597
019026a8cf67
implements #237 added password confirmation for my account and admin edit user.
Marcin Kuzminski <marcin@python-works.com>
parents:
1575
diff
changeset
|
75 <div class="field"> |
019026a8cf67
implements #237 added password confirmation for my account and admin edit user.
Marcin Kuzminski <marcin@python-works.com>
parents:
1575
diff
changeset
|
76 <div class="label"> |
019026a8cf67
implements #237 added password confirmation for my account and admin edit user.
Marcin Kuzminski <marcin@python-works.com>
parents:
1575
diff
changeset
|
77 <label for="password_confirmation">${_('New password confirmation')}:</label> |
019026a8cf67
implements #237 added password confirmation for my account and admin edit user.
Marcin Kuzminski <marcin@python-works.com>
parents:
1575
diff
changeset
|
78 </div> |
019026a8cf67
implements #237 added password confirmation for my account and admin edit user.
Marcin Kuzminski <marcin@python-works.com>
parents:
1575
diff
changeset
|
79 <div class="input"> |
019026a8cf67
implements #237 added password confirmation for my account and admin edit user.
Marcin Kuzminski <marcin@python-works.com>
parents:
1575
diff
changeset
|
80 ${h.password('password_confirmation',class_="medium",autocomplete="off")} |
019026a8cf67
implements #237 added password confirmation for my account and admin edit user.
Marcin Kuzminski <marcin@python-works.com>
parents:
1575
diff
changeset
|
81 </div> |
019026a8cf67
implements #237 added password confirmation for my account and admin edit user.
Marcin Kuzminski <marcin@python-works.com>
parents:
1575
diff
changeset
|
82 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1629
diff
changeset
|
83 |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
84 <div class="field"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
85 <div class="label"> |
697
540545d374fd
fixes for #66 renamed name to First Name
Marcin Kuzminski <marcin@python-works.com>
parents:
619
diff
changeset
|
86 <label for="name">${_('First Name')}:</label> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
87 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
88 <div class="input"> |
889
79f42866bcbb
extended user editing view with permissions (still a todo)
Marcin Kuzminski <marcin@python-works.com>
parents:
888
diff
changeset
|
89 ${h.text('name',class_='medium')} |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
90 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
91 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1629
diff
changeset
|
92 |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
93 <div class="field"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
94 <div class="label"> |
697
540545d374fd
fixes for #66 renamed name to First Name
Marcin Kuzminski <marcin@python-works.com>
parents:
619
diff
changeset
|
95 <label for="lastname">${_('Last Name')}:</label> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
96 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
97 <div class="input"> |
889
79f42866bcbb
extended user editing view with permissions (still a todo)
Marcin Kuzminski <marcin@python-works.com>
parents:
888
diff
changeset
|
98 ${h.text('lastname',class_='medium')} |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
99 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
100 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1629
diff
changeset
|
101 |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
102 <div class="field"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
103 <div class="label"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
104 <label for="email">${_('Email')}:</label> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
105 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
106 <div class="input"> |
889
79f42866bcbb
extended user editing view with permissions (still a todo)
Marcin Kuzminski <marcin@python-works.com>
parents:
888
diff
changeset
|
107 ${h.text('email',class_='medium')} |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
108 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
109 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1629
diff
changeset
|
110 |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
111 <div class="field"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
112 <div class="label label-checkbox"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
113 <label for="active">${_('Active')}:</label> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
114 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
115 <div class="checkboxes"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
116 ${h.checkbox('active',value=True)} |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
117 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
118 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1629
diff
changeset
|
119 |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
120 <div class="field"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
121 <div class="label label-checkbox"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
122 <label for="admin">${_('Admin')}:</label> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
123 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
124 <div class="checkboxes"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
125 ${h.checkbox('admin',value=True)} |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
126 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1629
diff
changeset
|
127 </div> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
128 <div class="buttons"> |
1472
aaec08ad9daf
Added pt_BR localization, added i18n wrappers on some places missing, fixed css in settings screen for longer labels.
Augusto Herrmann <augusto.herrmann@planejamento.gov.br>
parents:
1366
diff
changeset
|
129 ${h.submit('save',_('Save'),class_="ui-button")} |
aaec08ad9daf
Added pt_BR localization, added i18n wrappers on some places missing, fixed css in settings screen for longer labels.
Augusto Herrmann <augusto.herrmann@planejamento.gov.br>
parents:
1366
diff
changeset
|
130 ${h.reset('reset',_('Reset'),class_="ui-button")} |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1629
diff
changeset
|
131 </div> |
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1629
diff
changeset
|
132 </div> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
133 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
329
diff
changeset
|
134 ${h.end_form()} |
889
79f42866bcbb
extended user editing view with permissions (still a todo)
Marcin Kuzminski <marcin@python-works.com>
parents:
888
diff
changeset
|
135 </div> |
79f42866bcbb
extended user editing view with permissions (still a todo)
Marcin Kuzminski <marcin@python-works.com>
parents:
888
diff
changeset
|
136 <div class="box box-right"> |
79f42866bcbb
extended user editing view with permissions (still a todo)
Marcin Kuzminski <marcin@python-works.com>
parents:
888
diff
changeset
|
137 <!-- box / title --> |
79f42866bcbb
extended user editing view with permissions (still a todo)
Marcin Kuzminski <marcin@python-works.com>
parents:
888
diff
changeset
|
138 <div class="title"> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1629
diff
changeset
|
139 <h5>${_('Permissions')}</h5> |
889
79f42866bcbb
extended user editing view with permissions (still a todo)
Marcin Kuzminski <marcin@python-works.com>
parents:
888
diff
changeset
|
140 </div> |
1266
a1bcfe58a1ab
Fixed #161 form saves the create repository permission.
Marcin Kuzminski <marcin@python-works.com>
parents:
1116
diff
changeset
|
141 ${h.form(url('user_perm', id=c.user.user_id),method='put')} |
1116
716911af91e1
Added api_key into user, api key get's generated again after password change
Marcin Kuzminski <marcin@python-works.com>
parents:
1051
diff
changeset
|
142 <div class="form"> |
716911af91e1
Added api_key into user, api key get's generated again after password change
Marcin Kuzminski <marcin@python-works.com>
parents:
1051
diff
changeset
|
143 <!-- fields --> |
716911af91e1
Added api_key into user, api key get's generated again after password change
Marcin Kuzminski <marcin@python-works.com>
parents:
1051
diff
changeset
|
144 <div class="fields"> |
716911af91e1
Added api_key into user, api key get's generated again after password change
Marcin Kuzminski <marcin@python-works.com>
parents:
1051
diff
changeset
|
145 <div class="field"> |
716911af91e1
Added api_key into user, api key get's generated again after password change
Marcin Kuzminski <marcin@python-works.com>
parents:
1051
diff
changeset
|
146 <div class="label label-checkbox"> |
1575
e0b069468de0
Corrected some label-input linking in templates
Augusto Herrmann <augusto.herrmann@planejamento.gov.br>
parents:
1472
diff
changeset
|
147 <label for="create_repo_perm">${_('Create repositories')}:</label> |
1116
716911af91e1
Added api_key into user, api key get's generated again after password change
Marcin Kuzminski <marcin@python-works.com>
parents:
1051
diff
changeset
|
148 </div> |
716911af91e1
Added api_key into user, api key get's generated again after password change
Marcin Kuzminski <marcin@python-works.com>
parents:
1051
diff
changeset
|
149 <div class="checkboxes"> |
1266
a1bcfe58a1ab
Fixed #161 form saves the create repository permission.
Marcin Kuzminski <marcin@python-works.com>
parents:
1116
diff
changeset
|
150 ${h.checkbox('create_repo_perm',value=True)} |
1116
716911af91e1
Added api_key into user, api key get's generated again after password change
Marcin Kuzminski <marcin@python-works.com>
parents:
1051
diff
changeset
|
151 </div> |
716911af91e1
Added api_key into user, api key get's generated again after password change
Marcin Kuzminski <marcin@python-works.com>
parents:
1051
diff
changeset
|
152 </div> |
716911af91e1
Added api_key into user, api key get's generated again after password change
Marcin Kuzminski <marcin@python-works.com>
parents:
1051
diff
changeset
|
153 <div class="buttons"> |
1472
aaec08ad9daf
Added pt_BR localization, added i18n wrappers on some places missing, fixed css in settings screen for longer labels.
Augusto Herrmann <augusto.herrmann@planejamento.gov.br>
parents:
1366
diff
changeset
|
154 ${h.submit('save',_('Save'),class_="ui-button")} |
aaec08ad9daf
Added pt_BR localization, added i18n wrappers on some places missing, fixed css in settings screen for longer labels.
Augusto Herrmann <augusto.herrmann@planejamento.gov.br>
parents:
1366
diff
changeset
|
155 ${h.reset('reset',_('Reset'),class_="ui-button")} |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1629
diff
changeset
|
156 </div> |
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1629
diff
changeset
|
157 </div> |
1116
716911af91e1
Added api_key into user, api key get's generated again after password change
Marcin Kuzminski <marcin@python-works.com>
parents:
1051
diff
changeset
|
158 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1629
diff
changeset
|
159 ${h.end_form()} |
2435
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
160 |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
161 ## permissions overview |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
162 <div id="perms" class="table"> |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
163 %for section in sorted(c.perm_user.permissions.keys()): |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
164 <div class="perms_section_head">${section.replace("_"," ").capitalize()}</div> |
2453
d2a528b60e50
whitespace cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
2435
diff
changeset
|
165 |
2435
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
166 <div id='tbl_list_wrap_${section}' class="yui-skin-sam"> |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
167 <table id="tbl_list_${section}"> |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
168 <thead> |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
169 <tr> |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
170 <th class="left">${_('Name')}</th> |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
171 <th class="left">${_('Permission')}</th> |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
172 </thead> |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
173 <tbody> |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
174 %for k in c.perm_user.permissions[section]: |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
175 <% |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
176 if section != 'global': |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
177 section_perm = c.perm_user.permissions[section].get(k) |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
178 _perm = section_perm.split('.')[-1] |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
179 else: |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
180 _perm = section_perm = None |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
181 %> |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
182 <tr> |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
183 <td> |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
184 %if section == 'repositories': |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
185 <a href="${h.url('summary_home',repo_name=k)}">${k}</a> |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
186 %elif section == 'repositories_groups': |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
187 <a href="${h.url('repos_group_home',group_name=k)}">${k}</a> |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
188 %else: |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
189 ${k} |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
190 %endif |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
191 </td> |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
192 <td> |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
193 %if section == 'global': |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
194 ${h.bool2icon(True)} |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
195 %else: |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
196 <span class="perm_tag ${_perm}">${section_perm}</span> |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
197 %endif |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
198 </td> |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
199 </tr> |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
200 %endfor |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
201 </tbody> |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
202 </table> |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
203 </div> |
751c1c56e080
#478 permissions overview for admin in user edit view
Marcin Kuzminski <marcin@python-works.com>
parents:
1906
diff
changeset
|
204 %endfor |
2453
d2a528b60e50
whitespace cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
2435
diff
changeset
|
205 </div> |
889
79f42866bcbb
extended user editing view with permissions (still a todo)
Marcin Kuzminski <marcin@python-works.com>
parents:
888
diff
changeset
|
206 </div> |
991
b232a36cc51f
Improve LDAP authentication
Thayne Harbaugh <thayne@fusionio.com>
parents:
895
diff
changeset
|
207 </%def> |