Annotation of basket/zpt/BasketFolder_template_standard.zpt, revision 1.11
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.7 dwinter 12:
1.9 dwinter 13: <tal:block tal:define="authorized python:here.checkPermission('authorized') or
14: options.get('mode', 'open') == 'open'; global listEmpty python:1">
1.1 dwinter 15:
1.7 dwinter 16: <tal:block tal:condition="authorized">
1.9 dwinter 17: <h3 tal:define="global mode python: options.get('mode', 'open')"><span
18: tal:condition="python: mode == 'private'"
1.4 dwinter 19: tal:replace="python:'My '" /><span
1.5 dwinter 20: tal:condition="python: mode == 'open_intern'"
1.4 dwinter 21: tal:replace="python:'User '" /><span
22: tal:condition="python: mode == 'open'"
23: tal:replace="python:'Public '" />Sets
1.11 ! dwinter 24: <!-- ??
! 25: <span tal:condition="python:here.checkPermission('edit') and mode != 'open_intern'">
! 26: <a class="editLink" tal:attributes="
! 27: href python:'manageBasketFolder?mode=%s'%mode"> | Edit overview</a></span>-->
! 28: <span tal:condition="python:mode == 'private'">
! 29: <a class="editLink" tal:attributes="
! 30: href python:'manageBasketFolder?mode=%s'%mode"> | Manage your sets</a>
! 31: </span>
1.10 dwinter 32: </h3>
1.11 ! dwinter 33: <!-- introduction -->
1.9 dwinter 34: <p><span
35: tal:condition="python: mode == 'private'"
1.11 ! dwinter 36: tal:replace="structure python:
! 37: 'This is a list of all your sets, including the sets of other users you have ' +
! 38: 'the permission to work on as an editor or administrator.'"/><span
1.9 dwinter 39: tal:condition="python: mode == 'open_intern'"
1.11 ! dwinter 40: tal:replace="structure python:
! 41: 'Browse through the sets of other registered users. To include one of ' +
! 42: 'your sets you have to change the access rights on its management page to ' +
! 43: '<i>open_intern</i>.'"/><span
1.9 dwinter 44: tal:condition="python: mode == 'open'"
1.11 ! dwinter 45: tal:replace="structure python:
! 46: 'These sets are thematic compilations of objects created by collaborators ' +
! 47: 'of the <i>Virtual Laboratory</i>.'"/></p><br>
! 48:
! 49: <!-- list of sets -->
1.9 dwinter 50: <tal:block tal:repeat="item python: here.getSets(mode=options.get('mode', 'open'))">
1.11 ! dwinter 51: <hr tal:define="
! 52: global listEmpty python:0;
! 53: global currentBasket python: here.getCurrentBasket();
! 54: global isActive python: currentBasket and currentBasket.id == item.id">
! 55: <a class="editLink" style="float:right"
! 56: tal:condition="python: not isActive and mode == 'private'"
! 57: tal:attributes="href python:'/users/setFolder/' + item.id +
! 58: '/selectThisBasketAsCurrent?target=/users/setFolder%3Fmode=' + mode">select</a>
! 59: <i style="float:right"
! 60: tal:condition="isActive">- active set -</i>
! 61:
! 62: <a class="setTitleLink" tal:attributes="href item/absolute_url" tal:content="item/title"/>
! 63: <i class="small"
! 64: tal:condition="python:
! 65: mode == 'private' and here.getActualUserName() != item.owner"
! 66: tal:content="python:
! 67: ' [shared set, created by ' + item.owner + ']'"
! 68: /><i class="small"
! 69: tal:condition="python: mode == 'open_intern' and item.owner != here.getActualUserName()"
! 70: tal:content="python:
! 71: ' [created by ' + item.owner + ']'"
! 72: /><i class="small"
! 73: tal:condition="python: mode == 'open_intern' and item.owner == here.getActualUserName()"
! 74: tal:content="python:
! 75: ' [your set]'" />
1.4 dwinter 76: <div class="TOC" tal:content="structure item/shortDescription"/>
77: </tal:block>
1.7 dwinter 78:
1.11 ! dwinter 79: <form action="setFolder/addBasket"
! 80: tal:condition="python: listEmpty and mode == 'private'">
! 81: <!-- no sets available -->
! 82: There are no sets for your account.<br>
! 83: Create a new set with title <input size="20" name="title">
! 84: <input type="submit" value="add">
1.9 dwinter 85: </form>
86:
1.7 dwinter 87: </tal:block>
88:
89: <tal:block tal:condition="not: authorized">
1.9 dwinter 90: <h3>Private Page</h3>
91:
92: <p>We are sorry, but only registered users may access this page,<br>
93: please <a href="users">log in</a> to view it.</p>
94:
1.11 ! dwinter 95: <p>Not yet registered? <a href="register.html">Sign up</a> for a free account.</p>
! 96: <br><br>
1.9 dwinter 97:
98: <p>You may find some thematic sets of objects compiled by collaborators <br>
99: of the <i>Virtual Laboratory</i> in the <a href="?mode=open">Public Sets</a> section.</p>
1.7 dwinter 100: </tal:block>
101:
102: </tal:block>
1.1 dwinter 103:
104: </span>
105: </body>
106: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>