Annotation of cdli/zpt/BasketVersionMain.zpt, revision 1.10
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.9 dwinter 10:
11: <table width="100%" border=0 cellpadding=0 cellspacing=0>
12: <tr>
13: <td>
1.3 dwinter 14: <h2>Basket: <span tal:replace="python:here.aq_parent.title"/></h2>
1.9 dwinter 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>
1.3 dwinter 25: </p>
1.10 ! dwinter 26: <p>or</p>
! 27: <p>
! 28: <a tal:attributes="href python:here.absolute_url()+'/downloadListOfPnumbers'">Download list of p numbers</a>
! 29: </p>
1.9 dwinter 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>
1.8 dwinter 42: <p>red = basket refers not to the actual version</p>
1.5 dwinter 43: <p>red and DEL = file has been deleted</p>
1.1 dwinter 44: <p>
45: <a tal:condition="previous"
46: tal:attributes="href string:${request/URL0}?start:int=${previous/first}"
1.9 dwinter 47: href="previous_url"><< previous <span tal:replace="previous/length">20</span> results</a>
48: <a tal:condition="next"
1.1 dwinter 49: tal:attributes="href string:${request/URL0}?start:int=${next/first}"
1.9 dwinter 50: href="next_url">next <span tal:replace="next/length">20</span> results >></a>
1.1 dwinter 51: </p>
1.9 dwinter 52:
1.8 dwinter 53: <form action="changeBasket">
1.9 dwinter 54: <table width="100%" border=0 cellspacing=1 cellpadding=2 class="filelist">
1.1 dwinter 55: <tr>
1.9 dwinter 56: <th align=left>
1.1 dwinter 57: <a href="?sortField=title"> File</a>
58: </th>
1.9 dwinter 59: <th align=left>
60: Designation
1.5 dwinter 61: </th>
62:
1.9 dwinter 63: <th align=left>
64: Revisions
1.1 dwinter 65: </th>
1.9 dwinter 66: <th align=left>
1.1 dwinter 67: <a href="?sortField=date">Date</a>
68: </th>
1.9 dwinter 69: <th align=left>
1.1 dwinter 70: <a href="?sortField=author">Author</a>
71: </th>
1.9 dwinter 72: <th align=left>
73: Last log entry
1.1 dwinter 74: </th>
1.9 dwinter 75: <th align=left width="80">
1.1 dwinter 76: <a href="?sortField=comment">Comment</a>
77: </th>
1.9 dwinter 78: <th align=left>
79: Download<br><a tal:attributes="href python:here.absolute_url()+'/helpDownload'" target="help">(help)</a>
1.1 dwinter 80: </th>
1.9 dwinter 81: <th align=left>
82: Downl. and lock
1.1 dwinter 83: </th>
1.9 dwinter 84: <th align=left>
85: Upload
1.1 dwinter 86: </th>
1.4 dwinter 87: <th>
1.9 dwinter 88: Contained in:
1.4 dwinter 89: </th>
1.1 dwinter 90: </tr>
1.9 dwinter 91:
92:
1.1 dwinter 93: <tal:x repeat="result batch">
1.9 dwinter 94: <tal:x tal:define="version python:here.getFile(result);lastVersion python:here.getFileLastVersion(result);actual python:here.isActual(result);">
1.5 dwinter 95: <tr tal:attributes="class python:test(actual[0],'actual','old')">
1.9 dwinter 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>
1.5 dwinter 98: </td>
1.7 dwinter 99: <td tal:condition="python:hasattr(lastVersion,'getDesignation')">
1.5 dwinter 100: <span tal:content="lastVersion/getDesignation"/>
101: </td>
1.7 dwinter 102: <td tal:condition="not:python:hasattr(lastVersion,'getDesignation')">
103: <span tal:content="python:'error'"/>
104: </td>
1.1 dwinter 105: <td>
106: <span tal:replace="lastVersion/getVersionNumber"/>
1.9 dwinter 107: <nobr><a tal:attributes="href python:here.getObjUrl(result)+'/history'">(history)</a></nobr>
1.1 dwinter 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>
1.9 dwinter 113: <!-- <td><a tal:attributes="href python:version.absolute_url()+'/manageCommentForm'"><small tal:content="python:version.getComment()"/></a></td>-->
1.1 dwinter 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:
1.9 dwinter 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>
1.1 dwinter 120: <td tal:condition="not:python:version.lockedBy==''">
1.2 dwinter 121: <b tal:attributes="href python:here.getObjUrl(result)+'/addCDLIFileObjectForm'">Locked by: <span tal:replace="version/lockedBy"/></b>
1.1 dwinter 122: <a tal:attributes="href python:here.getObjUrl(result)+'/unlock'">unlock</a>
123: </td>
1.4 dwinter 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>
1.1 dwinter 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}"
1.9 dwinter 135: href="previous_url"><< previous <span tal:replace="previous/length">20</span> results</a>
136: <a tal:condition="next"
1.1 dwinter 137: tal:attributes="href string:${request/URL0}?start:int=${next/first}"
1.9 dwinter 138: href="next_url">next <span tal:replace="next/length">20</span> results >></a>
1.1 dwinter 139: </p>
1.9 dwinter 140: <input type="submit" name="submit" value="update" class="button"> or
141: <input type="submit" name="submit" value="delete" class="button">
1.8 dwinter 142: selected files
1.9 dwinter 143: </td>
144: </tr>
145: </table>
1.1 dwinter 146: </tal:block>
1.9 dwinter 147:
1.1 dwinter 148: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>