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, 10 months ago) by dwinter
Branches: MAIN
CVS tags: zcat_only_1, Root_zcat_only_1, HEAD
errors in uploading files corrected

<html metal:use-macro="here/main_template/macros/page">
  <tal:block metal:fill-slot="body" tal:define="results  here/contents;
                    start request/start|python:0;
                    batch python:modules['ZTUtils'].Batch(results, 
                                                          size=20, 
                                                          start=start);
                    previous python:batch.previous;
                    next python:batch.next">


  <h2>CDLI File Storage</h2>
  <p>Basket: <span tal:replace="here/getId"/> contains <span tal:replace="here/numberOfItems"/> items</p>
  <p><a tal:attributes="href python:here.getId()+'/downloadObjectsAsOneFile'"> download basket (combined in one file)</a>
 <p><a tal:attributes="href python:here.getId()+'/downloadObjectsAsOneFile?lock=yes'"> download basket and lock (combined in one file)</a>
 
  <p>
    <a tal:condition="previous"
       tal:attributes="href string:${request/URL0}?start:int=${previous/first}"
       href="previous_url">previous <span tal:replace="previous/length">20</span> results</a>
    <a tal:condition="next"
       tal:attributes="href string:${request/URL0}?start:int=${next/first}"
       href="next_url">next <span tal:replace="next/length">20</span> results</a>
  </p>
 <form action="basket/deleteObjects">
 <table  width="100%" border=0 cellspacing=1 cellpadding=2>
    <tr>
      <th align=left bgcolor="#88ff88">
      <a href="?sortField=title"> File</a>
      </th>
      <th align=left bgcolor="#00">
	<a>Rev.</a>
      </th>
      <th align=left bgcolor="#cccccc">
	<a href="?sortField=date">Date</a>
      </th>
      <th align=left bgcolor="#cccccc">
	<a href="?sortField=author">Author</a>
      </th>
      <th align=left bgcolor="#cccccc">
	<a >Last log entry</a>
      </th>
      <th align=left bgcolor="#cccccc" width="80">
	<a href="?sortField=comment">Comment</a>
      </th>
      <th align=left bgcolor="#cccccc">
	<a>Download<br><font size="-1"><a tal:attributes="href python:here.absolute_url()+'/helpDownload'" target="help">(help)</a></font></a>
      </th>
      <th align=left bgcolor="#cccccc">
	<a>Downl. and lock</a>
      </th>
      <th align=left bgcolor="#cccccc">
	<a>Upload</a>
      </th>
      <th>
      C
      </th>
    </tr>
       
  <tal:x repeat="result batch">
   <tr tal:define="version result;lastVersion python:version.getLastVersion()">
	<td><input type="checkbox" tal:attributes="value version/getId" name="ids">
		   <a tal:content="python:version.title" tal:attributes="href python:here.getObjUrl(lastVersion.getId())+'/view'"/></td>
	<td>
	<span tal:replace="lastVersion/getVersionNumber"/>
	<font size="-1"><a tal:attributes="href python:here.getObjUrl(version.getId())+'/history'">(history)</a></font>
	</td>
	<td tal:content="lastVersion/getTime"/>
	<td tal:content="lastVersion/lastEditor"/>
	<td tal:content="lastVersion/getVersionComment"/>
        <td><a tal:attributes="href python:here.getObjUrl(lastVersion.getId())+'/manageVCommentForm'"><small tal:content="python:lastVersion.getVComment()"/></a></td>
        <!--<td><a tal:attributes="href python:version.absolute_url()+'/manageCommentForm'"><small tal:content="python:version.getComment()"/></a></td>-->
	<td><a tal:attributes="href python:here.getObjUrl(lastVersion.getId())">download</a></td>
	
	<td tal:condition="python:lastVersion.lockedBy==''"><a tal:attributes="href python:here.getObjUrl(version.getId())+'/downloadLocked'">download and lock</a></td>
	<td tal:condition="not:python:lastVersion.lockedBy==''"><a>locked</a></td>
	
	<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>
	<td tal:condition="not:python:lastVersion.lockedBy==''">
	  <b tal:attributes="href python:here.getObjUrl(version.getId())+'/addVersionedFileObjectForm'">Locked by: <span tal:replace="lastVersion/lockedBy"/></b>&nbsp;
	  <a tal:attributes="href python:here.getObjUrl(version.getId())+'/unlock'">unlock</a>
	</td>
	<td>
	 <a tal:repeat="collection python:version.isContainedInBaskets(context=here)" tal:content="collection/title"
	 tal:attributes="href python:collection.getLastVersion().absolute_url()"/>	</td>
      </tr>

  </tal:x>

  </table>
  <p>
    <a tal:condition="previous"
       tal:attributes="href string:${request/URL0}?start:int=${previous/first}"
       href="previous_url">previous <span tal:replace="previous/length">20</span> results</a>
    <a tal:condition="next"
       tal:attributes="href string:${request/URL0}?start:int=${next/first}"
       href="next_url">next <span tal:replace="next/length">20</span> results</a>
  </p>
<input type="submit" value="delete from basket">
</tal:block>
</html>

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