Mercurial > kallithea
annotate rhodecode/templates/admin/permissions/permissions.html @ 3786:222e6769e7b5 beta
Added separate default permission for external_auth account
activation. This flag allows users to define separate option of how
activation of external_accounts should be performed.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 23 Apr 2013 00:47:22 +0200 |
parents | a8f520540ab0 |
children | 6cc17e42fa49 |
rev | line source |
---|---|
230
d982ed8e32d8
Admin templating updates, added rest permission controllers
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
1 ## -*- coding: utf-8 -*- |
d982ed8e32d8
Admin templating updates, added rest permission controllers
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
2 <%inherit file="/base/base.html"/> |
d982ed8e32d8
Admin templating updates, added rest permission controllers
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
3 |
d982ed8e32d8
Admin templating updates, added rest permission controllers
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
4 <%def name="title()"> |
3582
1f334a68d057
improved title consistency
Marcin Kuzminski <marcin@python-works.com>
parents:
3416
diff
changeset
|
5 ${_('Permissions administration')} · ${c.rhodecode_name} |
230
d982ed8e32d8
Admin templating updates, added rest permission controllers
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
6 </%def> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
252
diff
changeset
|
7 |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
252
diff
changeset
|
8 <%def name="breadcrumbs_links()"> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
9 ${h.link_to(_('Admin'),h.url('admin_home'))} |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
252
diff
changeset
|
10 » |
3654
ec6354949623
Fix a lot of casings - use standard casing in most places
Mads Kiilerich <madski@unity3d.com>
parents:
3627
diff
changeset
|
11 ${_('Permissions')} |
230
d982ed8e32d8
Admin templating updates, added rest permission controllers
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
12 </%def> |
384
c8fc57b92a60
Added permissions template
Marcin Kuzminski <marcin@python-works.com>
parents:
362
diff
changeset
|
13 |
230
d982ed8e32d8
Admin templating updates, added rest permission controllers
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
14 <%def name="page_nav()"> |
3197 | 15 ${self.menu('admin')} |
230
d982ed8e32d8
Admin templating updates, added rest permission controllers
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
16 </%def> |
384
c8fc57b92a60
Added permissions template
Marcin Kuzminski <marcin@python-works.com>
parents:
362
diff
changeset
|
17 |
230
d982ed8e32d8
Admin templating updates, added rest permission controllers
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
18 <%def name="main()"> |
3125
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
19 <div class="box box-left"> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
252
diff
changeset
|
20 <!-- box / title --> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
252
diff
changeset
|
21 <div class="title"> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
22 ${self.breadcrumbs()} |
230
d982ed8e32d8
Admin templating updates, added rest permission controllers
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
23 </div> |
417
3ed2d46a2ca7
permission refactoring,
Marcin Kuzminski <marcin@python-works.com>
parents:
384
diff
changeset
|
24 <h3>${_('Default permissions')}</h3> |
3ed2d46a2ca7
permission refactoring,
Marcin Kuzminski <marcin@python-works.com>
parents:
384
diff
changeset
|
25 ${h.form(url('permission', id='default'),method='put')} |
384
c8fc57b92a60
Added permissions template
Marcin Kuzminski <marcin@python-works.com>
parents:
362
diff
changeset
|
26 <div class="form"> |
c8fc57b92a60
Added permissions template
Marcin Kuzminski <marcin@python-works.com>
parents:
362
diff
changeset
|
27 <!-- fields --> |
c8fc57b92a60
Added permissions template
Marcin Kuzminski <marcin@python-works.com>
parents:
362
diff
changeset
|
28 <div class="fields"> |
673
dd532af216d9
#49 Enabled anonymous access for web interface controllable from permissions pannel
Marcin Kuzminski <marcin@python-works.com>
parents:
619
diff
changeset
|
29 <div class="field"> |
dd532af216d9
#49 Enabled anonymous access for web interface controllable from permissions pannel
Marcin Kuzminski <marcin@python-works.com>
parents:
619
diff
changeset
|
30 <div class="label label-checkbox"> |
dd532af216d9
#49 Enabled anonymous access for web interface controllable from permissions pannel
Marcin Kuzminski <marcin@python-works.com>
parents:
619
diff
changeset
|
31 <label for="anonymous">${_('Anonymous access')}:</label> |
dd532af216d9
#49 Enabled anonymous access for web interface controllable from permissions pannel
Marcin Kuzminski <marcin@python-works.com>
parents:
619
diff
changeset
|
32 </div> |
dd532af216d9
#49 Enabled anonymous access for web interface controllable from permissions pannel
Marcin Kuzminski <marcin@python-works.com>
parents:
619
diff
changeset
|
33 <div class="checkboxes"> |
dd532af216d9
#49 Enabled anonymous access for web interface controllable from permissions pannel
Marcin Kuzminski <marcin@python-works.com>
parents:
619
diff
changeset
|
34 <div class="checkbox"> |
dd532af216d9
#49 Enabled anonymous access for web interface controllable from permissions pannel
Marcin Kuzminski <marcin@python-works.com>
parents:
619
diff
changeset
|
35 ${h.checkbox('anonymous',True)} |
dd532af216d9
#49 Enabled anonymous access for web interface controllable from permissions pannel
Marcin Kuzminski <marcin@python-works.com>
parents:
619
diff
changeset
|
36 </div> |
dd532af216d9
#49 Enabled anonymous access for web interface controllable from permissions pannel
Marcin Kuzminski <marcin@python-works.com>
parents:
619
diff
changeset
|
37 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
38 </div> |
3197 | 39 <div class="field"> |
40 <div class="label"> | |
41 <label for="default_repo_perm">${_('Repository')}:</label> | |
42 </div> | |
43 <div class="select"> | |
44 ${h.select('default_repo_perm','',c.repo_perms_choices)} | |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
45 |
3197 | 46 ${h.checkbox('overwrite_default_repo','true')} |
47 <label for="overwrite_default_repo"> | |
48 <span class="tooltip" | |
3622 | 49 title="${h.tooltip(_('All default permissions on each repository will be reset to chosen permission, note that all custom default permission on repositories will be lost'))}"> |
3654
ec6354949623
Fix a lot of casings - use standard casing in most places
Mads Kiilerich <madski@unity3d.com>
parents:
3627
diff
changeset
|
50 ${_('Overwrite existing settings')}</span> </label> |
3197 | 51 </div> |
52 </div> | |
53 <div class="field"> | |
54 <div class="label"> | |
55 <label for="default_group_perm">${_('Repository group')}:</label> | |
56 </div> | |
57 <div class="select"> | |
58 ${h.select('default_group_perm','',c.group_perms_choices)} | |
3052
d3200c58764e
implemented #663 Admin/permission: specify default repogroup perms
Marcin Kuzminski <marcin@python-works.com>
parents:
2709
diff
changeset
|
59 ${h.checkbox('overwrite_default_group','true')} |
d3200c58764e
implemented #663 Admin/permission: specify default repogroup perms
Marcin Kuzminski <marcin@python-works.com>
parents:
2709
diff
changeset
|
60 <label for="overwrite_default_group"> |
d3200c58764e
implemented #663 Admin/permission: specify default repogroup perms
Marcin Kuzminski <marcin@python-works.com>
parents:
2709
diff
changeset
|
61 <span class="tooltip" |
3622 | 62 title="${h.tooltip(_('All default permissions on each repository group will be reset to chosen permission, note that all custom default permission on repository groups will be lost'))}"> |
3654
ec6354949623
Fix a lot of casings - use standard casing in most places
Mads Kiilerich <madski@unity3d.com>
parents:
3627
diff
changeset
|
63 ${_('Overwrite existing settings')}</span> </label> |
3057
79c5967a1e5c
whitespace and formatting
Marcin Kuzminski <marcin@python-works.com>
parents:
3052
diff
changeset
|
64 |
3197 | 65 </div> |
66 </div> | |
67 <div class="field"> | |
68 <div class="label"> | |
3734
a8f520540ab0
New default permissions definition for user group create
Marcin Kuzminski <marcin@python-works.com>
parents:
3666
diff
changeset
|
69 <label for="default_group_perm">${_('User group')}:</label> |
3197 | 70 </div> |
71 <div class="select"> | |
3734
a8f520540ab0
New default permissions definition for user group create
Marcin Kuzminski <marcin@python-works.com>
parents:
3666
diff
changeset
|
72 ${h.select('default_user_group_perm','',c.user_group_perms_choices)} |
a8f520540ab0
New default permissions definition for user group create
Marcin Kuzminski <marcin@python-works.com>
parents:
3666
diff
changeset
|
73 ${h.checkbox('overwrite_default_user_group','true')} |
a8f520540ab0
New default permissions definition for user group create
Marcin Kuzminski <marcin@python-works.com>
parents:
3666
diff
changeset
|
74 <label for="overwrite_default_user_group"> |
a8f520540ab0
New default permissions definition for user group create
Marcin Kuzminski <marcin@python-works.com>
parents:
3666
diff
changeset
|
75 <span class="tooltip" |
a8f520540ab0
New default permissions definition for user group create
Marcin Kuzminski <marcin@python-works.com>
parents:
3666
diff
changeset
|
76 title="${h.tooltip(_('All default permissions on each user group will be reset to chosen permission, note that all custom default permission on repository groups will be lost'))}"> |
a8f520540ab0
New default permissions definition for user group create
Marcin Kuzminski <marcin@python-works.com>
parents:
3666
diff
changeset
|
77 ${_('Overwrite existing settings')}</span> </label> |
a8f520540ab0
New default permissions definition for user group create
Marcin Kuzminski <marcin@python-works.com>
parents:
3666
diff
changeset
|
78 |
3197 | 79 </div> |
80 </div> | |
417
3ed2d46a2ca7
permission refactoring,
Marcin Kuzminski <marcin@python-works.com>
parents:
384
diff
changeset
|
81 <div class="field"> |
3ed2d46a2ca7
permission refactoring,
Marcin Kuzminski <marcin@python-works.com>
parents:
384
diff
changeset
|
82 <div class="label"> |
3734
a8f520540ab0
New default permissions definition for user group create
Marcin Kuzminski <marcin@python-works.com>
parents:
3666
diff
changeset
|
83 <label for="default_repo_create">${_('Repository creation')}:</label> |
417
3ed2d46a2ca7
permission refactoring,
Marcin Kuzminski <marcin@python-works.com>
parents:
384
diff
changeset
|
84 </div> |
3197 | 85 <div class="select"> |
3734
a8f520540ab0
New default permissions definition for user group create
Marcin Kuzminski <marcin@python-works.com>
parents:
3666
diff
changeset
|
86 ${h.select('default_repo_create','',c.repo_create_choices)} |
a8f520540ab0
New default permissions definition for user group create
Marcin Kuzminski <marcin@python-works.com>
parents:
3666
diff
changeset
|
87 </div> |
a8f520540ab0
New default permissions definition for user group create
Marcin Kuzminski <marcin@python-works.com>
parents:
3666
diff
changeset
|
88 </div> |
a8f520540ab0
New default permissions definition for user group create
Marcin Kuzminski <marcin@python-works.com>
parents:
3666
diff
changeset
|
89 <div class="field"> |
a8f520540ab0
New default permissions definition for user group create
Marcin Kuzminski <marcin@python-works.com>
parents:
3666
diff
changeset
|
90 <div class="label"> |
a8f520540ab0
New default permissions definition for user group create
Marcin Kuzminski <marcin@python-works.com>
parents:
3666
diff
changeset
|
91 <label for="default_user_group_create">${_('User group creation')}:</label> |
a8f520540ab0
New default permissions definition for user group create
Marcin Kuzminski <marcin@python-works.com>
parents:
3666
diff
changeset
|
92 </div> |
a8f520540ab0
New default permissions definition for user group create
Marcin Kuzminski <marcin@python-works.com>
parents:
3666
diff
changeset
|
93 <div class="select"> |
a8f520540ab0
New default permissions definition for user group create
Marcin Kuzminski <marcin@python-works.com>
parents:
3666
diff
changeset
|
94 ${h.select('default_user_group_create','',c.user_group_create_choices)} |
3197 | 95 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
96 </div> |
2709
d2d35cf2b351
RhodeCode now has a option to explicitly set forking permissions. ref #508
Marcin Kuzminski <marcin@python-works.com>
parents:
2607
diff
changeset
|
97 <div class="field"> |
d2d35cf2b351
RhodeCode now has a option to explicitly set forking permissions. ref #508
Marcin Kuzminski <marcin@python-works.com>
parents:
2607
diff
changeset
|
98 <div class="label"> |
d2d35cf2b351
RhodeCode now has a option to explicitly set forking permissions. ref #508
Marcin Kuzminski <marcin@python-works.com>
parents:
2607
diff
changeset
|
99 <label for="default_fork">${_('Repository forking')}:</label> |
d2d35cf2b351
RhodeCode now has a option to explicitly set forking permissions. ref #508
Marcin Kuzminski <marcin@python-works.com>
parents:
2607
diff
changeset
|
100 </div> |
d2d35cf2b351
RhodeCode now has a option to explicitly set forking permissions. ref #508
Marcin Kuzminski <marcin@python-works.com>
parents:
2607
diff
changeset
|
101 <div class="select"> |
d2d35cf2b351
RhodeCode now has a option to explicitly set forking permissions. ref #508
Marcin Kuzminski <marcin@python-works.com>
parents:
2607
diff
changeset
|
102 ${h.select('default_fork','',c.fork_choices)} |
d2d35cf2b351
RhodeCode now has a option to explicitly set forking permissions. ref #508
Marcin Kuzminski <marcin@python-works.com>
parents:
2607
diff
changeset
|
103 </div> |
d2d35cf2b351
RhodeCode now has a option to explicitly set forking permissions. ref #508
Marcin Kuzminski <marcin@python-works.com>
parents:
2607
diff
changeset
|
104 </div> |
3734
a8f520540ab0
New default permissions definition for user group create
Marcin Kuzminski <marcin@python-works.com>
parents:
3666
diff
changeset
|
105 <div class="field"> |
a8f520540ab0
New default permissions definition for user group create
Marcin Kuzminski <marcin@python-works.com>
parents:
3666
diff
changeset
|
106 <div class="label"> |
a8f520540ab0
New default permissions definition for user group create
Marcin Kuzminski <marcin@python-works.com>
parents:
3666
diff
changeset
|
107 <label for="default_register">${_('Registration')}:</label> |
a8f520540ab0
New default permissions definition for user group create
Marcin Kuzminski <marcin@python-works.com>
parents:
3666
diff
changeset
|
108 </div> |
a8f520540ab0
New default permissions definition for user group create
Marcin Kuzminski <marcin@python-works.com>
parents:
3666
diff
changeset
|
109 <div class="select"> |
a8f520540ab0
New default permissions definition for user group create
Marcin Kuzminski <marcin@python-works.com>
parents:
3666
diff
changeset
|
110 ${h.select('default_register','',c.register_choices)} |
a8f520540ab0
New default permissions definition for user group create
Marcin Kuzminski <marcin@python-works.com>
parents:
3666
diff
changeset
|
111 </div> |
a8f520540ab0
New default permissions definition for user group create
Marcin Kuzminski <marcin@python-works.com>
parents:
3666
diff
changeset
|
112 </div> |
3786
222e6769e7b5
Added separate default permission for external_auth account
Marcin Kuzminski <marcin@python-works.com>
parents:
3734
diff
changeset
|
113 <div class="field"> |
222e6769e7b5
Added separate default permission for external_auth account
Marcin Kuzminski <marcin@python-works.com>
parents:
3734
diff
changeset
|
114 <div class="label"> |
222e6769e7b5
Added separate default permission for external_auth account
Marcin Kuzminski <marcin@python-works.com>
parents:
3734
diff
changeset
|
115 <label for="default_extern_activate">${_('External auth account activation')}:</label> |
222e6769e7b5
Added separate default permission for external_auth account
Marcin Kuzminski <marcin@python-works.com>
parents:
3734
diff
changeset
|
116 </div> |
222e6769e7b5
Added separate default permission for external_auth account
Marcin Kuzminski <marcin@python-works.com>
parents:
3734
diff
changeset
|
117 <div class="select"> |
222e6769e7b5
Added separate default permission for external_auth account
Marcin Kuzminski <marcin@python-works.com>
parents:
3734
diff
changeset
|
118 ${h.select('default_extern_activate','',c.extern_activate_choices)} |
222e6769e7b5
Added separate default permission for external_auth account
Marcin Kuzminski <marcin@python-works.com>
parents:
3734
diff
changeset
|
119 </div> |
222e6769e7b5
Added separate default permission for external_auth account
Marcin Kuzminski <marcin@python-works.com>
parents:
3734
diff
changeset
|
120 </div> |
3197 | 121 <div class="buttons"> |
3125
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
122 ${h.submit('save',_('Save'),class_="ui-btn large")} |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
123 ${h.reset('reset',_('Reset'),class_="ui-btn large")} |
3197 | 124 </div> |
384
c8fc57b92a60
Added permissions template
Marcin Kuzminski <marcin@python-works.com>
parents:
362
diff
changeset
|
125 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
126 </div> |
384
c8fc57b92a60
Added permissions template
Marcin Kuzminski <marcin@python-works.com>
parents:
362
diff
changeset
|
127 ${h.end_form()} |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
252
diff
changeset
|
128 </div> |
3125
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
129 |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
130 <div style="min-height:780px" class="box box-right"> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
131 <!-- box / title --> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
132 <div class="title"> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
133 <h5>${_('Default User Permissions')}</h5> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
134 </div> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
135 |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
136 ## permissions overview |
3734
a8f520540ab0
New default permissions definition for user group create
Marcin Kuzminski <marcin@python-works.com>
parents:
3666
diff
changeset
|
137 <%namespace name="p" file="/base/perms_summary.html"/> |
a8f520540ab0
New default permissions definition for user group create
Marcin Kuzminski <marcin@python-works.com>
parents:
3666
diff
changeset
|
138 ${p.perms_summary(c.perm_user.permissions)} |
3666
fda60c2ad65f
fixed sort of permissions summary it's now perm+name
Marcin Kuzminski <marcin@python-works.com>
parents:
3654
diff
changeset
|
139 |
3125
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
140 </div> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
141 <div class="box box-left" style="clear:left"> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
142 <!-- box / title --> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
143 <div class="title"> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
144 <h5>${_('Allowed IP addresses')}</h5> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
145 </div> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
146 |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
147 <div class="ips_wrap"> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
148 <table class="noborder"> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
149 %if c.user_ip_map: |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
150 %for ip in c.user_ip_map: |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
151 <tr> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
152 <td><div class="ip">${ip.ip_addr}</div></td> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
153 <td><div class="ip">${h.ip_range(ip.ip_addr)}</div></td> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
154 <td> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
155 ${h.form(url('user_ips_delete', id=c.user.user_id),method='delete')} |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
156 ${h.hidden('del_ip',ip.ip_id)} |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
157 ${h.hidden('default_user', 'True')} |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
158 ${h.submit('remove_',_('delete'),id="remove_ip_%s" % ip.ip_id, |
3654
ec6354949623
Fix a lot of casings - use standard casing in most places
Mads Kiilerich <madski@unity3d.com>
parents:
3627
diff
changeset
|
159 class_="delete_icon action_button", onclick="return confirm('"+_('Confirm to delete this ip: %s') % ip.ip_addr+"');")} |
3125
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
160 ${h.end_form()} |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
161 </td> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
162 </tr> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
163 %endfor |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
164 %else: |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
165 <tr><td><div class="ip">${_('All IP addresses are allowed')}</div></td></tr> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
166 %endif |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
167 </table> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
168 </div> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
169 |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
170 ${h.form(url('user_ips', id=c.user.user_id),method='put')} |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
171 <div class="form"> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
172 <!-- fields --> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
173 <div class="fields"> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
174 <div class="field"> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
175 <div class="label"> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
176 <label for="new_ip">${_('New ip address')}:</label> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
177 </div> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
178 <div class="input"> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
179 ${h.hidden('default_user', 'True')} |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
180 ${h.text('new_ip', class_='medium')} |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
181 </div> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
182 </div> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
183 <div class="buttons"> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
184 ${h.submit('save',_('Add'),class_="ui-btn large")} |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
185 ${h.reset('reset',_('Reset'),class_="ui-btn large")} |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
186 </div> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
187 </div> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
188 </div> |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
189 ${h.end_form()} |
9b92cf5a0cca
Added UserIpMap interface for allowed IP addresses and IP restriction access
Marcin Kuzminski <marcin@python-works.com>
parents:
3057
diff
changeset
|
190 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1472
diff
changeset
|
191 </%def> |