version 1.2, 2006/02/02 19:19:24
|
version 1.4, 2006/02/15 21:57:39
|
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> |
|
|
<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()" |
Line 61 selectButton=document.getElementById('se
|
Line 73 selectButton=document.getElementById('se
|
<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" type="submit" value="store in active basket"> |
<input name="submit" type="submit" value="store in new basket"><input name="newBasketName"> |
<input name="submit" type="submit" value="store in new basket"><input name="newBasketName"> |
|
<input type="hidden" name="fromFileBrowser" value="1"> |
|
<input type="hidden" name="ids" value=" "><!-- make sure that ids is existing --> |
|
|
<table width="100%" border=0 cellspacing=1 cellpadding=2> |
<table width="100%" border=0 cellspacing=1 cellpadding=2> |
<tr> |
<tr> |
<th align=left bgcolor="#88ff88"> |
<th align=left bgcolor="#88ff88"> |
Line 108 selectButton=document.getElementById('se
|
Line 123 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> |
|
<td> |
|
<a tal:repeat="collection python:version[1].isContainedInBaskets()" tal:content="collection/title" |
|
tal:attributes="href python:collection.getLastVersion().absolute_url()"/> </td> |
</tr> |
</tr> |
</span> |
</span> |
</table> |
</table> |