1 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
3 metal:use-macro="here/main_template/macros/master"
6 <metal:block fill-slot="top_slot"
7 tal:define="dummy python:request.set('enable_border',1)" />
11 <div metal:fill-slot="main"
12 tal:define="Batch python:modules['Products.CMFPlone'].Batch;
13 username member/getUserName;
14 group_submit request/group_submit|nothing;
15 b_size python:12;b_start python:0;b_start request/b_start | b_start;
16 search_submitted request/role_submit|nothing;
17 search_results python:search_submitted and mtool.searchForMembers(
18 {request.get('search_param',''):
19 request.get('search_term', '')}) or None;">
21 <h1 i18n:translate="heading_currently_assigned_shares">
22 Current sharing permissions for
23 <span tal:content="here/title_or_id" i18n:name="folder">title</span>
26 <p i18n:translate="description_share_folders_items_current_shares">
27 You can share the rights for both folders (including content) and single items.
28 These users have privileges here:
31 <fieldset tal:define="iroles python:here.plone_utils.getInheritedLocalRoles(here);"
32 tal:condition="iroles">
34 <legend i18n:translate="legend_acquired_roles">
38 <table class="listing" summary="Acquired roles">
41 <th i18n:translate="label_user_group_name">User/Group name</th>
42 <th i18n:translate="label_type">Type</th>
43 <th i18n:translate="label_roles">Role(s)</th>
47 <tr tal:repeat="irole iroles">
48 <td tal:content="python:irole[0]">
52 <td tal:condition="python:irole[2]=='group'"
53 i18n:translate="label_group">
56 <td tal:condition="python:irole[2]=='user'"
57 i18n:translate="label_user">
62 <tal:block tal:repeat="role python:irole[1]">
63 <span i18n:translate=""
65 tal:omit-tag="">Role</span>
66 <span tal:condition="not: repeat/role/end"
67 tal:omit-tag="">, </span>
78 action="folder_localrole_edit"
79 tal:attributes="action string:$here_url/folder_localrole_edit">
83 <legend i18n:translate="legend_assigned_roles">
85 <span tal:content="here/title_or_id" i18n:name="folder">title</span>
88 <input type="hidden" name="change_type" value="delete" />
89 <input type="hidden" name="member_role" value="" />
91 <table class="listing" summary="Currently assigned local roles">
95 <input type="checkbox"
96 onclick="javascript:toggleSelect(this, 'member_ids:list', false, 'deleterole');"
103 <th i18n:translate="label_user_group_name">User/Group name</th>
104 <th i18n:translate="label_type">Type</th>
105 <th i18n:translate="label_roles">Role(s)</th>
109 <tr tal:repeat="lrole python:here.acl_users.getLocalRolesForDisplay(here)">
111 <label class="hiddenLabel" for="member_ids:list"
112 i18n:translate="label_select_usergroup">
113 select user/group <span tal:content="python:lrole[3]" i18n:name="role"/>
115 <input class="formSelection"
117 name="member_ids:list"
120 tal:condition="python:lrole[0]!=username"
121 tal:attributes="value python:lrole[3];"
125 <td tal:content="python:lrole[0]">
129 <td tal:condition="python:lrole[2]=='group'"
130 i18n:translate="label_group">
133 <td tal:condition="python:lrole[2]=='user'"
134 i18n:translate="label_user">
139 <tal:block tal:repeat="role python:lrole[1]">
140 <span i18n:translate=""
142 tal:omit-tag="">Role</span>
143 <span tal:condition="not: repeat/role/end"
144 tal:omit-tag="">, </span>
152 <input class="context"
154 value="Delete Selected Role(s)"
155 i18n:attributes="value"
163 <metal:block tal:condition="python:test(search_submitted and not search_results, 1, 0)">
164 <h1 i18n:translate="heading_search_results">Search results</h1>
165 <p i18n:translate="no_members_found">
166 No members were found using your <strong>Search Criteria</strong>
171 <metal:block tal:condition="python:test(search_submitted and search_results, 1, 0)">
173 <h1 i18n:translate="heading_search_results">Search results</h1>
175 <p i18n:translate="description_localrole_select_member">
176 Select one or more people, and a role to assign.
179 <metal:block tal:define="batch python:Batch(search_results, b_size, int(b_start), orphan=3);
180 nResults python:len(search_results);">
184 action="folder_localrole_edit"
185 tal:attributes="action string:$here_url/folder_localrole_edit">
189 <legend i18n:translate="legend_available_members">Available Members</legend>
191 <input type="hidden" name="change_type" value="add" />
193 <!-- batch navigation -->
194 <div metal:use-macro="here/batch_macros/macros/navigation" />
196 <table class="listing" summary="Search results">
200 <input type="checkbox"
201 onclick="javascript:toggleSelect(this, 'member_ids:list', false, 'change_type');"
208 <th i18n:translate="label_user_name">User Name</th>
209 <th i18n:translate="label_email_address">Email Address</th>
213 <tr tal:repeat="member batch">
214 <td class="field" tal:define="global member_username member/getUserName">
215 <label class="hiddenLabel" for="member_ids:list"
216 i18n:translate="label_select_user">
217 select user <span tal:content="member_username" i18n:name="user" />
219 <input class="formSelection"
221 name="member_ids:list"
224 tal:attributes="value member_username;
225 checked python:nResults==1;"
229 <td tal:content="python:member_username">username</td>
230 <td tal:content="member/email">email</td>
235 <!-- batch navigation -->
236 <div metal:use-macro="here/batch_macros/macros/navigation" />
240 <label for="user_member_role" i18n:translate="label_localrole_to_assign">
244 <select name="member_role:list"
245 id="user_member_role"
247 <option tal:repeat="lroles python:mtool.getCandidateLocalRoles(here)"
248 tal:attributes="value lroles"
258 <input class="context"
260 value="Assign Local Role to Selected User(s)"
261 i18n:attributes="value"
273 <tal:block tal:condition="python: (not search_submitted or
274 (search_submitted and not search_results))">
276 <h1 i18n:translate="heading_add_sharing_permissions">
277 Add sharing permissions for
278 <tal:block tal:content="here/title_or_id" i18n:name="item">title</tal:block>
282 <p i18n:translate="description_sharing_item">
283 Sharing is an easy way to allow others access to collaborate with you
286 To share this item, search for the person's
287 name or email address in the form below, and assign them an appropriate role.
288 The most common use is to give people Manager permissions, which means they
289 have full control of this item and its contents (if any).
294 action="folder_localrole_form"
295 tal:attributes="action string:$here_url/${template/getId}" >
299 <legend i18n:translate="legend_search_terms">Search Terms</legend>
301 <input type="hidden" name="role_submit" value="role_submit" />
304 <label for="search_param" i18n:translate="label_search_by">
308 <select name="search_param"
310 <option value="name" i18n:translate="label_user_name">
313 <option value="email" i18n:translate="label_email_address">
321 <label for="search_term" i18n:translate="label_search_term">
333 <input class="context"
335 value="Perform Search"
336 i18n:attributes="value"
345 <tal:groupshares define="grouplist gtool/listGroups"
346 condition="grouplist">
348 <h1 i18n:translate="heading_group_shares">Add sharing permissions to groups</h1>
350 <p i18n:translate="description_group_shares">
351 Groups are a convenient way to share items to a common set of
352 users. Select one or more groups, and a role to assign.
356 name="change_type_group"
357 action="folder_localrole_edit"
358 tal:attributes="action string:$here_url/folder_localrole_edit">
362 <legend i18n:translate="legend_available_groups">
366 <input type="hidden" name="change_type" value="add" />
368 <table class="listing" summary="Available groups">
372 <input type="checkbox"
373 onclick="javascript:toggleSelect(this, 'member_ids:list', false, 'change_type_group');"
380 <th i18n:translate="listingheader_name">Name</th>
384 <tr tal:repeat="group grouplist">
385 <td tal:define="global group_name group/getUserId">
386 <label class="hiddenLabel" for="member_ids:list"
387 i18n:translate="label_select_group">
388 select group <span tal:content="group_name" i18n:name="name"/>
390 <input class="formSelection"
392 name="member_ids:list"
395 tal:attributes="value group_name;" />
397 <td tal:content="group/getUserNameWithoutGroupPrefix">
406 <label for="group_member_role" i18n:translate="label_localrole_to_assign">
410 <select name="member_role:list"
411 id="group_member_role"
413 <option tal:repeat="lroles python:mtool.getCandidateLocalRoles(here)"
414 tal:attributes="value lroles"
423 <input class="context"
425 value="Assign Local Role to Selected Group(s)"
426 i18n:attributes="value"
436 <div metal:use-macro="here/document_byline/macros/byline">
437 Get the byline - contains details about author and modification date.