File:  [Repository] / cdli / zpt / BasketContainerMain.zpt
Revision 1.4: download - view: text, annotated - select for diffs - revision graph
Thu Aug 24 09:08:02 2006 UTC (17 years, 10 months ago) by dwinter
Branches: MAIN
CVS tags: HEAD
minorCVS: ----------------------------------------------------------------------

    1: <html metal:use-macro="here/main_template/macros/page">
    2:   <tal:block metal:fill-slot="body">
    3:   
    4:   <h3>Manage Baskets</h3>
    5:   
    6:   <p><a href="basketContainer/uploadBasket_html">Upload an atf file / basket</p>
    7:   
    8:   <h4>Baket overview</h4>
    9:   <tal:block tal:define="sortField python:here.REQUEST.get('sortField','title');
   10:   					    versions python:here.getBaskets(sortField=sortField)">
   11:   					   
   12:   <form id="addBasket" tal:condition="python:len(versions)>0"  action="basketContainer/manageBaskets">
   13:   <p>
   14:   <input type="submit" name="submit" value="delete"> <!--or <input type="submit" name="submit" value="duplicate">--> selected basket(s).
   15:   </p>
   16:   <table  width="100%" border=0 cellspacing=1 cellpadding=2>
   17:     <tr>
   18:     	  <th>active</th>
   19:     	  <th>&nbsp;</th>
   20:     	  <th align=left bgcolor="#00">
   21:       <a href="?sortField=title"> Basket Name</a>
   22:       </th>
   23:       <th align=left bgcolor="#00">
   24: 	<a>Rev.</a>
   25:       </th>
   26:       <th align=left bgcolor="#cccccc">
   27: 	<a href="?sortField=date">Date</a>
   28:       </th>
   29:       <th align=left bgcolor="#cccccc">
   30: 	<a href="?sortField=author">Author</a>
   31:       </th>
   32:       <th align=left bgcolor="#cccccc">
   33: 	<a >Last log entry</a>
   34:       </th>
   35:       <th align=left bgcolor="#cccccc" width="80">
   36: 	<a href="?sortField=comment">Comment</a>
   37:       </th>
   38:       <th align=left bgcolor="#cccccc">
   39: 	<a>Download<br><font size="-1"><a tal:attributes="href python:here.absolute_url()+'/helpDownload'" target="help">(help)</a></font></a>
   40:       </th>
   41:      <th align=left bgcolor="#cccccc">
   42: 	<a>Downl. and lock</a>
   43:       </th>
   44:       <th align=left bgcolor="#cccccc">
   45: 	<a>Upload</a>
   46:       </th>
   47:     </tr>
   48:     <span tal:omit-tag="" tal:define="sortField python:here.REQUEST.get('sortField','title')" tal:repeat="version versions">
   49: 
   50:       <tr tal:define="lastVersion python:version[1].getLastVersion()">
   51:        <td tal:condition="python:here.getActiveBasket() and (here.getActiveBasket().getId()==version[1].getId())">
   52:     	<input type="radio" checked name="active=" tal:attributes="value python:version[1].getId();
   53:     															onselect python:'location.href=\'setActiveBasket?basketId='+version[1].getId()+'\''
   54:     															">
   55:     	</td>
   56:     	<td tal:condition="not:python:here.getActiveBasket() and (here.getActiveBasket().getId()==version[1].getId())">
   57:     	<input type="radio" name="active=" tal:attributes="value python:version[1].getId();
   58:     													onchange python:'location.href=\'setActiveBasket?basketId='+version[1].getId()+'&'+here.REQUEST['QUERY_STRING']+'\''">
   59:     	</td>  
   60: 	<td><input type="checkbox" tal:attributes="value python:version[1].getId()" name="ids"></td>
   61: 
   62: 	<td>
   63: 	<a tal:content="python:version[1].title" tal:attributes="href python:lastVersion.absolute_url()"/></td>
   64: 	<td>
   65: 	<span tal:replace="lastVersion/getId"/>
   66: 	<font size="-1"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/history'">(history)</a></font>
   67: 	</td>
   68: 	<td tal:content="lastVersion/getTime"/>
   69: 	<td tal:content="lastVersion/getUser"/>
   70: 	<td tal:content="lastVersion/getComment"/>
   71:         <td><a tal:attributes="href python:lastVersion.absolute_url()+'/manageVCommentForm'"><small tal:content="python:lastVersion.getComment()"/></a></td>
   72: 
   73: 	<td><a tal:attributes="href python:lastVersion.absolute_url()+'/downloadObjectsAsOneFile'">download</a></td>
   74: 	<td><a tal:attributes="href python:lastVersion.absolute_url()+'/downloadObjectsAsOneFile?lock=yes'"> download with locking</a>
   75: 	<td><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/uploadBasket_html?basketId='+version[0]">Upload New Version</a></td>
   76: 
   77: 
   78:  
   79: 	
   80:       </tr>
   81: 
   82: 
   83: 
   84:     </span>
   85:    </table>
   86:    </form>
   87:    </tal:block>
   88:    </tal:block>
   89: </html>

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