Diff for /cdli/zpt/BasketContainerMain.zpt between versions 1.1 and 1.3

version 1.1, 2006/02/02 19:19:24 version 1.3, 2006/03/19 03:27:21
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">
       
 <form>    <h3>Manage Baskets</h3>
   <script type="text/javascript">  
 <!--   
   
     <p><a href="basketContainer/uploadBasket_html">Upload an atf file / basket</p>
   
 isSelected=false    <h4>Baket overview</h4>
   
 function toggleSelect() {  
 addBasket=document.getElementById('addBasket')  
 selectButton=document.getElementById('selectButton')  
   
     
   if (isSelected == false) {  
   
     for (i = 0; i < addBasket.length-1; i++)  
      
       addBasket.elements[i].checked = true ;  
         
       
       isSelected = true;  
   
       selectButton.value = "Deselect All";  
       return isSelected;  
   }  
   else {  
   
     for (i = 0; i < addBasket.length+1; i++)  
       addBasket.elements[i].checked = false ;  
       isSelected = false;  
       selectButton.value = "Select All";  
       return isSelected;         
   }  
 }  
   
 //-->  
 </script>  
   <input class="space_right" type="submit" id="selectButton" value="Select All" onClick="toggleSelect(); return false">  
 </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.getBaskets(sortField=sortField)">                          versions python:here.getBaskets(sortField=sortField)">
                                                 
   <form id="addBasket" tal:condition="python:len(versions)>0"  action="basketContainer/manageBaskets">    <form id="addBasket" tal:condition="python:len(versions)>0"  action="basketContainer/manageBaskets">
     <p>
     <input type="submit" name="submit" value="delete"> <!--or <input type="submit" name="submit" value="duplicate">--> selected basket(s).
     </p>
   <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>active</th>
       <a href="?sortField=title"> File</a>            <th>&nbsp;</th>
             <th align=left bgcolor="#00">
         <a href="?sortField=title"> Basket Name</a>
       </th>        </th>
       <th align=left bgcolor="#00">        <th align=left bgcolor="#00">
     <a>Rev.</a>      <a>Rev.</a>
Line 75  selectButton=document.getElementById('se Line 47  selectButton=document.getElementById('se
     </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].getLastVersion()">
     <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>      <td tal:condition="python:here.getActiveBasket() and (here.getActiveBasket().getId()==version[1].getId())">
           <input type="radio" checked name="active=" tal:attributes="value python:version[1].getId();
                                                                   onselect python:'location.href=\'setActiveBasket?basketId='+version[1].getId()+'\''
                                                                   ">
           </td>
           <td tal:condition="not:python:here.getActiveBasket() and (here.getActiveBasket().getId()==version[1].getId())">
           <input type="radio" name="active=" tal:attributes="value python:version[1].getId();
                                                           onchange python:'location.href=\'setActiveBasket?basketId='+version[1].getId()+'&'+here.REQUEST['QUERY_STRING']+'\''">
           </td>  
       <td><input type="checkbox" tal:attributes="value python:version[1].getId()" name="ids"></td>
       <td>
       <a tal:content="python:version[1].title" tal:attributes="href python:lastVersion.absolute_url()"/></td>
     <td>      <td>
     <span tal:replace="lastVersion/getId"/>      <span tal:replace="lastVersion/getId"/>
     <font size="-1"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/history'">(history)</a></font>      <font size="-1"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/history'">(history)</a></font>

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


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