File:  [Repository] / cdli / zpt / BasketContainerMain.zpt
Revision 1.7: download - view: text, annotated - select for diffs - revision graph
Fri Mar 23 13:58:11 2007 UTC (17 years, 3 months ago) by dwinter
Branches: MAIN
CVS tags: zcat_only_1, Root_zcat_only_1, HEAD
joining und subtracting
xml-roc funktionen

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

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