Annotation of basket/zpt/BasketMain_template_standard.zpt, revision 1.10

1.1       dwinter     1: <html metal:use-macro="here/main_template/macros/page">
                      2: <head>
                      3: <title>Default</title>
1.3       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="">
1.9       dwinter    12: <tal:block tal:define="authorized python:1 or here.checkPermission('authorized')">
1.1       dwinter    13: 
                     14: <!-- user is logged in -->
                     15: <tal:block tal:condition="authorized">
                     16: 
1.4       dwinter    17:    <!-- option box ?! -->
1.5       dwinter    18:    <div class="optionBox" 
                     19:        tal:condition="python: here.checkPermission('edit')" 
                     20:        tal:define="global currentBasket here/getCurrentBasket">        
                     21:    <i tal:condition="python: 
1.10    ! dwinter    22:        currentBasket and (here.id == currentBasket.id)">This is the active set</i>
        !            23:    <a class="editLink" 
        !            24:        tal:condition="not: python: currentBasket and (here.id == currentBasket.id)" 
        !            25:        tal:attributes=" 
        !            26:            href python: 'selectThisBasketAsCurrent?target=/users/setFolder/' + here.id"
        !            27:    >Make this <br>your active set.</a>
1.4       dwinter    28:    </div>
1.1       dwinter    29: 
1.4       dwinter    30:    <h2 class="setTitle"><span tal:replace="here/title"/>
                     31:        <span tal:condition="python: here.checkPermission('edit')">
                     32:            <a class="editLink" href="manageBasket">| Edit</a></span>
                     33:    </h2>
1.1       dwinter    34:    
1.4       dwinter    35:    <div class="setDescription" 
                     36:        tal:content="structure here/shortDescription">shortDescription</div><br>
                     37:    <div class="setComment" 
1.9       dwinter    38:        tal:content="structure python: here.formatAscii(here.vlp.link2html(here.comment))">Comment</div>
1.6       dwinter    39:    <br>
1.1       dwinter    40:    
1.6       dwinter    41:    <div class="seperator"> </div>
1.2       dwinter    42:    <tal:x tal:repeat="item here/getBasketObjects">
1.10    ! dwinter    43:        <div class="setItem" tal:condition="item/content_html" 
        !            44:            tal:content="structure item/content_html"
        !            45:        />
        !            46:        <div class="setItemComment" tal:condition="item/comment"  
        !            47:            tal:content="structure python: 
        !            48:                here.formatAscii(here.vlp.link2html(item.comment))"
        !            49:        />
1.6       dwinter    50:        <div class="seperator"> </div>
1.5       dwinter    51:    </tal:x>
1.1       dwinter    52:    
                     53: </tal:block>
                     54: 
                     55: 
                     56: <!-- user is not logged in -->
                     57: <tal:block tal:condition="not: authorized">
                     58:    <h3>No access</h3>
1.4       dwinter    59:    <p>You are not authorized to access this page, please <a href="/users/">log in</a>.</p>
1.1       dwinter    60: </tal:block>
1.4       dwinter    61: 
1.1       dwinter    62: </tal:block>
1.4       dwinter    63: 
1.1       dwinter    64: </span>
                     65: <!-- ende bodytext -->
                     66: </body>
                     67: </html>

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