Annotation of cdli/zpt/BasketVersionMain.zpt, revision 1.11
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.11 ! dwinter 30: <p>
! 31: <form action="searchInBasket">
! 32: Search in the basket:
! 33: <select name="indexName">
! 34: <option value="graphemeSplitter">grapheme</option>
! 35: <option value="wordSplitter">word</option>
! 36: </select>
! 37: <input name="searchStr"><input type="hidden" name="skip" value="50">
! 38: <input type="hidden" name="start" value="0"><input type="submit" value="search">
! 39: <input type="hidden" name="hl" value="yes">
! 40: <br> Use regexp:
! 41: <input type="radio" name="regExp" value="no" checked="true">No
! 42: <input type="radio" name="regExp" value="yes">Yes
! 43: <br>
! 44: </form>
! 45: </p>
1.9 dwinter 46: </td>
47: <td valign="top" align=right>
48: <div class="tip">
49: 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.
50: </div>
51: </td>
52: </tr>
53: <tr>
54: <td colspan="2">
55: <hr class="yellow">
56: <h3>Content of your basket</h3>
57: <p>note that</p>
1.8 dwinter 58: <p>red = basket refers not to the actual version</p>
1.5 dwinter 59: <p>red and DEL = file has been deleted</p>
1.1 dwinter 60: <p>
61: <a tal:condition="previous"
62: tal:attributes="href string:${request/URL0}?start:int=${previous/first}"
1.9 dwinter 63: href="previous_url"><< previous <span tal:replace="previous/length">20</span> results</a>
64: <a tal:condition="next"
1.1 dwinter 65: tal:attributes="href string:${request/URL0}?start:int=${next/first}"
1.9 dwinter 66: href="next_url">next <span tal:replace="next/length">20</span> results >></a>
1.1 dwinter 67: </p>
1.9 dwinter 68:
1.8 dwinter 69: <form action="changeBasket">
1.9 dwinter 70: <table width="100%" border=0 cellspacing=1 cellpadding=2 class="filelist">
1.1 dwinter 71: <tr>
1.9 dwinter 72: <th align=left>
1.1 dwinter 73: <a href="?sortField=title"> File</a>
74: </th>
1.9 dwinter 75: <th align=left>
76: Designation
1.5 dwinter 77: </th>
78:
1.9 dwinter 79: <th align=left>
80: Revisions
1.1 dwinter 81: </th>
1.9 dwinter 82: <th align=left>
1.1 dwinter 83: <a href="?sortField=date">Date</a>
84: </th>
1.9 dwinter 85: <th align=left>
1.1 dwinter 86: <a href="?sortField=author">Author</a>
87: </th>
1.9 dwinter 88: <th align=left>
89: Last log entry
1.1 dwinter 90: </th>
1.9 dwinter 91: <th align=left width="80">
1.1 dwinter 92: <a href="?sortField=comment">Comment</a>
93: </th>
1.9 dwinter 94: <th align=left>
95: Download<br><a tal:attributes="href python:here.absolute_url()+'/helpDownload'" target="help">(help)</a>
1.1 dwinter 96: </th>
1.9 dwinter 97: <th align=left>
98: Downl. and lock
1.1 dwinter 99: </th>
1.9 dwinter 100: <th align=left>
101: Upload
1.1 dwinter 102: </th>
1.4 dwinter 103: <th>
1.9 dwinter 104: Contained in:
1.4 dwinter 105: </th>
1.1 dwinter 106: </tr>
1.9 dwinter 107:
108:
1.1 dwinter 109: <tal:x repeat="result batch">
1.9 dwinter 110: <tal:x tal:define="version python:here.getFile(result);lastVersion python:here.getFileLastVersion(result);actual python:here.isActual(result);">
1.5 dwinter 111: <tr tal:attributes="class python:test(actual[0],'actual','old')">
1.9 dwinter 112: <td><nobr><input type="checkbox" tal:attributes="value version/getId" name="ids">
113: <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 114: </td>
1.7 dwinter 115: <td tal:condition="python:hasattr(lastVersion,'getDesignation')">
1.5 dwinter 116: <span tal:content="lastVersion/getDesignation"/>
117: </td>
1.7 dwinter 118: <td tal:condition="not:python:hasattr(lastVersion,'getDesignation')">
119: <span tal:content="python:'error'"/>
120: </td>
1.1 dwinter 121: <td>
122: <span tal:replace="lastVersion/getVersionNumber"/>
1.9 dwinter 123: <nobr><a tal:attributes="href python:here.getObjUrl(result)+'/history'">(history)</a></nobr>
1.1 dwinter 124: </td>
125: <td tal:content="lastVersion/getTime"/>
126: <td tal:content="lastVersion/lastEditor"/>
127: <td tal:content="lastVersion/getVersionComment"/>
128: <td><a tal:attributes="href python:here.getObjUrl(result)+'/manageVCommentForm'"><small tal:content="python:lastVersion.getVComment()"/></a></td>
1.9 dwinter 129: <!-- <td><a tal:attributes="href python:version.absolute_url()+'/manageCommentForm'"><small tal:content="python:version.getComment()"/></a></td>-->
1.1 dwinter 130: <td><a tal:attributes="href python:here.getObjUrl(result)">download</a></td>
131:
132: <td tal:condition="python:version.lockedBy==''"><a tal:attributes="href python:here.getObjUrl(result)+'/downloadLocked'">download and lock</a></td>
133: <td tal:condition="not:python:version.lockedBy==''"><a>locked</a></td>
134:
1.9 dwinter 135: <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 136: <td tal:condition="not:python:version.lockedBy==''">
1.2 dwinter 137: <b tal:attributes="href python:here.getObjUrl(result)+'/addCDLIFileObjectForm'">Locked by: <span tal:replace="version/lockedBy"/></b>
1.1 dwinter 138: <a tal:attributes="href python:here.getObjUrl(result)+'/unlock'">unlock</a>
139: </td>
1.4 dwinter 140: <td>
141: <a tal:repeat="collection python:version.isContainedInBaskets(context=here)" tal:content="collection/title"
142: tal:attributes="href python:collection.getLastVersion().absolute_url()"/> </td>
1.1 dwinter 143: </tr>
144: </tal:x>
145: </tal:x>
146:
147: </table>
148: <p>
149: <a tal:condition="previous"
150: tal:attributes="href string:${request/URL0}?start:int=${previous/first}"
1.9 dwinter 151: href="previous_url"><< previous <span tal:replace="previous/length">20</span> results</a>
152: <a tal:condition="next"
1.1 dwinter 153: tal:attributes="href string:${request/URL0}?start:int=${next/first}"
1.9 dwinter 154: href="next_url">next <span tal:replace="next/length">20</span> results >></a>
1.1 dwinter 155: </p>
1.9 dwinter 156: <input type="submit" name="submit" value="update" class="button"> or
157: <input type="submit" name="submit" value="delete" class="button">
1.8 dwinter 158: selected files
1.9 dwinter 159: </td>
160: </tr>
161: </table>
1.1 dwinter 162: </tal:block>
1.9 dwinter 163:
1.1 dwinter 164: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>