Annotation of basket/zpt/BasketFolder_manage_template_standard.zpt, revision 1.9

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.9     ! dwinter    15: <tal:block tal:condition="python:here.checkPermission('edit') or 
        !            16:    here.REQUEST.get('mode', 'private')=='private' ">
1.1       dwinter    17:    
1.9     ! dwinter    18:    <h3 tal:define="global mode python: 
        !            19:        here.REQUEST.get('mode', here.REQUEST.get('mode','private'))"><span 
1.3       dwinter    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="
1.9     ! dwinter    26:        href python:'setFolder?mode=%s'%mode">|&nbsp;return to overwiew</a></h3>
1.2       dwinter    27:        
1.9     ! dwinter    28:    <p>Manage your Sets:</p>
1.1       dwinter    29:    
1.9     ! dwinter    30:    <div class="item" 
        !            31:        tal:define="currentBasket here/getCurrentBasket" 
        !            32:        tal:repeat="item python:here.getSets(mode=mode)">
1.1       dwinter    33:    <hr>
1.9     ! dwinter    34:    <div style="text-indent: -25px;padding-left:25px;">
        !            35:        <div style="float:right">
        !            36:            <span tal:omit-tag=""
        !            37:                tal:condition="python: 
        !            38:                    currentBasket is None  or (currentBasket and (item.id != currentBasket.id))">       
1.5       dwinter    39:            <a class="editLink" tal:attributes="
1.9     ! dwinter    40:                href python: item.absolute_url() + 
        !            41:                    '/selectThisBasketAsCurrent?target=/users/setFolder%3Fmode=' + mode">select</a> - 
        !            42:            </span>
        !            43:            <i tal:condition="not: python: 
        !            44:                currentBasket is None  or (currentBasket and (item.id != currentBasket.id))">       
        !            45:            active set -</i>
        !            46:            
1.5       dwinter    47:            <a class="editLink" tal:attributes="
                     48:                href python: item.absolute_url() + '/manageBasket'">edit</a> - 
1.2       dwinter    49:            <a tal:attributes="
                     50:                class python:'editLink'; 
1.5       dwinter    51:                href python:'deleteObject?id=%s'%item.getId()"
                     52:                onclick="return window.confirm(
                     53:                    'Do you really want to remove this item?\nThis is not undoable.')">delete</a>
1.9     ! dwinter    54:        </div>
        !            55:        <a class="setTitleLink" tal:attributes="href item/absolute_url" tal:content="item/title"/>
        !            56:        <i class="small" style="white-space:nowrap" 
        !            57:            tal:condition="python: 
        !            58:                mode == 'private' and here.getActualUserName() != item.owner" 
        !            59:            tal:content="python:
        !            60:                ' [shared set, created by ' + item.owner + ']'" 
        !            61:        /><br>
1.5       dwinter    62:        move: <a tal:attributes="
1.2       dwinter    63:            class python:'editLink'; 
                     64:            href python:'moveTop?id=%s'%item.getId()">top</a>
                     65:        <a tal:attributes="
                     66:            class python:'editLink'; 
                     67:            href python:'moveUp?id=%s'%item.getId()">up</a>
                     68:        <a tal:attributes="
                     69:            class python:'editLink'; 
                     70:            href python:'moveDown?id=%s'%item.getId()">down</a>
                     71:        <a tal:attributes="
                     72:            class python:'editLink'; 
                     73:            href python:'moveBottom?id=%s'%item.getId()">bottom</a>
1.1       dwinter    74:     </div>
                     75:    </div>
1.7       dwinter    76:    
1.1       dwinter    77: </tal:block>
                     78: 
                     79: 
                     80: <!-- user is not logged in -->
1.8       dwinter    81: <tal:block tal:condition="not:python:here.checkPermission('edit') or here.REQUEST.get('mode', 'private')=='private'">
1.1       dwinter    82: 
                     83:    <h3>No access</h3>
1.7       dwinter    84:    <p>You are not authorized to access this page, please <a href="/users/login.html">log in</a>.</p>
1.1       dwinter    85: </tal:block>
                     86: 
                     87: </span>
                     88: <!-- ende bodytext -->
                     89: </body>
                     90: </html>

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