File:  [Repository] / basket / zpt / BasketMain_Basket_manageUserRights_standard.zpt
Revision 1.9: download - view: text, annotated - select for diffs - revision graph
Wed Aug 15 15:49:03 2007 UTC (16 years, 9 months ago) by casties
Branches: MAIN
CVS tags: HEAD
simplified some methods and added getters for unicode in basket.py
changed templates to use unicode getters

<html metal:use-macro="here/main_template/macros/page">
<head>
<title>Default</title>
<style metal:fill-slot="additionalStyles" type="text/css">
td.vario { background-color:#AC1D15 } 
</style>
</head>
<body>
<body>

<!-- span = bodytext -->
<span metal:fill-slot="body" tal:omit-tag="" tal:condition="python:here.checkPermission('admin')">
<span tal:omit-tag="" tal:define="users python:here.groupFolder.getGroupsAndUsers()"> 

<h2 class="setTitle" tal:content="here/title"/>

<h3>Manage the access status of this set</h3>

<form action="changeBasket">
<input type="hidden" name="target" value="manageUserRights_html">
<input type="hidden" name="title" tal:attributes="value here/getTitle">
<input type="hidden" name="shortDescription" tal:attributes="value here/getShortDescription">
<input type="hidden" name="comment" tal:attributes="value here/getComment">

<p>You can control the visibility of this set to others: a <b>hidden</b> set is for your eyes only, all other sets can be accessed if the address (URL) is known. A <b>private</b> set will not show up in any public list, while an <b>open_intern</b> set can be viewed by other registered users and is published to 'User Sets'. <span tal:omit-tag="" tal:condition="python:here.checkPermission('publish')">Finally, everyone is allowed to see an <b>open</b> set that will show up in 'Public Sets'.</span></p>

<span tal:omit-tag="" tal:repeat="item here/publicationStatusList">
	<span tal:omit-tag="" tal:condition="python:item != 'group'"> 
		<tal:x condition="python:here.checkPermission('publish') or (item != 'open')">
		<input tal:condition="python:item==here.publicationStatus" type="radio"
			name="publicationStatus" tal:attributes="value item" checked>
		<input tal:condition="not:python:item==here.publicationStatus" type="radio" 
			name="publicationStatus" tal:attributes="value item">
		<span tal:content="item"/><br>
		</tal:x>
	</span>
</span><br>

<input type="submit" value=" save ">
</form>

<hr>

<h3>Manage the user rights for this set</h3>

<p>Both Editors and Admins may work on the content of this set,
but only Administrators are allowed to change its publication status
and can grant or deny permissions to other co-users.</p>

<h4>Registered Administrators:</h4>

<p><i>Please specify the exact usernames as komma separated list.</i><br>
<form action="groupFolder/addKommaListOfUsersToGroup" method="get">
<input type="hidden" name="group" value="admin">
<input type="hidden" name="remove" value="protected">
<input type="text" size="50" name="users" tal:attributes="value python:', '.join(users['admin'])">
<input type="submit" value=" save ">
</form>
</p>

<h4>Registered Editors:</h4>

<p><i>Please specify the exact usernames as komma separated list.</i><br>
<form action="groupFolder/addKommaListOfUsersToGroup">
<input type="hidden" name="group" value="editor">
<input type="hidden" name="remove" value="protected">
<input type="text" size="50" name="users" tal:attributes="value python:', '.join(users['editor'])">
<input type="submit" value=" save ">
</form>
</p>

<a tal:attributes="href python: '../' + here.id + '/manageBasket'">return to this set</a>
</span>
</span>
</body>
</html>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>