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

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="">
                     12: <tal:block tal:define="authorized python:here.isAuthorized()">
                     13: 
                     14: <!-- user is logged in -->
                     15: <tal:block tal:condition="authorized">
                     16: 
                     17:    <!-- log in message -->
1.4       dwinter    18:    <div class="logout" style="float:right">
                     19:        <a href="/users/?logout">log out</a></div>
1.1       dwinter    20:    <div class="userName">logged in as <span tal:content="here/getActualUserName"/></div>
                     21:    
1.4       dwinter    22:    <!-- option box ?! -->
1.5     ! dwinter    23:    <div class="optionBox" 
        !            24:        tal:condition="python: here.checkPermission('edit')" 
        !            25:        tal:define="global currentBasket here/getCurrentBasket">        
        !            26:    <i tal:condition="python: 
        !            27:        currentBasket and (here.title == currentBasket.title)">This is the <br>active set</i>
        !            28:    <a class="editLink" tal:condition="not: python: 
        !            29:        currentBasket and (here.title == currentBasket.title)" 
        !            30:        href="selectThisBasketAsCurrent">Make this your active set.</a>
1.4       dwinter    31:    </div>
1.1       dwinter    32: 
1.4       dwinter    33:    <h2 class="setTitle"><span tal:replace="here/title"/>
                     34:        <span tal:condition="python: here.checkPermission('edit')">
                     35:            <a class="editLink" href="manageBasket">| Edit</a></span>
                     36:    </h2>
1.1       dwinter    37:    
1.4       dwinter    38:    <div class="setDescription" 
                     39:        tal:content="structure here/shortDescription">shortDescription</div><br>
                     40:    <div class="setComment" 
                     41:        tal:content="structure here/comment">Comment</div>
1.1       dwinter    42:    
1.5     ! dwinter    43:    <div style="height:2px;background-color:white;margin-bottom:3px;"> </div>
1.2       dwinter    44:    <tal:x tal:repeat="item here/getBasketObjects">
1.5     ! dwinter    45:        <div tal:content="structure item/content_html"
        !            46:            style="background-color:#d7d7d7;margin-bottom:3px;"/>
        !            47:        <!--<div style="height:2px;background-color:#d7d7d7;margin-bottom:3px;"> </div-->
        !            48:        <div tal:content="structure item/comment"/>
        !            49:        <div style="height:2px;background-color:white;margin:5px 5px 10px 0px;"> </div>
        !            50:    </tal:x>
1.1       dwinter    51:    
                     52: </tal:block>
                     53: 
                     54: 
                     55: <!-- user is not logged in -->
                     56: <tal:block tal:condition="not: authorized">
                     57:    <h3>No access</h3>
1.4       dwinter    58:    <p>You are not authorized to access this page, please <a href="/users/">log in</a>.</p>
1.1       dwinter    59: </tal:block>
1.4       dwinter    60: 
1.1       dwinter    61: </tal:block>
1.4       dwinter    62: 
1.1       dwinter    63: </span>
                     64: <!-- ende bodytext -->
                     65: </body>
                     66: </html>

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