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:
10:
11: <table width="100%" border=0 cellpadding=0 cellspacing=0>
12: <tr>
13: <td>
14: <h2>Basket: <span tal:replace="python:here.aq_parent.title"/></h2>
15: <p>Your basket contains <span tal:replace="here/numberOfItems"/> files(s).</p>
16: <p>You can now: </p>
17: <p><a tal:attributes="href python:here.getId()+'/downloadObjectsAsOneFile'"> download basket (combined in one file)</a></p>
18: <p>or</p>
19: <p><a tal:attributes="href python:here.getId()+'/downloadObjectsAsOneFile?lock=yes'"> download basket and lock all files (combined in one file)</a>
20: </p>
21: <p>or</p>
22: <!-- <p><a tal:attributes="href python:here.basketContainer.absolute_url()+'/uploadBasket_html'"> upload a basket </a></p>-->
23: <p>
24: <a tal:attributes="href python:here.aq_parent.absolute_url()+'/history'">View the history of your basket</a>
25: </p>
26: <p>or</p>
27: <p>
28: <a tal:attributes="href python:here.absolute_url()+'/downloadListOfPnumbers'">Download list of p numbers</a>
29: </p>
30: </td>
31: <td valign="top" align=right>
32: <div class="tip">
33: Note that any file you download will have the extension "atf". You can open this file with any text editor including Microsoft Word. If you are not able to save your document with the extension atf, then save it as txt (text only), and send the file to <a href="mailto:cdli@ucla.edu">cdli@ucla.edu</a> instead of uploading directly on your own. A member of the cdli team will then upload the file for you.
34: </div>
35: </td>
36: </tr>
37: <tr>
38: <td colspan="2">
39: <hr class="yellow">
40: <h3>Content of your basket</h3>
41: <p>note that</p>
42: <p>red = basket refers not to the actual version</p>
43: <p>red and DEL = file has been deleted</p>
44: <p>
45: <a tal:condition="previous"
46: tal:attributes="href string:${request/URL0}?start:int=${previous/first}"
47: href="previous_url"><< previous <span tal:replace="previous/length">20</span> results</a>
48: <a tal:condition="next"
49: tal:attributes="href string:${request/URL0}?start:int=${next/first}"
50: href="next_url">next <span tal:replace="next/length">20</span> results >></a>
51: </p>
52:
53: <form action="changeBasket">
54: <table width="100%" border=0 cellspacing=1 cellpadding=2 class="filelist">
55: <tr>
56: <th align=left>
57: <a href="?sortField=title"> File</a>
58: </th>
59: <th align=left>
60: Designation
61: </th>
62:
63: <th align=left>
64: Revisions
65: </th>
66: <th align=left>
67: <a href="?sortField=date">Date</a>
68: </th>
69: <th align=left>
70: <a href="?sortField=author">Author</a>
71: </th>
72: <th align=left>
73: Last log entry
74: </th>
75: <th align=left width="80">
76: <a href="?sortField=comment">Comment</a>
77: </th>
78: <th align=left>
79: Download<br><a tal:attributes="href python:here.absolute_url()+'/helpDownload'" target="help">(help)</a>
80: </th>
81: <th align=left>
82: Downl. and lock
83: </th>
84: <th align=left>
85: Upload
86: </th>
87: <th>
88: Contained in:
89: </th>
90: </tr>
91:
92:
93: <tal:x repeat="result batch">
94: <tal:x tal:define="version python:here.getFile(result);lastVersion python:here.getFileLastVersion(result);actual python:here.isActual(result);">
95: <tr tal:attributes="class python:test(actual[0],'actual','old')">
96: <td><nobr><input type="checkbox" tal:attributes="value version/getId" name="ids">
97: <tal:x condition="python:actual[1]==-1">DEL</tal:x> <a tal:content="python:version.getTitle()" tal:attributes="href python:here.getObjUrl(result)+'/'+lastVersion.getId()+'/view?fromBasket='+here.aq_parent.id+'&filenr='+str(results.index(result))"/></nobr>
98: </td>
99: <td tal:condition="python:hasattr(lastVersion,'getDesignation')">
100: <span tal:content="lastVersion/getDesignation"/>
101: </td>
102: <td tal:condition="not:python:hasattr(lastVersion,'getDesignation')">
103: <span tal:content="python:'error'"/>
104: </td>
105: <td>
106: <span tal:replace="lastVersion/getVersionNumber"/>
107: <nobr><a tal:attributes="href python:here.getObjUrl(result)+'/history'">(history)</a></nobr>
108: </td>
109: <td tal:content="lastVersion/getTime"/>
110: <td tal:content="lastVersion/lastEditor"/>
111: <td tal:content="lastVersion/getVersionComment"/>
112: <td><a tal:attributes="href python:here.getObjUrl(result)+'/manageVCommentForm'"><small tal:content="python:lastVersion.getVComment()"/></a></td>
113: <!-- <td><a tal:attributes="href python:version.absolute_url()+'/manageCommentForm'"><small tal:content="python:version.getComment()"/></a></td>-->
114: <td><a tal:attributes="href python:here.getObjUrl(result)">download</a></td>
115:
116: <td tal:condition="python:version.lockedBy==''"><a tal:attributes="href python:here.getObjUrl(result)+'/downloadLocked'">download and lock</a></td>
117: <td tal:condition="not:python:version.lockedBy==''"><a>locked</a></td>
118:
119: <td tal:condition="python:version.lockedBy==''"><a tal:attributes="href python:here.getObjUrl(result)+'/'+version.title+'/addCDLIFileObjectForm?come_from='+here.URLquote(here.absolute_url())">Upload New Version</a> </td>
120: <td tal:condition="not:python:version.lockedBy==''">
121: <b tal:attributes="href python:here.getObjUrl(result)+'/addCDLIFileObjectForm'">Locked by: <span tal:replace="version/lockedBy"/></b>
122: <a tal:attributes="href python:here.getObjUrl(result)+'/unlock'">unlock</a>
123: </td>
124: <td>
125: <a tal:repeat="collection python:version.isContainedInBaskets(context=here)" tal:content="collection/title"
126: tal:attributes="href python:collection.getLastVersion().absolute_url()"/> </td>
127: </tr>
128: </tal:x>
129: </tal:x>
130:
131: </table>
132: <p>
133: <a tal:condition="previous"
134: tal:attributes="href string:${request/URL0}?start:int=${previous/first}"
135: href="previous_url"><< previous <span tal:replace="previous/length">20</span> results</a>
136: <a tal:condition="next"
137: tal:attributes="href string:${request/URL0}?start:int=${next/first}"
138: href="next_url">next <span tal:replace="next/length">20</span> results >></a>
139: </p>
140: <input type="submit" name="submit" value="update" class="button"> or
141: <input type="submit" name="submit" value="delete" class="button">
142: selected files
143: </td>
144: </tr>
145: </table>
146: </tal:block>
147:
148: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>