version 1.4, 2006/08/24 09:08:02
|
version 1.7, 2007/03/23 13:58:11
|
Line 4
|
Line 4
|
<h3>Manage Baskets</h3> |
<h3>Manage Baskets</h3> |
|
|
<p><a href="basketContainer/uploadBasket_html">Upload an atf file / basket</p> |
<p><a href="basketContainer/uploadBasket_html">Upload an atf file / basket</p> |
|
<hr class="yellow"> |
<h4>Baket overview</h4> |
<h4>Basket overview</h4> |
<tal:block tal:define="sortField python:here.REQUEST.get('sortField','title'); |
<tal:block tal:define="sortField python:here.REQUEST.get('sortField','date'); |
versions python:here.getBaskets(sortField=sortField)"> |
versions python:here.getBaskets(sortField=sortField)"> |
|
|
<form id="addBasket" tal:condition="python:len(versions)>0" action="basketContainer/manageBaskets"> |
<form id="addBasket" tal:condition="python:len(versions)>0" action="manageBaskets"> |
|
<p> |
|
<input type="submit" name="submit" value="delete" class="button"> <!--or <input type="submit" name="submit" value="duplicate">--> selected basket(s). |
|
</p> |
|
<p> |
|
<input type="submit" name="submit" value="join" class="button"> <!--or <input type="submit" name="submit" value="duplicate">--> selected basket(s) into basket |
|
to basket <input type="text" name="joinBasket">. |
|
</p> |
<p> |
<p> |
<input type="submit" name="submit" value="delete"> <!--or <input type="submit" name="submit" value="duplicate">--> selected basket(s). |
<input type="submit" name="submit" value="subtract" class="button"> |
|
<select name="basket2"> |
|
<option tal:repeat="version versions" tal:attributes="value python:version[0]" tal:content="python:version[1].title"/> |
|
</select> |
|
from |
|
<select name="basket1"> |
|
<option tal:repeat="version versions" tal:attributes="value python:version[0]" tal:content="python:version[1].title"/> |
|
</select> |
|
and store in <input type="text" name="subtractBasket"> |
</p> |
</p> |
<table width="100%" border=0 cellspacing=1 cellpadding=2> |
<table width="100%" border=0 cellspacing=1 cellpadding=2 class="filelist"> |
<tr> |
<tr> |
<th>active</th> |
<th align=left bgcolor="#222222">active</th> |
<th> </th> |
<th align=left bgcolor="#222222"> |
<th align=left bgcolor="#00"> |
|
<a href="?sortField=title"> Basket Name</a> |
<a href="?sortField=title"> Basket Name</a> |
</th> |
</th> |
<th align=left bgcolor="#00"> |
<th align=left bgcolor="#777777"> |
<a>Rev.</a> |
Rev. |
</th> |
</th> |
<th align=left bgcolor="#cccccc"> |
<th align=left bgcolor="#777777"> |
<a href="?sortField=date">Date</a> |
<a href="?sortField=date">Date</a> |
</th> |
</th> |
<th align=left bgcolor="#cccccc"> |
<th align=left bgcolor="#777777"> |
<a href="?sortField=author">Author</a> |
<a href="?sortField=author">Author</a> |
</th> |
</th> |
<th align=left bgcolor="#cccccc"> |
<th align=left bgcolor="#777777"> |
<a >Last log entry</a> |
Last log entry |
</th> |
</th> |
<th align=left bgcolor="#cccccc" width="80"> |
<th align=left bgcolor="#777777" width="80"> |
<a href="?sortField=comment">Comment</a> |
<a href="?sortField=comment">Comment</a> |
</th> |
</th> |
<th align=left bgcolor="#cccccc"> |
<th align=left bgcolor="#777777"> |
<a>Download<br><font size="-1"><a tal:attributes="href python:here.absolute_url()+'/helpDownload'" target="help">(help)</a></font></a> |
Download<br><a tal:attributes="href python:here.absolute_url()+'/helpDownload'" target="help">(help)</a> |
</th> |
</th> |
<th align=left bgcolor="#cccccc"> |
<th align=left bgcolor="#777777"> |
<a>Downl. and lock</a> |
Downl. and lock |
</th> |
</th> |
<th align=left bgcolor="#cccccc"> |
<th align=left bgcolor="#777777"> |
<a>Upload</a> |
Upload |
</th> |
</th> |
</tr> |
</tr> |
<span tal:omit-tag="" tal:define="sortField python:here.REQUEST.get('sortField','title')" tal:repeat="version versions"> |
|
|
|
<tr tal:define="lastVersion python:version[1].getLastVersion()"> |
<span tal:omit-tag="" tal:define="sortField python:here.REQUEST.get('sortField','date')" tal:repeat="version versions"> |
<td tal:condition="python:here.getActiveBasket() and (here.getActiveBasket().getId()==version[1].getId())"> |
|
|
<tr tal:define="lastVersion python:version[1].getLastVersion(); global active python:''"> |
|
<span tal:omit-tag="" tal:condition="python:here.getActiveBasket() and (here.getActiveBasket().getId()==version[1].getId())"> |
|
<span tal:omit-tag="" tal:define="global active python:'active_b'"/> |
|
</span> |
|
<td tal:condition="python:here.getActiveBasket() and (here.getActiveBasket().getId()==version[1].getId())" class="active_b"> |
|
|
<input type="radio" checked name="active=" tal:attributes="value python:version[1].getId(); |
<input type="radio" checked name="active=" tal:attributes="value python:version[1].getId(); |
onselect python:'location.href=\'setActiveBasket?basketId='+version[1].getId()+'\'' |
onselect python:'location.href=\'setActiveBasket?basketId='+version[1].getId()+'\'' |
"> |
"> |
Line 57
|
Line 76
|
<input type="radio" name="active=" tal:attributes="value python:version[1].getId(); |
<input type="radio" name="active=" tal:attributes="value python:version[1].getId(); |
onchange python:'location.href=\'setActiveBasket?basketId='+version[1].getId()+'&'+here.REQUEST['QUERY_STRING']+'\''"> |
onchange python:'location.href=\'setActiveBasket?basketId='+version[1].getId()+'&'+here.REQUEST['QUERY_STRING']+'\''"> |
</td> |
</td> |
<td><input type="checkbox" tal:attributes="value python:version[1].getId()" name="ids"></td> |
|
|
|
<td> |
<td tal:attributes="class python: active"> |
|
<input type="checkbox" tal:attributes="value python:version[1].getId()" name="ids"> |
<a tal:content="python:version[1].title" tal:attributes="href python:lastVersion.absolute_url()"/></td> |
<a tal:content="python:version[1].title" tal:attributes="href python:lastVersion.absolute_url()"/></td> |
<td> |
<td tal:attributes="class python: active"> |
<span tal:replace="lastVersion/getId"/> |
<nobr><span tal:replace="lastVersion/getId"/> |
<font size="-1"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/history'">(history)</a></font> |
<a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/history'">(history)</a></nobr> |
</td> |
</td> |
<td tal:content="lastVersion/getTime"/> |
|
<td tal:content="lastVersion/getUser"/> |
|
<td tal:content="lastVersion/getComment"/> |
|
<td><a tal:attributes="href python:lastVersion.absolute_url()+'/manageVCommentForm'"><small tal:content="python:lastVersion.getComment()"/></a></td> |
|
|
|
<td><a tal:attributes="href python:lastVersion.absolute_url()+'/downloadObjectsAsOneFile'">download</a></td> |
|
<td><a tal:attributes="href python:lastVersion.absolute_url()+'/downloadObjectsAsOneFile?lock=yes'"> download with locking</a> |
|
<td><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/uploadBasket_html?basketId='+version[0]">Upload New Version</a></td> |
|
|
|
|
|
|
|
|
|
|
<td tal:attributes="class python: active" tal:content="lastVersion/getTime"/> |
|
<td tal:attributes="class python: active" tal:content="lastVersion/getUser"/> |
|
<td tal:attributes="class python: active" tal:content="lastVersion/getComment"> </td> |
|
<td tal:attributes="class python: active"><a tal:attributes="href python:lastVersion.absolute_url()+'/manageVCommentForm'"><small tal:content="python:lastVersion.getComment()"/></a> </td> |
|
<!--<td><a tal:attributes="href python:version[1].absolute_url()+'/manageCommentForm'"><small tal:content="python:version[1].getComment()"/></a></td>--> |
|
<td tal:attributes="class python: active"><a tal:attributes="href python:lastVersion.absolute_url()+'/downloadObjectsAsOneFile'">download</a></td> |
|
<td tal:attributes="class python: active"><a tal:attributes="href python:lastVersion.absolute_url()+'/downloadObjectsAsOneFile?lock=yes'"> download with locking</a></td> |
|
<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> |
</tr> |
</tr> |
|
|
|
|