Annotation of cdli/zpt/BasketVersionMain.zpt, revision 1.5
1.1 dwinter 1: <html metal:use-macro="here/main_template/macros/page">
2: <tal:block metal:fill-slot="body" tal:define="results here/getContent;
3: start request/start|python:0;
4: batch python:modules['ZTUtils'].Batch(results,
5: size=20,
6: start=start);
7: previous python:batch.previous;
8: next python:batch.next">
9:
1.3 dwinter 10: <h2>Basket: <span tal:replace="python:here.aq_parent.title"/></h2>
11: <p>contains <span tal:replace="here/numberOfItems"/> items
12: <a tal:attributes="href python:here.aq_parent.absolute_url()+'/history'">View history</a>
13: </p>
1.1 dwinter 14: <p><a tal:attributes="href python:here.getId()+'/downloadObjectsAsOneFile'"> download basket (combined in one file)</a>
1.3 dwinter 15: <p><a tal:attributes="href python:here.getId()+'/downloadObjectsAsOneFile?lock=yes'"> download basket and lock all files(combined in one file)</a>
1.5 ! dwinter 16: <p><a tal:attributes="href python:here.basketContainer.absolute_url()+'/uploadBasket_html'"> upload a basket </a>
! 17: <p>red = basket refers to a not actual version</p>
! 18: <p>red and DEL = file has been deleted</p>
1.1 dwinter 19: <p>
20: <a tal:condition="previous"
21: tal:attributes="href string:${request/URL0}?start:int=${previous/first}"
22: href="previous_url">previous <span tal:replace="previous/length">20</span> results</a>
23: <a tal:condition="next"
24: tal:attributes="href string:${request/URL0}?start:int=${next/first}"
25: href="next_url">next <span tal:replace="next/length">20</span> results</a>
26: </p>
1.5 ! dwinter 27: <form action="deleteObjects">
1.1 dwinter 28: <table width="100%" border=0 cellspacing=1 cellpadding=2>
29: <tr>
30: <th align=left bgcolor="#88ff88">
31: <a href="?sortField=title"> File</a>
32: </th>
1.5 ! dwinter 33: <th align=left bgcolor="#88ff88">
! 34: <a> Designation</a>
! 35: </th>
! 36:
1.1 dwinter 37: <th align=left bgcolor="#00">
38: <a>Rev.</a>
39: </th>
40: <th align=left bgcolor="#cccccc">
41: <a href="?sortField=date">Date</a>
42: </th>
43: <th align=left bgcolor="#cccccc">
44: <a href="?sortField=author">Author</a>
45: </th>
46: <th align=left bgcolor="#cccccc">
47: <a >Last log entry</a>
48: </th>
49: <th align=left bgcolor="#cccccc" width="80">
50: <a href="?sortField=comment">Comment</a>
51: </th>
52: <th align=left bgcolor="#cccccc">
53: <a>Download<br><font size="-1"><a tal:attributes="href python:here.absolute_url()+'/helpDownload'" target="help">(help)</a></font></a>
54: </th>
55: <th align=left bgcolor="#cccccc">
56: <a>Downl. and lock</a>
57: </th>
58: <th align=left bgcolor="#cccccc">
59: <a>Upload</a>
60: </th>
1.4 dwinter 61: <th>
62: C
63: </th>
1.1 dwinter 64: </tr>
65:
66: <tal:x repeat="result batch">
1.5 ! dwinter 67: <tal:x tal:define="version python:here.getFile(result);lastVersion python:here.getFileLastVersion(result);actual python:here.isActual(result)">
! 68: <tr tal:attributes="class python:test(actual[0],'actual','old')">
1.1 dwinter 69: <td><input type="checkbox" tal:attributes="value version/getId" name="ids">
1.5 ! dwinter 70: <tal:x condition="python:actual[1]==-1">DEL</tal:x> <a tal:content="python:version.getTitle()" tal:attributes="href python:here.getObjUrl(result)+
! 71: '/'+lastVersion.getId()+'/view'"/>
! 72: </td>
! 73: <td>
! 74: <span tal:content="lastVersion/getDesignation"/>
! 75: </td>
1.1 dwinter 76: <td>
77: <span tal:replace="lastVersion/getVersionNumber"/>
78: <font size="-1"><a tal:attributes="href python:here.getObjUrl(result)+'/history'">(history)</a></font>
79: </td>
80: <td tal:content="lastVersion/getTime"/>
81: <td tal:content="lastVersion/lastEditor"/>
82: <td tal:content="lastVersion/getVersionComment"/>
83: <td><a tal:attributes="href python:here.getObjUrl(result)+'/manageVCommentForm'"><small tal:content="python:lastVersion.getVComment()"/></a></td>
84: <!--<td><a tal:attributes="href python:version.absolute_url()+'/manageCommentForm'"><small tal:content="python:version.getComment()"/></a></td>-->
85: <td><a tal:attributes="href python:here.getObjUrl(result)">download</a></td>
86:
87: <td tal:condition="python:version.lockedBy==''"><a tal:attributes="href python:here.getObjUrl(result)+'/downloadLocked'">download and lock</a></td>
88: <td tal:condition="not:python:version.lockedBy==''"><a>locked</a></td>
89:
1.2 dwinter 90: <td tal:condition="python:version.lockedBy==''"><a tal:attributes="href python:here.getObjUrl(result)+'/'+version.title+'/addCDLIFileObjectForm'">Upload New Version</a></td>
1.1 dwinter 91: <td tal:condition="not:python:version.lockedBy==''">
1.2 dwinter 92: <b tal:attributes="href python:here.getObjUrl(result)+'/addCDLIFileObjectForm'">Locked by: <span tal:replace="version/lockedBy"/></b>
1.1 dwinter 93: <a tal:attributes="href python:here.getObjUrl(result)+'/unlock'">unlock</a>
94: </td>
1.4 dwinter 95: <td>
96: <a tal:repeat="collection python:version.isContainedInBaskets(context=here)" tal:content="collection/title"
97: tal:attributes="href python:collection.getLastVersion().absolute_url()"/> </td>
1.1 dwinter 98: </tr>
99: </tal:x>
100: </tal:x>
101:
102: </table>
103: <p>
104: <a tal:condition="previous"
105: tal:attributes="href string:${request/URL0}?start:int=${previous/first}"
106: href="previous_url">previous <span tal:replace="previous/length">20</span> results</a>
107: <a tal:condition="next"
108: tal:attributes="href string:${request/URL0}?start:int=${next/first}"
109: href="next_url">next <span tal:replace="next/length">20</span> results</a>
110: </p>
111: <input type="submit" value="delete from basket">
112: </tal:block>
113: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>