Annotation of basket/zpt/BasketFolder_manage_template_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>
                      9: 
                     10: <!-- span = bodytext -->
                     11: <span metal:fill-slot="body" tal:omit-tag="">
                     12: 
                     13: 
                     14: <!-- user is logged in -->
1.6       dwinter    15: <tal:block tal:condition="python:here.checkPermission('edit')">
1.1       dwinter    16:    
                     17:    <!-- id selected: manage set -->
                     18:    
1.3       dwinter    19:    <h2 tal:define="global mode python: here.REQUEST.get('mode', 'private')"><span 
                     20:        tal:condition="python: mode == 'private'" 
1.2       dwinter    21:        tal:replace="python:'My '" /><span 
1.3       dwinter    22:        tal:condition="python: mode == 'open_internal'" 
1.2       dwinter    23:        tal:replace="python:'User '" /><span 
1.3       dwinter    24:        tal:condition="python: mode == 'open'" 
1.7     ! dwinter    25:        tal:replace="python:'Public '" />Sets <a class="editLink" tal:attributes="
        !            26:        href python:'setFolder?mode=%s'%mode">|&nbsp;return to overwiew</a></h2>
1.2       dwinter    27:        
                     28:    <h3>Edit this Overview:</h3>
1.1       dwinter    29:    
                     30:    <div class="item" tal:repeat="item here/getObjects">
                     31:    <hr>
                     32:     <div>
1.2       dwinter    33:        <span style="float:right">
1.5       dwinter    34:            <a class="editLink" tal:attributes="
                     35:                href python: item.absolute_url() + '/selectThisBasketAsCurrent'">select</a> - 
                     36:            <a class="editLink" tal:attributes="
                     37:                href python: item.absolute_url() + '/manageBasket'">edit</a> - 
1.2       dwinter    38:            <a tal:attributes="
                     39:                class python:'editLink'; 
1.5       dwinter    40:                href python:'deleteObject?id=%s'%item.getId()"
                     41:                onclick="return window.confirm(
                     42:                    'Do you really want to remove this item?\nThis is not undoable.')">delete</a>
1.2       dwinter    43:        </span>
                     44:        <a class="setTitle" tal:attributes="href item/absolute_url" tal:content="item/title"/>
                     45:    </div>
                     46:     <div class="TOC">
1.5       dwinter    47:        move: <a tal:attributes="
1.2       dwinter    48:            class python:'editLink'; 
                     49:            href python:'moveTop?id=%s'%item.getId()">top</a>
                     50:        <a tal:attributes="
                     51:            class python:'editLink'; 
                     52:            href python:'moveUp?id=%s'%item.getId()">up</a>
                     53:        <a tal:attributes="
                     54:            class python:'editLink'; 
                     55:            href python:'moveDown?id=%s'%item.getId()">down</a>
                     56:        <a tal:attributes="
                     57:            class python:'editLink'; 
                     58:            href python:'moveBottom?id=%s'%item.getId()">bottom</a>
1.1       dwinter    59:     </div>
                     60:    </div>
1.7     ! dwinter    61:    
1.1       dwinter    62: </tal:block>
                     63: 
                     64: 
                     65: <!-- user is not logged in -->
1.6       dwinter    66: <tal:block tal:condition="not:python:here.checkPermission('edit')">
1.1       dwinter    67: 
                     68:    <h3>No access</h3>
1.7     ! dwinter    69:    <p>You are not authorized to access this page, please <a href="/users/login.html">log in</a>.</p>
1.1       dwinter    70: </tal:block>
                     71: 
                     72: </span>
                     73: <!-- ende bodytext -->
                     74: </body>
                     75: </html>

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