Annotation of cdli/zpt/BasketContainerMain.zpt, revision 1.4

1.1       dwinter     1: <html metal:use-macro="here/main_template/macros/page">
                      2:   <tal:block metal:fill-slot="body">
                      3:   
1.2       dwinter     4:   <h3>Manage Baskets</h3>
                      5:   
                      6:   <p><a href="basketContainer/uploadBasket_html">Upload an atf file / basket</p>
1.1       dwinter     7:   
1.2       dwinter     8:   <h4>Baket overview</h4>
1.1       dwinter     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">
1.2       dwinter    13:   <p>
1.3       dwinter    14:   <input type="submit" name="submit" value="delete"> <!--or <input type="submit" name="submit" value="duplicate">--> selected basket(s).
1.2       dwinter    15:   </p>
1.1       dwinter    16:   <table  width="100%" border=0 cellspacing=1 cellpadding=2>
                     17:     <tr>
1.2       dwinter    18:          <th>active</th>
                     19:          <th>&nbsp;</th>
                     20:          <th align=left bgcolor="#00">
                     21:       <a href="?sortField=title"> Basket Name</a>
1.1       dwinter    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">
1.4     ! dwinter    49: 
1.1       dwinter    50:       <tr tal:define="lastVersion python:version[1].getLastVersion()">
1.4     ! dwinter    51:        <td tal:condition="python:here.getActiveBasket() and (here.getActiveBasket().getId()==version[1].getId())">
1.2       dwinter    52:        <input type="radio" checked name="active=" tal:attributes="value python:version[1].getId();
                     53:                                                                onselect python:'location.href=\'setActiveBasket?basketId='+version[1].getId()+'\''
                     54:                                                                ">
                     55:        </td>
                     56:        <td tal:condition="not:python:here.getActiveBasket() and (here.getActiveBasket().getId()==version[1].getId())">
                     57:        <input type="radio" name="active=" tal:attributes="value python:version[1].getId();
1.3       dwinter    58:                                                        onchange python:'location.href=\'setActiveBasket?basketId='+version[1].getId()+'&'+here.REQUEST['QUERY_STRING']+'\''">
1.2       dwinter    59:        </td>  
                     60:    <td><input type="checkbox" tal:attributes="value python:version[1].getId()" name="ids"></td>
1.4     ! dwinter    61: 
1.2       dwinter    62:    <td>
                     63:    <a tal:content="python:version[1].title" tal:attributes="href python:lastVersion.absolute_url()"/></td>
1.1       dwinter    64:    <td>
                     65:    <span tal:replace="lastVersion/getId"/>
                     66:    <font size="-1"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/history'">(history)</a></font>
                     67:    </td>
                     68:    <td tal:content="lastVersion/getTime"/>
                     69:    <td tal:content="lastVersion/getUser"/>
                     70:    <td tal:content="lastVersion/getComment"/>
                     71:         <td><a tal:attributes="href python:lastVersion.absolute_url()+'/manageVCommentForm'"><small tal:content="python:lastVersion.getComment()"/></a></td>
1.4     ! dwinter    72: 
1.1       dwinter    73:    <td><a tal:attributes="href python:lastVersion.absolute_url()+'/downloadObjectsAsOneFile'">download</a></td>
                     74:    <td><a tal:attributes="href python:lastVersion.absolute_url()+'/downloadObjectsAsOneFile?lock=yes'"> download with locking</a>
                     75:    <td><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/uploadBasket_html?basketId='+version[0]">Upload New Version</a></td>
                     76: 
1.4     ! dwinter    77: 
1.1       dwinter    78:  
                     79:    
                     80:       </tr>
1.4     ! dwinter    81: 
        !            82: 
        !            83: 
1.1       dwinter    84:     </span>
                     85:    </table>
                     86:    </form>
                     87:    </tal:block>
                     88:    </tal:block>
                     89: </html>

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