Diff for /cdli/zpt/CDLIFileFolderMain.zpt between versions 1.1 and 1.4

version 1.1, 2005/11/03 01:47:58 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 58  selectButton=document.getElementById('se Line 70  selectButton=document.getElementById('se
   <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="basket/storeInBasketForm">    <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 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>
Line 107  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>&nbsp;<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>&nbsp;<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>
    <input type="submit" value="store in basket">  
    </form>     </form>
    </tal:block>     </tal:block>
    </tal:block>     </tal:block>

Removed from v.1.1  
changed lines
  Added in v.1.4


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