loops/security/browser/manage_workspace.pt
helmutm c2ccc9fdb5 create separate browser package for security-related views; provide first end-user view: Role Permissions by Type
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@4072 fd906abe-77d9-0310-91a1-e0d9ade77398
2010-11-13 09:19:29 +00:00

60 lines
2.1 KiB
XML

<html metal:use-macro="context/@@standard_macros/view"
i18n:domain="zope">
<body>
<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>