File:  [Repository] / cdli / zpt / BasketContainerMain.zpt
Revision 1.3: download - view: text, annotated - select for diffs - revision graph
Sun Mar 19 03:27:21 2006 UTC (18 years, 3 months ago) by dwinter
Branches: MAIN
CVS tags: HEAD
bug fixes and some new features

    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:       <tr tal:define="lastVersion python:version[1].getLastVersion()">
   50:     <td tal:condition="python:here.getActiveBasket() and (here.getActiveBasket().getId()==version[1].getId())">
   51:     	<input type="radio" checked name="active=" tal:attributes="value python:version[1].getId();
   52:     															onselect python:'location.href=\'setActiveBasket?basketId='+version[1].getId()+'\''
   53:     															">
   54:     	</td>
   55:     	<td tal:condition="not:python:here.getActiveBasket() and (here.getActiveBasket().getId()==version[1].getId())">
   56:     	<input type="radio" name="active=" tal:attributes="value python:version[1].getId();
   57:     													onchange python:'location.href=\'setActiveBasket?basketId='+version[1].getId()+'&'+here.REQUEST['QUERY_STRING']+'\''">
   58:     	</td>  
   59: 	<td><input type="checkbox" tal:attributes="value python:version[1].getId()" name="ids"></td>
   60: 	<td>
   61: 	<a tal:content="python:version[1].title" tal:attributes="href python:lastVersion.absolute_url()"/></td>
   62: 	<td>
   63: 	<span tal:replace="lastVersion/getId"/>
   64: 	<font size="-1"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/history'">(history)</a></font>
   65: 	</td>
   66: 	<td tal:content="lastVersion/getTime"/>
   67: 	<td tal:content="lastVersion/getUser"/>
   68: 	<td tal:content="lastVersion/getComment"/>
   69:         <td><a tal:attributes="href python:lastVersion.absolute_url()+'/manageVCommentForm'"><small tal:content="python:lastVersion.getComment()"/></a></td>
   70:         <!--<td><a tal:attributes="href python:version[1].absolute_url()+'/manageCommentForm'"><small tal:content="python:version[1].getComment()"/></a></td>-->
   71: 	<td><a tal:attributes="href python:lastVersion.absolute_url()+'/downloadObjectsAsOneFile'">download</a></td>
   72: 	<td><a tal:attributes="href python:lastVersion.absolute_url()+'/downloadObjectsAsOneFile?lock=yes'"> download with locking</a>
   73: 	<td><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/uploadBasket_html?basketId='+version[0]">Upload New Version</a></td>
   74: 
   75:  	
   76:  
   77: 	
   78:       </tr>
   79:     </span>
   80:    </table>
   81:    </form>
   82:    </tal:block>
   83:    </tal:block>
   84: </html>

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