79 lines
2.9 KiB
XML
79 lines
2.9 KiB
XML
<html metal:use-macro="context/@@standard_macros/view"
|
|
i18n:domain="zope">
|
|
<body>
|
|
|
|
<metal:slot fill-slot="breadcrumbs">
|
|
<div id="breadcrumbs" metal:define-macro="breadcrumbs">
|
|
<div tal:omit-tag="" i18n:translate="">Location:</div> <tal:block
|
|
repeat="breadcrumb view/context/__parent__/@@absolute_url/breadcrumbs"
|
|
><a href=""
|
|
tal:condition="repeat/breadcrumb/start"
|
|
tal:attributes="
|
|
href string:${breadcrumb/url}/@@SelectedManagementView.html"
|
|
i18n:translate="">[top]</a>
|
|
<a href=""
|
|
tal:condition="not:repeat/breadcrumb/start"
|
|
tal:content="string:${breadcrumb/name}"
|
|
tal:attributes="
|
|
href string:${breadcrumb/url}/@@SelectedManagementView.html">
|
|
breadcrumb item</a> / </tal:block>
|
|
</div>
|
|
</metal:slot>
|
|
|
|
<div metal:fill-slot="body" i18n:domain="zope"
|
|
tal:define="groups_info view/getGroupsInfo">
|
|
<h1 i18n:translate="">Define Workspace Properties</h1>
|
|
<p tal:define="status view/update"
|
|
tal:content="status" i18n:translate=""/>
|
|
<form method="post">
|
|
<table class="listing"
|
|
tal:condition="groups_info">
|
|
<tr>
|
|
<th colspan="3"></th>
|
|
<th colspan="2">Assign role in</th>
|
|
</tr>
|
|
<tr>
|
|
<th>Predicate</th>
|
|
<th>Group name</th>
|
|
<th>Exists</th>
|
|
<th>Parent</th>
|
|
<th>WS Info</th>
|
|
</tr>
|
|
<tr tal:repeat="gi view/getGroupsInfo">
|
|
<td>
|
|
<input type="hidden" name="predicate_name:list"
|
|
tal:attributes="value gi/predicateName" />
|
|
<span tal:content="gi/predicateTitle" />
|
|
</td>
|
|
<td>
|
|
<input type="text" size="40"
|
|
tal:attributes="name string:group_name_${gi/predicateName};
|
|
value gi/groupName">
|
|
</td>
|
|
<td class="center"
|
|
tal:content="python:gi['groupExists'] and 'yes' or 'no'" />
|
|
<td class="center">
|
|
<input type="checkbox" value="true"
|
|
tal:attributes="name string:role_parent_${gi/predicateName};
|
|
checked gi/roleParent" /></td>
|
|
<td class="center">
|
|
<input type="checkbox" value="true"
|
|
tal:attributes="name string:role_wsi_${gi/predicateName};
|
|
checked gi/roleWSI" /></td>
|
|
</tr>
|
|
</table>
|
|
<p tal:condition="not:groups_info">
|
|
Please create "ismember" and "ismaster" predicates in order to use
|
|
the workspace-based group creation and granting functionality.</p>
|
|
<br />
|
|
<input type="submit" name="save_wsinfo" value="Save Settings"
|
|
tal:condition="groups_info"/>
|
|
</form>
|
|
<br />
|
|
<h2 i18n:translate="">Assign Permissions to Roles for Children of this Object</h2>
|
|
<br />
|
|
<metal:permissions use-macro="view/permission_macros/permission_form" />
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|