Annotation of basket/zpt/BasketMain_manage_template_standard.zpt, revision 1.15
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.10 dwinter 12: <tal:block tal:define="authorized python:here.checkPermission('edit')">
1.1 dwinter 13:
14: <!-- user is logged in -->
1.6 dwinter 15: <tal:block tal:condition="authorized"
16: tal:define="global currentBasket here/getCurrentBasket">
1.1 dwinter 17:
1.4 dwinter 18: <!-- -->
1.5 dwinter 19: <tal:block tal:condition="python:here.checkPermission('edit') or here.checkPermission('admin')">
1.1 dwinter 20:
1.14 casties 21: <h2 class="setTitle"><span tal:replace="here/getTitle" /> <a class="editLink" tal:attributes="href python: '../' + here.id">| return to set</a></h2>
1.9 dwinter 22:
1.4 dwinter 23: <i tal:condition="python:
1.6 dwinter 24: currentBasket and (here.title == currentBasket.title)">- This is the active set -</i>
25: <h4>Edit the set description:</h4>
26: <br>
1.15 ! dwinter 27: <form method="post" action="changeBasket">
1.1 dwinter 28: <input type="hidden" name="target" value="manageBasket">
29: Title:<br>
1.4 dwinter 30: <input class="setTitle" type="text" name="title"
1.14 casties 31: tal:attributes="value here/getTitle"><br>
1.1 dwinter 32: Short Description:<br>
1.4 dwinter 33: <textarea class="setDescription" name="shortDescription" rows="2"
1.14 casties 34: tal:content="here/getShortDescription">Short description</textarea><br>
1.1 dwinter 35: Comment:<br>
1.4 dwinter 36: <textarea class="setComment" name="comment" rows="7"
1.14 casties 37: tal:content="here/getComment">A longer comment / introduction</textarea><br><br>
1.4 dwinter 38:
39: <input type="submit" value="save">
1.1 dwinter 40: </form>
1.4 dwinter 41: <hr>
1.12 dwinter 42: <i tal:content="structure python:
43: ' - the access status of this set is: <b>' + here.publicationStatus + '</b> - '"/><br>
44: <a tal:condition="python:
45: here.checkPermission('admin')"
46: href="manageUserRights_html">Manage the access rights for this set.</a>
47: <i tal:condition="not: python: here.checkPermission('admin')">
48: You don't have the permission to change the access rights for this set.</i><br>
1.6 dwinter 49: <hr>
50:
51: <h4>Add a new element to the end of this set</h4><br>
1.4 dwinter 52: <a href="addBasketText">Add a new textelement</a><br>
53: <a href="addBasketExternalLink">Add a new hyperlink</a><br>
1.7 dwinter 54: <a href="addBasketFile">Add a file</a><br>
55:
1.6 dwinter 56: <p><i>To add any objects from inside the Virtual Laboratory to the active set,
1.12 dwinter 57: please locate them and click the 'add to set' link on the bottom of the datasheet
58: or the 'addToSet' button <img src="images/addToSet.gif" width=16 height=16 align="middle">
59: in lists respectivly</i></p>
60:
61: <!-- Change active basket -->
62: <p><i>
63: <span tal:condition="not:currentBasket">
64: Please note: there is no active set at this moment!</span
65: ><span tal:condition="python: currentBasket and here.title != currentBasket.title">
66: Please note: This set is not the active set at this moment,
1.14 casties 67: objects will go to the set <b tal:content="currentBasket/getTitle"/>!</span>
1.12 dwinter 68: </i></p>
69:
1.6 dwinter 70: <p tal:condition="not: python:
71: currentBasket and here.title == currentBasket.title">
1.12 dwinter 72: <a class="editLink"
73: tal:condition="python:
74: currentBasket and here.title != currentBasket.title"
75: tal:attributes="
76: href python: 'selectThisBasketAsCurrent?target=/users/setFolder/' +
77: here.id + '/manageBasket'">Select this set as the active set.</a>
78: <a class="editLink"
79: tal:condition="
80: not: currentBasket"
81: tal:attributes="
82: href python: 'selectThisBasketAsCurrent?target=/users/setFolder/' +
83: here.id + '/manageBasket'">Make this set the active set.</a>
1.6 dwinter 84: </p>
1.4 dwinter 85:
86: <hr>
1.1 dwinter 87:
88: </tal:block>
89:
1.6 dwinter 90: <!-- Content -->
91: <tal:block tal:define="items here/getBasketObjects"
92: tal:condition="items">
93: <h4>Edit Contents:</h4><br>
94:
1.15 ! dwinter 95: <form method="post" action="changeBasketComments" name="changeSetContents">
1.10 dwinter 96: <input type="hidden" name="actualId" value="empty">
1.8 dwinter 97: <div class="seperator"> </div>
1.6 dwinter 98: <div class="item" tal:repeat="item items">
1.8 dwinter 99: <br><a tal:attributes="name item/id" />
100: <div tal:condition="item/content_html" tal:content="structure item/content_html"
101: class="setItem" />
102: <table tal:condition="python:getattr(item, 'link', None) is not None"
103: cellspacing=0 cellpadding=0 width="100%" border=0 style="margin-top:5px;">
104: <tr>
105: <td width="1%">URL: </td>
106: <td><input type="text" style="width:100%"
107: tal:attributes="
108: name python:item.getId()+'_link';
1.13 casties 109: value python:getattr(item,'link', 'http://')"></td>
1.8 dwinter 110: </tr>
111: <tr>
1.13 casties 112: <td>Link title: </td>
1.8 dwinter 113: <td><input type="text" style="width:100%"
114: tal:attributes="
115: name python:item.getId()+'_linkText';
1.13 casties 116: value python:getattr(item,'linkText', 'Untitled Link')"></td>
1.8 dwinter 117: </tr>
118: </table>
119:
120: <textarea class="setItemComment" rows="3"
121: tal:attributes="name python:item.getId()+'_comment'"
1.14 casties 122: tal:content="structure item/getComment"></textarea>
1.9 dwinter 123: <div> <!-- move / update file / save / delete -->
1.8 dwinter 124: <div style="float:right">
1.9 dwinter 125: <a class="editLink"
126: tal:condition="python:item.meta_type=='BasketFile'"
127: tal:attributes="href python:item.absolute_url()+'/upDateFile'">update file</a>
128: <span tal:condition="python:item.meta_type=='BasketFile'" tal:replace="python:' - '" />
1.10 dwinter 129: <tal:x tal:replace="structure python:here.saveButton(item.id)"/>
130:
1.8 dwinter 131: <noscript>
132: <input type="submit" value="change" align="right">
133: </noscript>
134: <a tal:attributes="class python:'editLink';
135: href python:'deleteObject?id=%s'%item.getId()"
1.9 dwinter 136: onclick="return window.confirm(
137: 'Do you really want to remove this item?\nThis is not undoable.')" >delete</a>
1.8 dwinter 138: </div>
139: move item: <a tal:attributes="class python:'editLink';
1.6 dwinter 140: href python:'moveTop?id=%s'%item.getId()">top</a>
141: <a tal:attributes="class python:'editLink';
142: href python:'moveUp?id=%s'%item.getId()">up</a>
143: <a tal:attributes="class python:'editLink';
144: href python:'moveDown?id=%s'%item.getId()">down</a>
145: <a tal:attributes="class python:'editLink';
146: href python:'moveBottom?id=%s'%item.getId()">bottom</a>
1.8 dwinter 147:
1.9 dwinter 148:
149: </div><br>
1.8 dwinter 150: <div class="seperator"> </div>
151: </div>
1.9 dwinter 152: </form>
153: <br>
1.8 dwinter 154: <a tal:attributes="href python: '../' + here.id">return to set</a>
155:
1.9 dwinter 156: </tal:block>
157: </tal:block>
1.1 dwinter 158:
159:
160: <!-- user is not logged in -->
161: <tal:block tal:condition="not: authorized">
162: <h3>No access</h3>
1.3 dwinter 163: <p>You are not authorized to access this page, please <a href="/users/login.html">log in</a>.</p>
1.1 dwinter 164: </tal:block>
165: </tal:block>
166: </span>
167: <!-- ende bodytext -->
168: </body>
169: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>