1: <html metal:use-macro="here/main_template/macros/page">
2: <tal:block metal:fill-slot="body" tal:define="options here/REQUEST">
3: <h2>CDLI File Storage - <span tal:content="here/title"/></h2>
4:
5: <tal:x tal:condition="python:options.get('basketName',None)">
6: <table width="100%">
7: <tr class="old">
8: <td>
9: <span tal:replace="python:options['numberOfObjects']"/> Objects stored in
10: <span tal:replace="python:options['basketName']"/>.
11: </td>
12: </tr>
13: </table>
14:
15: </tal:x>
16: <tal:x condition="python:here.REQUEST.get('uploaded',None)">
17: <table width="100%" bgcolor="%FF0000">
18: <tr class="old">
19: <td>New version of <span tal:replace="python:here.REQUEST.get('uploaded',None)"/> added</td>
20: </tr>
21: </table>
22: </tal:x>
23: <span tal:replace="structure here/header_html"/>
24: <a tal:condition="here/hasParent"
25: tal:attributes="href python:here.aq_parent.absolute_url()"
26: tal:content="python:'back (%s)'%here.aq_parent.title">back</a>
27: <hr>
28: <tal:block tal:define="folders python:here.getFolders()" tal:condition="python:len(folders)>0">
29: <h3>Subfolder</h3>
30: <table>
31: <tr tal:repeat="folder folders">
32: <td><a tal:content="python:folder[0].title" tal:attributes="href python:folder[0].absolute_url()"/></td>
33: <td tal:content="python:'( folder: %s)'% folder[1]"/>
34: <td tal:content="python:'( files: %s)'% folder[2]"/>
35: </tr>
36: </table>
37: <hr>
38: </tal:block>
39:
40: <form>
41: <script type="text/javascript">
42: <!--
43:
44:
45: isSelected=false
46:
47: function toggleSelect() {
48: addBasket=document.getElementById('addBasket')
49: selectButton=document.getElementById('selectButton')
50:
51:
52: if (isSelected == false) {
53:
54: for (i = 0; i < addBasket.length-1; i++)
55:
56: addBasket.elements[i].checked = true ;
57:
58:
59: isSelected = true;
60:
61: selectButton.value = "Deselect All";
62: return isSelected;
63: }
64: else {
65:
66: for (i = 0; i < addBasket.length+1; i++)
67: addBasket.elements[i].checked = false ;
68: isSelected = false;
69: selectButton.value = "Select All";
70: return isSelected;
71: }
72: }
73:
74: //-->
75: </script>
76: <input class="space_right" type="submit" id="selectButton" value="Select All" onClick="toggleSelect(); return false">
77: </form>
78: <tal:block tal:define="sortField python:here.REQUEST.get('sortField','title');
79: versions python:here.getVersionedFiles(sortField=sortField)">
80:
81: <form id="addBasket" tal:condition="python:len(versions)>0" action="basketContainer/storeInBasket">
82: <input name="submit" type="submit" value="store in active basket">
83: <input name="submit" type="submit" value="store in new basket"><input name="newBasketName">
84: <input type="hidden" name="fromFileBrowser" value="1">
85: <input type="hidden" name="ids" value=" "><!-- make sure that ids is existing -->
86:
87: <table width="100%" border=0 cellspacing=1 cellpadding=2>
88: <tr>
89: <th align=left bgcolor="#cccccc">
90: <a href="?sortField=title"> File</a>
91: </th>
92: <th align=left bgcolor="#cccccc">
93: <a> Designation</a>
94: </th>
95: <th align=left bgcolor="#cccccc">
96: <a>Revisions</a>
97: </th>
98: <th align=left bgcolor="#cccccc">
99: <a href="?sortField=date">Date</a>
100: </th>
101: <th align=left bgcolor="#cccccc">
102: <a href="?sortField=author">Author</a>
103: </th>
104: <th align=left bgcolor="#cccccc">
105: <a >Last log entry</a>
106: </th>
107: <th align=left bgcolor="#cccccc" width="80">
108: <a href="?sortField=comment">Comment</a>
109: </th>
110: <th align=left bgcolor="#cccccc">
111: <a>Download<br><font size="-1"><a tal:attributes="href python:here.absolute_url()+'/helpDownload'" target="help">(help)</a></font></a>
112: </th>
113: <th align=left bgcolor="#cccccc">
114: <a>Downl. and lock</a>
115: </th>
116: <th align=left bgcolor="#cccccc">
117: <a>Upload</a>
118: </th>
119: <th>
120:
121: </th>
122: </tr>
123: <span tal:omit-tag="" tal:define="sortField python:here.REQUEST.get('sortField','title')" tal:repeat="version versions">
124: <tr tal:define="lastVersion python:version[1].getLastVersion()">
125: <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()+'/view'"/></td>
126: <td>
127: <span tal:content="lastVersion/getDesignation|python:'ERROR'"/>
128: </td>
129: <td>
130: <span tal:replace="lastVersion/versionNumber"/>
131: <font size="-1"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/history'">(history)</a></font>
132: </td>
133: <td tal:content="lastVersion/getTime"/>
134: <td tal:content="lastVersion/lastEditor"/>
135: <td tal:content="lastVersion/versionComment"/>
136: <td><a tal:attributes="href python:lastVersion.absolute_url()+'/manageVCommentForm'"><small tal:content="python:lastVersion.getVComment()"/></a></td>
137: <!--<td><a tal:attributes="href python:version[1].absolute_url()+'/manageCommentForm'"><small tal:content="python:version[1].getComment()"/></a></td>-->
138: <td><a tal:attributes="href python:lastVersion.absolute_url()">download</a></td>
139:
140: <td tal:condition="python:lastVersion.lockedBy==''"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/downloadLocked'">download and lock</a></td>
141: <td tal:condition="not:python:lastVersion.lockedBy==''"><a>locked</a></td>
142:
143: <td tal:condition="python:lastVersion.lockedBy==''"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/addCDLIFileObjectForm'">Upload New Version</a></td>
144: <td tal:condition="not:python:lastVersion.lockedBy==''">
145: <b tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/addCDLIFileObjectForm'">Locked by: <span tal:replace="lastVersion/lockedBy"/></b> <a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/unlock'">unlock</a>
146: </td>
147: <td>
148: <a tal:repeat="collection python:version[1].isContainedInBaskets(context=here)" tal:content="collection/title"
149: tal:attributes="href python:collection.getLastVersion().absolute_url()"/> </td>
150:
151: <td>
152: <a tal:attributes="href python:here.absolute_url()+'/delete?ids='+version[0]">del</a>
153: </td>
154: </tr>
155: </span>
156: </table>
157: </form>
158: </tal:block>
159: </tal:block>
160: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>