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

    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:   <hr class="yellow">
    8:   <h4>Basket overview</h4>
    9:   <tal:block tal:define="sortField python:here.REQUEST.get('sortField','date');
   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" class="button"> <!--or <input type="submit" name="submit" value="duplicate">--> selected basket(s).
   15:   </p>
   16:   <table  width="100%" border=0 cellspacing=1 cellpadding=2 class="filelist">
   17:     <tr>
   18:     	  <th align=left bgcolor="#222222">active</th>
   19:     	  <th align=left bgcolor="#222222">
   20:       <a href="?sortField=title"> Basket Name</a>
   21:       </th>
   22:       <th align=left bgcolor="#777777">
   23: 	Rev.
   24:       </th>
   25:       <th align=left bgcolor="#777777">
   26: 	<a href="?sortField=date">Date</a>
   27:       </th>
   28:       <th align=left bgcolor="#777777">
   29: 	<a href="?sortField=author">Author</a>
   30:       </th>
   31:       <th align=left bgcolor="#777777">
   32: 	Last log entry
   33:       </th>
   34:       <th align=left bgcolor="#777777" width="80">
   35: 	<a href="?sortField=comment">Comment</a>
   36:       </th>
   37:       <th align=left bgcolor="#777777">
   38: 	Download<br><a tal:attributes="href python:here.absolute_url()+'/helpDownload'" target="help">(help)</a>
   39:       </th>
   40:      <th align=left bgcolor="#777777">
   41: 	Downl. and lock
   42:       </th>
   43:       <th align=left bgcolor="#777777">
   44: 	Upload
   45:       </th>
   46:     </tr>
   47: 
   48:     <span tal:omit-tag="" tal:define="sortField python:here.REQUEST.get('sortField','date')" tal:repeat="version versions">
   49:     
   50:     <tr tal:define="lastVersion python:version[1].getLastVersion(); global active python:''">
   51:         <span tal:omit-tag="" tal:condition="python:here.getActiveBasket() and (here.getActiveBasket().getId()==version[1].getId())">
   52:             <span tal:omit-tag="" tal:define="global active python:'active_b'"/>
   53:         </span>
   54:     <td tal:condition="python:here.getActiveBasket() and (here.getActiveBasket().getId()==version[1].getId())" class="active_b">
   55: 
   56:     	<input type="radio" checked name="active=" tal:attributes="value python:version[1].getId();
   57:     															onselect python:'location.href=\'setActiveBasket?basketId='+version[1].getId()+'\''
   58:     															">
   59:     	</td>
   60:     	<td tal:condition="not:python:here.getActiveBasket() and (here.getActiveBasket().getId()==version[1].getId())">
   61:     	<input type="radio" name="active=" tal:attributes="value python:version[1].getId();
   62:     													onchange python:'location.href=\'setActiveBasket?basketId='+version[1].getId()+'&'+here.REQUEST['QUERY_STRING']+'\''">
   63:     	</td>  
   64: 
   65: 	<td tal:attributes="class python: active">
   66: 	<input type="checkbox" tal:attributes="value python:version[1].getId()" name="ids">
   67: 	<a tal:content="python:version[1].title" tal:attributes="href python:lastVersion.absolute_url()"/></td>
   68: 	<td tal:attributes="class python: active">
   69: 	<nobr><span tal:replace="lastVersion/getId"/>
   70: 	<a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/history'">(history)</a></nobr>
   71: 	</td>
   72: 
   73: 	<td tal:attributes="class python: active" tal:content="lastVersion/getTime"/>
   74: 	<td tal:attributes="class python: active" tal:content="lastVersion/getUser"/>
   75: 	<td tal:attributes="class python: active" tal:content="lastVersion/getComment"> </td>
   76:     <td tal:attributes="class python: active"><a tal:attributes="href python:lastVersion.absolute_url()+'/manageVCommentForm'"><small tal:content="python:lastVersion.getComment()"/></a> </td>
   77:         <!--<td><a tal:attributes="href python:version[1].absolute_url()+'/manageCommentForm'"><small tal:content="python:version[1].getComment()"/></a></td>-->
   78: 	<td tal:attributes="class python: active"><a tal:attributes="href python:lastVersion.absolute_url()+'/downloadObjectsAsOneFile'">download</a></td>
   79: 	<td tal:attributes="class python: active"><a tal:attributes="href python:lastVersion.absolute_url()+'/downloadObjectsAsOneFile?lock=yes'"> download with locking</a></td>
   80: 	<td tal:attributes="class python: active"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/uploadBasket_html?basketId='+version[0]">Upload New Version</a></td>
   81:       </tr>
   82: 
   83: 
   84: 
   85:     </span>
   86:    </table>
   87:    </form>
   88:    </tal:block>
   89:    </tal:block>
   90: </html>

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