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

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">
1.7     ! dwinter    28:    <span tal:omit-tag="" tal:condition="python:item != 'group'"> 
        !            29:        <tal:x condition="python:here.checkPermission('publish') or (item != 'open')">
1.3       dwinter    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>
1.7     ! dwinter    35:        </tal:x>
1.3       dwinter    36:    </span>
                     37: </span><br>
                     38: 
                     39: <!--
                     40: <tal:x repeat="item here/publicationStatusList">
                     41: <tal:x replace="python:here.checkPermission('publish')"/>
                     42: <tal:x condition="python:(item!='open') or 
                     43:    (item=='open' and here.checkPermission('publish'))">
                     44: <input tal:condition="python:item==here.publicationStatus" type="radio"
                     45:    name="publicationStatus" tal:attributes="value item" checked>
                     46: <input tal:condition="not:python:item==here.publicationStatus" type="radio" 
                     47:    name="publicationStatus" tal:attributes="value item">
                     48: <span tal:content="item"/>
                     49: </tal:x>
                     50: </tal:x>
                     51: -->
                     52: <input type="submit" value=" save ">
                     53: </form>
                     54: 
                     55: <hr>
                     56: 
                     57: <h3>Manage the user rights for this set</h3>
                     58: 
                     59: <p>Editors and Admins may work on the content of this set,
1.4       dwinter    60: but only Admins are allowed to change its publication status.</p>
1.3       dwinter    61: 
                     62: <h4>Registered admins:</h4>
                     63: 
                     64: <p><i>Please specify the exact usernames as komma separated list.</i><br>
1.1       dwinter    65: <form action="groupFolder/addKommaListOfUsersToGroup" method="get">
                     66: <input type="hidden" name="group" value="admin">
1.6       dwinter    67: <input type="hidden" name="remove" value="protected">
1.3       dwinter    68: <input type="text" size="50" name="users" tal:attributes="value python:', '.join(users['admin'])">
                     69: <input type="submit" value=" save ">
1.1       dwinter    70: </form>
                     71: </p>
1.3       dwinter    72: 
                     73: <h4>Registered editors:</h4>
                     74: 
                     75: <p><i>Please specify the exact usernames as komma separated list.</i><br>
1.1       dwinter    76: <form action="groupFolder/addKommaListOfUsersToGroup">
                     77: <input type="hidden" name="group" value="editor">
1.6       dwinter    78: <input type="hidden" name="remove" value="protected">
1.3       dwinter    79: <input type="text" size="50" name="users" tal:attributes="value python:', '.join(users['editor'])">
                     80: <input type="submit" value=" save ">
1.1       dwinter    81: </form>
                     82: </p>
1.3       dwinter    83: 
1.5       dwinter    84: <a tal:attributes="href python: '../' + here.id + '/manageBasket'">return to this set</a>
1.1       dwinter    85: </span>
                     86: </span>
                     87: </body>
                     88: </html>

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