version 1.2, 2006/02/02 19:19:24
|
version 1.9.2.1, 2007/10/06 13:44:46
|
Line 1
|
Line 1
|
<html metal:use-macro="here/main_template/macros/page"> |
<html metal:use-macro="here/main_template/macros/page"> |
<tal:block metal:fill-slot="body"> |
<tal:block metal:fill-slot="body" tal:define="options here/REQUEST"> |
<h2>CDLI File Storage - <span tal:content="here/title"/></h2> |
<h2>CDLI File Storage - <span tal:content="here/title"/></h2> |
|
|
|
<tal:x tal:condition="python:options.get('basketName',None)"> |
|
<table width="100%"> |
|
<tr class="old"> |
|
<td> |
|
<span tal:replace="python:options['numberOfObjects']"/> Objects stored in |
|
<span tal:replace="python:options['basketName']"/>. |
|
</td> |
|
</tr> |
|
</table> |
|
|
|
</tal:x> |
|
<tal:x condition="python:here.REQUEST.get('uploaded',None)"> |
|
<table width="100%" bgcolor="%FF0000"> |
|
<tr class="old"> |
|
<td>New version of <span tal:replace="python:here.REQUEST.get('uploaded',None)"/> added</td> |
|
</tr> |
|
</table> |
|
</tal:x> |
<span tal:replace="structure here/header_html"/> |
<span tal:replace="structure here/header_html"/> |
<a tal:condition="here/hasParent" |
<a tal:condition="here/hasParent" |
tal:attributes="href python:here.aq_parent.absolute_url()" |
tal:attributes="href python:here.aq_parent.absolute_url()" |
tal:content="python:'back (%s)'%here.aq_parent.title">back</a> |
tal:content="python:'back (%s)'%here.aq_parent.title">back</a> |
<hr> |
<hr class="yellow"> |
<tal:block tal:define="folders python:here.getFolders()" tal:condition="python:len(folders)>0"> |
<tal:block tal:define="folders python:here.getFolders()" tal:condition="python:len(folders)>0"> |
<h3>Subfolder</h3> |
<h3>Subfolder</h3> |
<table> |
<table> |
Line 15
|
Line 34
|
<td tal:content="python:'( files: %s)'% folder[2]"/> |
<td tal:content="python:'( files: %s)'% folder[2]"/> |
</tr> |
</tr> |
</table> |
</table> |
<hr> |
<hr class="yellow"> |
|
<br><br> |
</tal:block> |
</tal:block> |
|
|
<form> |
<form> |
<script type="text/javascript"> |
<script type="text/javascript"> |
<!-- |
<!-- |
Line 53 selectButton=document.getElementById('se
|
Line 74 selectButton=document.getElementById('se
|
|
|
//--> |
//--> |
</script> |
</script> |
<input class="space_right" type="submit" id="selectButton" value="Select All" onClick="toggleSelect(); return false"> |
<input class="button" type="submit" id="selectButton" value="Select All" onClick="toggleSelect(); return false"> |
|
<br><br> |
</form> |
</form> |
<tal:block tal:define="sortField python:here.REQUEST.get('sortField','title'); |
<tal:block tal:define="sortField python:here.REQUEST.get('sortField','title'); |
versions python:here.getVersionedFiles(sortField=sortField)"> |
versions python:here.getVersionedFiles(sortField=sortField)"> |
|
|
<form id="addBasket" tal:condition="python:len(versions)>0" action="basketContainer/storeInBasket"> |
<form id="addBasket" tal:condition="python:len(versions)>0" action="basketContainer/storeInBasket"> |
<input name="submit" type="submit" value="store in active basket"> |
<input name="submit" class="button" type="submit" value="store in active basket"> |
<input name="submit" type="submit" value="store in new basket"><input name="newBasketName"> |
<input name="submit" class="button" type="submit" value="store in new basket"> <input name="newBasketName"> |
<table width="100%" border=0 cellspacing=1 cellpadding=2> |
<input type="hidden" name="fromFileBrowser" value="1"> |
|
<input type="hidden" name="ids" value=" "><!-- make sure that ids is existing --> |
|
|
|
<table class="filelist" width="100%" border=0 cellspacing=1 cellpadding=2> |
<tr> |
<tr> |
<th align=left bgcolor="#88ff88"> |
<th align=left> |
<a href="?sortField=title"> File</a> |
<a href="?sortField=title"> File</a> |
</th> |
</th> |
<th align=left bgcolor="#00"> |
<th align=left> |
<a>Rev.</a> |
Designation |
</th> |
</th> |
<th align=left bgcolor="#cccccc"> |
<th align=left> |
|
Revisions |
|
</th> |
|
<th align=left> |
<a href="?sortField=date">Date</a> |
<a href="?sortField=date">Date</a> |
</th> |
</th> |
<th align=left bgcolor="#cccccc"> |
<th align=left> |
<a href="?sortField=author">Author</a> |
<a href="?sortField=author">Author</a> |
</th> |
</th> |
<th align=left bgcolor="#cccccc"> |
<th align=left> |
<a >Last log entry</a> |
Last log entry |
</th> |
</th> |
<th align=left bgcolor="#cccccc" width="80"> |
<th align=left width="80"> |
<a href="?sortField=comment">Comment</a> |
<a href="?sortField=comment">Comment</a> |
</th> |
</th> |
<th align=left bgcolor="#cccccc"> |
<th align=left> |
<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 align=left> |
|
Downl. and lock |
|
</th> |
|
<th align=left> |
|
Upload |
</th> |
</th> |
<th align=left bgcolor="#cccccc"> |
<th> |
<a>Downl. and lock</a> |
|
</th> |
</th> |
<th align=left bgcolor="#cccccc"> |
<th> |
<a>Upload</a> |
|
</th> |
</th> |
</tr> |
</tr> |
<span tal:omit-tag="" tal:define="sortField python:here.REQUEST.get('sortField','title')" tal:repeat="version versions"> |
<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()"> |
<tr tal:define="lastVersion python:version[1].getContentObject()"> |
<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> |
<td><nobr><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'"/></nobr></td> |
|
<td> |
|
<span tal:content="lastVersion/getDesignation|python:'ERROR'"/> |
|
</td> |
<td> |
<td> |
<span tal:replace="lastVersion/versionNumber"/> |
<span tal:replace="lastVersion/versionNumber"/> |
<font size="-1"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/history'">(history)</a></font> |
<nobr><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/getTime"/> |
<td tal:content="lastVersion/lastEditor"/> |
<td tal:content="lastVersion/lastEditor"/> |
Line 108 selectButton=document.getElementById('se
|
Line 145 selectButton=document.getElementById('se
|
<td tal:condition="python:lastVersion.lockedBy==''"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/downloadLocked'">download and lock</a></td> |
<td tal:condition="python:lastVersion.lockedBy==''"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/downloadLocked'">download and lock</a></td> |
<td tal:condition="not:python:lastVersion.lockedBy==''"><a>locked</a></td> |
<td tal:condition="not:python:lastVersion.lockedBy==''"><a>locked</a></td> |
|
|
<td tal:condition="python:lastVersion.lockedBy==''"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/addVersionedFileObjectForm'">Upload New Version</a></td> |
<td tal:condition="python:lastVersion.lockedBy==''"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/addCDLIFileObjectForm'">Upload New Version</a></td> |
<td tal:condition="not:python:lastVersion.lockedBy==''"> |
<td tal:condition="not:python:lastVersion.lockedBy==''"> |
<b tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/addVersionedFileObjectForm'">Locked by: <span tal:replace="lastVersion/lockedBy"/></b> <a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/unlock'">unlock</a> |
<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> |
|
</td> |
|
<td> |
|
<a tal:repeat="collection python:version[1].isContainedInBaskets(context=here)" tal:content="collection/title" |
|
tal:attributes="href python:collection.getLastVersion().absolute_url()"/> </td> |
|
|
|
<td> |
|
<a tal:attributes="href python:here.absolute_url()+'/delete?ids='+version[0]">del</a> |
</td> |
</td> |
</tr> |
</tr> |
</span> |
</span> |