File:  [Repository] / cdli / zpt / basketObject_index_html.zpt
Revision 1.5: download - view: text, annotated - select for diffs - revision graph
Fri Jul 14 19:08:30 2006 UTC (17 years, 11 months ago) by dwinter
Branches: MAIN
CVS tags: zcat_only_1, Root_zcat_only_1, HEAD
errors in uploading files corrected

    1: <html metal:use-macro="here/main_template/macros/page">
    2:   <tal:block metal:fill-slot="body" tal:define="results  here/contents;
    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:   <h2>CDLI File Storage</h2>
   12:   <p>Basket: <span tal:replace="here/getId"/> contains <span tal:replace="here/numberOfItems"/> items</p>
   13:   <p><a tal:attributes="href python:here.getId()+'/downloadObjectsAsOneFile'"> download basket (combined in one file)</a>
   14:  <p><a tal:attributes="href python:here.getId()+'/downloadObjectsAsOneFile?lock=yes'"> download basket and lock (combined in one file)</a>
   15:  
   16:   <p>
   17:     <a tal:condition="previous"
   18:        tal:attributes="href string:${request/URL0}?start:int=${previous/first}"
   19:        href="previous_url">previous <span tal:replace="previous/length">20</span> results</a>
   20:     <a tal:condition="next"
   21:        tal:attributes="href string:${request/URL0}?start:int=${next/first}"
   22:        href="next_url">next <span tal:replace="next/length">20</span> results</a>
   23:   </p>
   24:  <form action="basket/deleteObjects">
   25:  <table  width="100%" border=0 cellspacing=1 cellpadding=2>
   26:     <tr>
   27:       <th align=left bgcolor="#88ff88">
   28:       <a href="?sortField=title"> File</a>
   29:       </th>
   30:       <th align=left bgcolor="#00">
   31: 	<a>Rev.</a>
   32:       </th>
   33:       <th align=left bgcolor="#cccccc">
   34: 	<a href="?sortField=date">Date</a>
   35:       </th>
   36:       <th align=left bgcolor="#cccccc">
   37: 	<a href="?sortField=author">Author</a>
   38:       </th>
   39:       <th align=left bgcolor="#cccccc">
   40: 	<a >Last log entry</a>
   41:       </th>
   42:       <th align=left bgcolor="#cccccc" width="80">
   43: 	<a href="?sortField=comment">Comment</a>
   44:       </th>
   45:       <th align=left bgcolor="#cccccc">
   46: 	<a>Download<br><font size="-1"><a tal:attributes="href python:here.absolute_url()+'/helpDownload'" target="help">(help)</a></font></a>
   47:       </th>
   48:       <th align=left bgcolor="#cccccc">
   49: 	<a>Downl. and lock</a>
   50:       </th>
   51:       <th align=left bgcolor="#cccccc">
   52: 	<a>Upload</a>
   53:       </th>
   54:       <th>
   55:       C
   56:       </th>
   57:     </tr>
   58:        
   59:   <tal:x repeat="result batch">
   60:    <tr tal:define="version result;lastVersion python:version.getLastVersion()">
   61: 	<td><input type="checkbox" tal:attributes="value version/getId" name="ids">
   62: 		   <a tal:content="python:version.title" tal:attributes="href python:here.getObjUrl(lastVersion.getId())+'/view'"/></td>
   63: 	<td>
   64: 	<span tal:replace="lastVersion/getVersionNumber"/>
   65: 	<font size="-1"><a tal:attributes="href python:here.getObjUrl(version.getId())+'/history'">(history)</a></font>
   66: 	</td>
   67: 	<td tal:content="lastVersion/getTime"/>
   68: 	<td tal:content="lastVersion/lastEditor"/>
   69: 	<td tal:content="lastVersion/getVersionComment"/>
   70:         <td><a tal:attributes="href python:here.getObjUrl(lastVersion.getId())+'/manageVCommentForm'"><small tal:content="python:lastVersion.getVComment()"/></a></td>
   71:         <!--<td><a tal:attributes="href python:version.absolute_url()+'/manageCommentForm'"><small tal:content="python:version.getComment()"/></a></td>-->
   72: 	<td><a tal:attributes="href python:here.getObjUrl(lastVersion.getId())">download</a></td>
   73: 	
   74: 	<td tal:condition="python:lastVersion.lockedBy==''"><a tal:attributes="href python:here.getObjUrl(version.getId())+'/downloadLocked'">download and lock</a></td>
   75: 	<td tal:condition="not:python:lastVersion.lockedBy==''"><a>locked</a></td>
   76: 	
   77: 	<td tal:condition="python:lastVersion.lockedBy==''"><a tal:attributes="href python:here.getObjUrl(version.getId())+'/'+version.title+'/addVersionedFileObjectForm?come_from='+here.absolute_url()">Upload New Version</a></td>
   78: 	<td tal:condition="not:python:lastVersion.lockedBy==''">
   79: 	  <b tal:attributes="href python:here.getObjUrl(version.getId())+'/addVersionedFileObjectForm'">Locked by: <span tal:replace="lastVersion/lockedBy"/></b>&nbsp;
   80: 	  <a tal:attributes="href python:here.getObjUrl(version.getId())+'/unlock'">unlock</a>
   81: 	</td>
   82: 	<td>
   83: 	 <a tal:repeat="collection python:version.isContainedInBaskets(context=here)" tal:content="collection/title"
   84: 	 tal:attributes="href python:collection.getLastVersion().absolute_url()"/>	</td>
   85:       </tr>
   86: 
   87:   </tal:x>
   88: 
   89:   </table>
   90:   <p>
   91:     <a tal:condition="previous"
   92:        tal:attributes="href string:${request/URL0}?start:int=${previous/first}"
   93:        href="previous_url">previous <span tal:replace="previous/length">20</span> results</a>
   94:     <a tal:condition="next"
   95:        tal:attributes="href string:${request/URL0}?start:int=${next/first}"
   96:        href="next_url">next <span tal:replace="next/length">20</span> results</a>
   97:   </p>
   98: <input type="submit" value="delete from basket">
   99: </tal:block>
  100: </html>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>