1 <h1 tal:replace="structure here/manage_page_header">Header</h1>
2 <h2 tal:define="manage_tabs_message options/manage_tabs_message | nothing"
3 tal:replace="structure here/manage_tabs">Tabs</h2>
5 <h4>Groups sources</h4>
6 <!-- Groups source row -->
8 <table cellspacing="10" width="90%" tal:define="groups here/getGroups">
10 <th class="list-header">Groups source</th>
11 <td bgcolor="#EEEEEE">
12 <img src="" tal:attributes="src here/Groups/acl_users/icon">
13 <a href="Groups/acl_users/manage_workspace" tal:content="here/Groups/acl_users/meta_type">Type</a>
19 <h4>Groups management</h4>
20 <form action="" method="POST" tal:attributes="action here/absolute_url">
22 <table cellspacing="10" width="90%" tal:define="groups here/getGroups">
24 <!-- Groups selection -->
26 <table bgcolor="#EEEEEE" width="100%">
27 <tr class="list-header" tal:condition="groups">
30 <th class="list-header">Member <br>of groups</th>
31 <th class="list-header">Implicitly <br>member of*</th>
32 <th class="list-header">Has roles</th>
33 <th class="list-header">Implicitly <br>has roles**</th>
37 tal:repeat="group groups" class="" tal:attributes="class python:test(path('repeat/group/odd'), 'row-hilite', 'row-normal')"
40 label_groups python:group.getGroups();
41 label_groups_no_recurse python:group.getImmediateGroups();
42 label_groups_recurse python:filter(lambda x: x not in label_groups_no_recurse, label_groups);
43 groups_no_recurse python:map(lambda x: here.getUser(x), label_groups_no_recurse);
44 groups_recurse python:map(lambda x: here.getUser(x), label_groups_recurse);
45 roles python:filter(lambda x: x not in ('Authenticated', 'Shared'), group.getRoles());
46 roles_no_recurse python:filter(lambda x: x not in ('Authenticated', 'Shared'), group.getUserRoles());
47 roles_recurse python:filter(lambda x: x not in roles_no_recurse, roles);"
49 <td><div class="list-item"><input type="checkbox" name="groups:list" value="" tal:attributes="value group"></td>
51 <div class="list-item">
53 <strong tal:content="structure group/asHTML">
56 <td class="list-item">
57 <span tal:repeat="group groups_no_recurse" >
58 <span tal:replace="structure group/asHTML"></span><span tal:condition="not:repeat/group/end">, </span>
61 <td class="list-item">
62 <span tal:repeat="group groups_recurse" >
63 <span tal:replace="structure python:group.asHTML(implicit=1)"></span><span tal:condition="not:repeat/group/end">, </span>
66 <td class="list-item">
67 <div class="list-item">
68 <span tal:repeat="role roles_no_recurse" >
70 tal:attributes="color here/role_color">
71 <span tal:replace="role"></span><span tal:condition="not:repeat/role/end">, </span>
76 <td class="list-item">
77 <div class="list-item">
78 <span tal:repeat="role roles_recurse" >
80 tal:attributes="color here/role_color">
81 <i><span tal:replace="role"></span></i><span tal:condition="not:repeat/role/end">, </span>
91 <td><div class="list-item"> </div></td>
92 <td><div class="list-item">Create groups:<br /><textarea name="new_groups:lines" cols="20" rows="3"></textarea></div></td>
94 <div class="list-item">
95 Newly created groups will be affected groups and roles according to the table below.
100 <td colspan="2" align="center">
101 <input type="submit" name="changeOrCreateGroups:method" value="Create" />
103 <input type="submit" name="deleteGroups:method" value="Delete" />
111 <div class="list-item">
112 Select one or more users in the upper table, select one or more groups / roles in the table below
113 and click "Change" to affect groups / roles to these users.
118 <td valign="top" align="center" colspan="6">
119 <table bgcolor="#EEEEEE">
122 <!-- Groups selection -->
124 <tr class="list-header">
125 <th colspan="2">Affect groups</th>
128 <tr tal:repeat="group here/getGroups">
130 <input type="checkbox" name="nested_groups:list" value="" tal:attributes="value group">
133 <div class="list-item" tal:content="structure group/asHTML"></div>
137 <!-- "(None)" item -->
139 <td><div class="list-item"><input type="checkbox" name="nested_groups:list" value="__None__"></div></td>
140 <td><div class="list-item"><i>(None)</i></div></td>
145 <!-- Roles selection -->
147 <tr class="list-header">
148 <th colspan="2">Affect roles</th>
151 <tr tal:repeat="role here/valid_roles">
152 <td tal:condition="python:role not in ('Authenticated', 'Anonymous', 'Shared')">
153 <input type="checkbox" name="roles:list" value="" tal:attributes="value role">
155 <td tal:condition="python:role not in ('Authenticated', 'Anonymous', 'Shared')">
156 <div class="list-item"><font color="" tal:attributes="color here/role_color" tal:content="role">Role</font></div>
160 <!-- "(None)" item -->
162 <td><div class="list-item"><input type="checkbox" name="roles:list" value="__None__"></div></td>
163 <td><div class="list-item"><i>(None)</i></div></td>
169 <td colspan="2" align="middle"><input type="submit" name="changeOrCreateGroups:method" value="Change" /></td>
178 <tr tal:replace="nothing">
179 <td valign="top" bgcolor="#EEEEEE">
180 <!-- Groups selection -->
182 <tr class="list-header">
183 <th colspan="2">Affect groups</th>
186 <tr tal:repeat="group here/getGroups">
188 <input type="checkbox" name="nested_groups:list" value="" tal:attributes="value group">
191 <div class="list-item" tal:content="structure group/asHTML"></div>
195 <!-- "(None)" item -->
197 <td><div class="list-item"><input type="checkbox" name="nested_groups:list" value="__None__"></div></td>
198 <td><div class="list-item"><i>(None)</i></div></td>
204 <!-- Roles selection -->
206 <tr class="list-header">
207 <th colspan="2">Affect roles</th>
210 <tr tal:repeat="role here/valid_roles">
211 <td tal:condition="python:role not in ('Authenticated', 'Anonymous', 'Shared')">
212 <input type="checkbox" name="roles:list" value="" tal:attributes="value role">
214 <td tal:condition="python:role not in ('Authenticated', 'Anonymous', 'Shared')">
215 <div class="list-item"><font color="" tal:attributes="color here/role_color" tal:content="role">Role</font></div>
218 <!-- "(None)" item -->
220 <td><div class="list-item"><input type="checkbox" name="roles:list" value="__None__"></div></td>
221 <td><div class="list-item"><i>(None)</i></div></td>
227 <p class="form-help">
228 * According to the groups inheritance, this group is also recursively member of these groups. <br />This is what we call nested groups.
230 <p class="form-help">
231 ** Accorded to the groups inheritance, this group also has these roles - even if they are not defined explicitly on it.
238 <h4>Instructions</h4>
241 <p class="form-help">
242 To change roles for one or several groups, select them in the left form, select the roles you want to give them in the form on the right and click "Change".<br />
243 You can also create one or several groups by filling the text area (one group per line). the "Change" button will create them with the roles you've selected.<br />
244 If you are fed up with some groups, you can delete them by selecting them and clicking the "Delete" button.
246 <p class="form-help">
247 If you do not select any role, roles won't be reseted for the selected groups.<br />
248 If you do not select any group, groups won't be reseted for the selected groups.<br />
249 To explicitly reset groups or roles, just click the "(None)" entry (and no other entry).
253 <h4>Important notice / disclaimer</h4>
256 <p class="form-help">
257 This form uses the regular Zope Security API from the underlying user folders. However, you may experience problems with some
258 of them, especially if they are not tuned to allow user adding. For example, an LDAPUserFolder can be configured to disable
259 users management. In case this form doesn't work, you'll have to do things by hand within the 'Users' and 'Groups' GRUF folders.
262 <p class="form-help">
263 This is not a GRUF limitation ! :-)
267 <h1 tal:replace="structure here/manage_page_footer">Footer</h1>