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