Annotation of cdli/zpt/BasketContainerMain.zpt, revision 1.1
1.1 ! dwinter 1: <html metal:use-macro="here/main_template/macros/page">
! 2: <tal:block metal:fill-slot="body">
! 3:
! 4: <form>
! 5: <script type="text/javascript">
! 6: <!--
! 7:
! 8:
! 9: isSelected=false
! 10:
! 11: function toggleSelect() {
! 12: addBasket=document.getElementById('addBasket')
! 13: selectButton=document.getElementById('selectButton')
! 14:
! 15:
! 16: if (isSelected == false) {
! 17:
! 18: for (i = 0; i < addBasket.length-1; i++)
! 19:
! 20: addBasket.elements[i].checked = true ;
! 21:
! 22:
! 23: isSelected = true;
! 24:
! 25: selectButton.value = "Deselect All";
! 26: return isSelected;
! 27: }
! 28: else {
! 29:
! 30: for (i = 0; i < addBasket.length+1; i++)
! 31: addBasket.elements[i].checked = false ;
! 32: isSelected = false;
! 33: selectButton.value = "Select All";
! 34: return isSelected;
! 35: }
! 36: }
! 37:
! 38: //-->
! 39: </script>
! 40: <input class="space_right" type="submit" id="selectButton" value="Select All" onClick="toggleSelect(); return false">
! 41: </form>
! 42: <tal:block tal:define="sortField python:here.REQUEST.get('sortField','title');
! 43: versions python:here.getBaskets(sortField=sortField)">
! 44:
! 45: <form id="addBasket" tal:condition="python:len(versions)>0" action="basketContainer/manageBaskets">
! 46: <table width="100%" border=0 cellspacing=1 cellpadding=2>
! 47: <tr>
! 48: <th align=left bgcolor="#88ff88">
! 49: <a href="?sortField=title"> File</a>
! 50: </th>
! 51: <th align=left bgcolor="#00">
! 52: <a>Rev.</a>
! 53: </th>
! 54: <th align=left bgcolor="#cccccc">
! 55: <a href="?sortField=date">Date</a>
! 56: </th>
! 57: <th align=left bgcolor="#cccccc">
! 58: <a href="?sortField=author">Author</a>
! 59: </th>
! 60: <th align=left bgcolor="#cccccc">
! 61: <a >Last log entry</a>
! 62: </th>
! 63: <th align=left bgcolor="#cccccc" width="80">
! 64: <a href="?sortField=comment">Comment</a>
! 65: </th>
! 66: <th align=left bgcolor="#cccccc">
! 67: <a>Download<br><font size="-1"><a tal:attributes="href python:here.absolute_url()+'/helpDownload'" target="help">(help)</a></font></a>
! 68: </th>
! 69: <th align=left bgcolor="#cccccc">
! 70: <a>Downl. and lock</a>
! 71: </th>
! 72: <th align=left bgcolor="#cccccc">
! 73: <a>Upload</a>
! 74: </th>
! 75: </tr>
! 76: <span tal:omit-tag="" tal:define="sortField python:here.REQUEST.get('sortField','title')" tal:repeat="version versions">
! 77: <tr tal:define="lastVersion python:version[1].getLastVersion()">
! 78: <td><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>
! 79: <td>
! 80: <span tal:replace="lastVersion/getId"/>
! 81: <font size="-1"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/history'">(history)</a></font>
! 82: </td>
! 83: <td tal:content="lastVersion/getTime"/>
! 84: <td tal:content="lastVersion/getUser"/>
! 85: <td tal:content="lastVersion/getComment"/>
! 86: <td><a tal:attributes="href python:lastVersion.absolute_url()+'/manageVCommentForm'"><small tal:content="python:lastVersion.getComment()"/></a></td>
! 87: <!--<td><a tal:attributes="href python:version[1].absolute_url()+'/manageCommentForm'"><small tal:content="python:version[1].getComment()"/></a></td>-->
! 88: <td><a tal:attributes="href python:lastVersion.absolute_url()+'/downloadObjectsAsOneFile'">download</a></td>
! 89: <td><a tal:attributes="href python:lastVersion.absolute_url()+'/downloadObjectsAsOneFile?lock=yes'"> download with locking</a>
! 90: <td><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/uploadBasket_html?basketId='+version[0]">Upload New Version</a></td>
! 91:
! 92:
! 93:
! 94:
! 95: </tr>
! 96: </span>
! 97: </table>
! 98: </form>
! 99: </tal:block>
! 100: </tal:block>
! 101: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>