Annotation of basket/zpt/BasketMain_Basket_manageUserRights_standard.zpt, revision 1.6

1.1       dwinter     1: <html metal:use-macro="here/main_template/macros/page">
                      2: <head>
                      3: <title>Default</title>
1.2       dwinter     4: <style metal:fill-slot="additionalStyles" type="text/css">
                      5: td.vario { background-color:#AC1D15 } 
                      6: </style>
1.1       dwinter     7: </head>
                      8: <body>
1.2       dwinter     9: <body>
1.1       dwinter    10: 
                     11: <!-- span = bodytext -->
1.6     ! dwinter    12: <span metal:fill-slot="body" tal:omit-tag="" tal:condition="python:here.checkPermission('admin')">
1.3       dwinter    13: <span tal:omit-tag="" tal:define="users python:here.groupFolder.getGroupsAndUsers()"> 
                     14: 
                     15: <h2 class="setTitle" tal:content="here/title"/>
                     16: 
                     17: <h3>Control the publication status of this set</h3>
                     18: 
                     19: <form action="changeBasket">
                     20: <input type="hidden" name="target" value="manageUserRights_html">
                     21: <input type="hidden" name="title" tal:attributes="value here/title">
                     22: <input type="hidden" name="shortDescription" tal:attributes="value here/shortDescription">
                     23: <input type="hidden" name="comment" tal:attributes="value here/comment">
                     24: 
                     25: <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 <b>User Sets</b>. <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 <b>Public Sets</b>.</span></p>
                     26: 
                     27: <span tal:omit-tag="" tal:repeat="item here/publicationStatusList">
                     28:    <span tal:omit-tag="" tal:condition="python:
                     29:        item != 'group' or (here.checkPermission('publish') and item == 'open')">
                     30:        <input tal:condition="python:item==here.publicationStatus" type="radio"
                     31:            name="publicationStatus" tal:attributes="value item" checked>
                     32:        <input tal:condition="not:python:item==here.publicationStatus" type="radio" 
                     33:            name="publicationStatus" tal:attributes="value item">
                     34:        <span tal:content="item"/><br>
                     35:    </span>
                     36: </span><br>
                     37: 
                     38: <!--
                     39: <tal:x repeat="item here/publicationStatusList">
                     40: <tal:x replace="python:here.checkPermission('publish')"/>
                     41: <tal:x condition="python:(item!='open') or 
                     42:    (item=='open' and here.checkPermission('publish'))">
                     43: <input tal:condition="python:item==here.publicationStatus" type="radio"
                     44:    name="publicationStatus" tal:attributes="value item" checked>
                     45: <input tal:condition="not:python:item==here.publicationStatus" type="radio" 
                     46:    name="publicationStatus" tal:attributes="value item">
                     47: <span tal:content="item"/>
                     48: </tal:x>
                     49: </tal:x>
                     50: -->
                     51: <input type="submit" value=" save ">
                     52: </form>
                     53: 
                     54: <hr>
                     55: 
                     56: <h3>Manage the user rights for this set</h3>
                     57: 
                     58: <p>Editors and Admins may work on the content of this set,
1.4       dwinter    59: but only Admins are allowed to change its publication status.</p>
1.3       dwinter    60: 
                     61: <h4>Registered admins:</h4>
                     62: 
                     63: <p><i>Please specify the exact usernames as komma separated list.</i><br>
1.1       dwinter    64: <form action="groupFolder/addKommaListOfUsersToGroup" method="get">
                     65: <input type="hidden" name="group" value="admin">
1.6     ! dwinter    66: <input type="hidden" name="remove" value="protected">
1.3       dwinter    67: <input type="text" size="50" name="users" tal:attributes="value python:', '.join(users['admin'])">
                     68: <input type="submit" value=" save ">
1.1       dwinter    69: </form>
                     70: </p>
1.3       dwinter    71: 
                     72: <h4>Registered editors:</h4>
                     73: 
                     74: <p><i>Please specify the exact usernames as komma separated list.</i><br>
1.1       dwinter    75: <form action="groupFolder/addKommaListOfUsersToGroup">
                     76: <input type="hidden" name="group" value="editor">
1.6     ! dwinter    77: <input type="hidden" name="remove" value="protected">
1.3       dwinter    78: <input type="text" size="50" name="users" tal:attributes="value python:', '.join(users['editor'])">
                     79: <input type="submit" value=" save ">
1.1       dwinter    80: </form>
                     81: </p>
1.3       dwinter    82: 
1.5       dwinter    83: <a tal:attributes="href python: '../' + here.id + '/manageBasket'">return to this set</a>
1.1       dwinter    84: </span>
                     85: </span>
                     86: </body>
                     87: </html>

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