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