Annotation of basket/zpt/BasketMain_template_standard.zpt, revision 1.8
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.8 ! dwinter 12: <tal:block tal:define="authorized python: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.6 dwinter 22: currentBasket and (here.title == currentBasket.title)">This is the active set</i>
1.5 dwinter 23: <a class="editLink" tal:condition="not: python:
24: currentBasket and (here.title == currentBasket.title)"
25: href="selectThisBasketAsCurrent">Make this your active set.</a>
1.4 dwinter 26: </div>
1.1 dwinter 27:
1.4 dwinter 28: <h2 class="setTitle"><span tal:replace="here/title"/>
29: <span tal:condition="python: here.checkPermission('edit')">
30: <a class="editLink" href="manageBasket">| Edit</a></span>
31: </h2>
1.1 dwinter 32:
1.4 dwinter 33: <div class="setDescription"
34: tal:content="structure here/shortDescription">shortDescription</div><br>
35: <div class="setComment"
36: tal:content="structure here/comment">Comment</div>
1.6 dwinter 37: <br>
1.1 dwinter 38:
1.6 dwinter 39: <div class="seperator"> </div>
1.2 dwinter 40: <tal:x tal:repeat="item here/getBasketObjects">
1.6 dwinter 41: <div tal:condition="item/content_html" tal:content="structure item/content_html"
42: class="setItem"/>
1.7 dwinter 43: <div tal:condition="item/comment" tal:content="structure python: here.formatAscii(here.vlp.link2html(item.comment))"
1.6 dwinter 44: class="setItemComment"/>
45: <div class="seperator"> </div>
1.5 dwinter 46: </tal:x>
1.1 dwinter 47:
48: </tal:block>
49:
50:
51: <!-- user is not logged in -->
52: <tal:block tal:condition="not: authorized">
53: <h3>No access</h3>
1.4 dwinter 54: <p>You are not authorized to access this page, please <a href="/users/">log in</a>.</p>
1.1 dwinter 55: </tal:block>
1.4 dwinter 56:
1.1 dwinter 57: </tal:block>
1.4 dwinter 58:
1.1 dwinter 59: </span>
60: <!-- ende bodytext -->
61: </body>
62: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>