File:  [Repository] / cdli / zpt / BasketVersionMain.zpt
Revision 1.8: 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: 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/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:   <h2>Basket: <span tal:replace="python:here.aq_parent.title"/></h2>
   11:   <p>contains <span tal:replace="here/numberOfItems"/> items
   12:   <a tal:attributes="href python:here.aq_parent.absolute_url()+'/history'">View history</a>
   13:   </p>
   14:   <p><a tal:attributes="href python:here.getId()+'/downloadObjectsAsOneFile'"> download basket (combined in one file)</a>
   15:  <p><a tal:attributes="href python:here.getId()+'/downloadObjectsAsOneFile?lock=yes'"> download basket and lock all files(combined in one file)</a>
   16:  <p><a tal:attributes="href python:here.basketContainer.absolute_url()+'/uploadBasket_html'"> upload a basket </a>
   17:  <p>red = basket refers not to the actual version</p>
   18:  <p>red and DEL = file has been deleted</p>
   19:   <p>
   20:     <a tal:condition="previous"
   21:        tal:attributes="href string:${request/URL0}?start:int=${previous/first}"
   22:        href="previous_url">previous <span tal:replace="previous/length">20</span> results</a>
   23:     <a tal:condition="next"
   24:        tal:attributes="href string:${request/URL0}?start:int=${next/first}"
   25:        href="next_url">next <span tal:replace="next/length">20</span> results</a>
   26:   </p>
   27:   <span tal:content="here/containsNonActualFiles"/>
   28:  <form action="changeBasket">
   29:  <table  width="100%" border=0 cellspacing=1 cellpadding=2>
   30:     <tr>
   31:       <th align=left bgcolor="#cccccc">
   32:       <a href="?sortField=title"> File</a>
   33:       </th>
   34:       <th align=left bgcolor="#cccccc">
   35:       <a> Designation</a>
   36:       </th>
   37:       
   38:       <th align=left bgcolor="#cccccc">
   39: 	<a>Revisions</a>
   40:       </th>
   41:       <th align=left bgcolor="#cccccc">
   42: 	<a href="?sortField=date">Date</a>
   43:       </th>
   44:       <th align=left bgcolor="#cccccc">
   45: 	<a href="?sortField=author">Author</a>
   46:       </th>
   47:       <th align=left bgcolor="#cccccc">
   48: 	<a >Last log entry</a>
   49:       </th>
   50:       <th align=left bgcolor="#cccccc" width="80">
   51: 	<a href="?sortField=comment">Comment</a>
   52:       </th>
   53:       <th align=left bgcolor="#cccccc">
   54: 	<a>Download<br><font size="-1"><a tal:attributes="href python:here.absolute_url()+'/helpDownload'" target="help">(help)</a></font></a>
   55:       </th>
   56:       <th align=left bgcolor="#cccccc">
   57: 	<a>Downl. and lock</a>
   58:       </th>
   59:       <th align=left bgcolor="#cccccc">
   60: 	<a>Upload</a>
   61:       </th>
   62:       <th>
   63:       C
   64:       </th>
   65:     </tr>
   66:        
   67:   <tal:x repeat="result batch">
   68:    <tal:x tal:define="version python:here.getFile(result);lastVersion python:here.getFileLastVersion(result);actual python:here.isActual(result)">
   69:     <tr tal:attributes="class python:test(actual[0],'actual','old')">
   70: 	<td><input type="checkbox" tal:attributes="value version/getId" name="ids">
   71: 		<tal:x condition="python:actual[1]==-1">DEL</tal:x>   <a tal:content="python:version.getTitle()" tal:attributes="href python:here.getObjUrl(result)+
   72: 		   '/'+lastVersion.getId()+'/view'"/>
   73:     </td>
   74:     <td tal:condition="python:hasattr(lastVersion,'getDesignation')">
   75: 		   <span tal:content="lastVersion/getDesignation"/>
   76:      </td>
   77:       <td tal:condition="not:python:hasattr(lastVersion,'getDesignation')">
   78: 		   <span tal:content="python:'error'"/>
   79:      </td>
   80: 	<td>
   81: 	<span tal:replace="lastVersion/getVersionNumber"/>
   82: 	<font size="-1"><a tal:attributes="href python:here.getObjUrl(result)+'/history'">(history)</a></font>
   83: 	</td>
   84: 	<td tal:content="lastVersion/getTime"/>
   85: 	<td tal:content="lastVersion/lastEditor"/>
   86: 	<td tal:content="lastVersion/getVersionComment"/>
   87:         <td><a tal:attributes="href python:here.getObjUrl(result)+'/manageVCommentForm'"><small tal:content="python:lastVersion.getVComment()"/></a></td>
   88:         <!--<td><a tal:attributes="href python:version.absolute_url()+'/manageCommentForm'"><small tal:content="python:version.getComment()"/></a></td>-->
   89: 	<td><a tal:attributes="href python:here.getObjUrl(result)">download</a></td>
   90: 	
   91: 	<td tal:condition="python:version.lockedBy==''"><a tal:attributes="href python:here.getObjUrl(result)+'/downloadLocked'">download and lock</a></td>
   92: 	<td tal:condition="not:python:version.lockedBy==''"><a>locked</a></td>
   93: 	
   94: 	<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>
   95: 	<td tal:condition="not:python:version.lockedBy==''">
   96: 	  <b tal:attributes="href python:here.getObjUrl(result)+'/addCDLIFileObjectForm'">Locked by: <span tal:replace="version/lockedBy"/></b>&nbsp;
   97: 	  <a tal:attributes="href python:here.getObjUrl(result)+'/unlock'">unlock</a>
   98: 	</td>
   99: 	<td>
  100: 	 <a tal:repeat="collection python:version.isContainedInBaskets(context=here)" tal:content="collection/title"
  101: 	 tal:attributes="href python:collection.getLastVersion().absolute_url()"/>	</td>
  102:    </tr>
  103:     </tal:x>
  104:   </tal:x>
  105: 
  106:   </table>
  107:   <p>
  108:     <a tal:condition="previous"
  109:        tal:attributes="href string:${request/URL0}?start:int=${previous/first}"
  110:        href="previous_url">previous <span tal:replace="previous/length">20</span> results</a>
  111:     <a tal:condition="next"
  112:        tal:attributes="href string:${request/URL0}?start:int=${next/first}"
  113:        href="next_url">next <span tal:replace="next/length">20</span> results</a>
  114:   </p>
  115: <input type="submit" name="submit" value="update"> or
  116: <input type="submit" name="submit" value="delete">
  117: selected files
  118: </tal:block>
  119: </html>

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