Diff for /basket/zpt/BasketMain_manage_template_standard.zpt between versions 1.4 and 1.6

version 1.4, 2006/04/03 17:46:43 version 1.6, 2006/04/05 14:16:26
Line 12  td.vario { background-color:#AC1D15 } Line 12  td.vario { background-color:#AC1D15 }
 <tal:block tal:define="authorized python:here.isAuthorized()">  <tal:block tal:define="authorized python:here.isAuthorized()">
   
 <!-- user is logged in -->  <!-- user is logged in -->
 <tal:block tal:condition="authorized">  <tal:block tal:condition="authorized"
        tal:define="global currentBasket here/getCurrentBasket">
   
     <!-- log in message -->      <!-- log in message -->
     <div class="logout" style="float:right"><a href="users/?logout">log out</a></div>      <div class="logout" style="float:right"><a href="users/?logout">log out</a></div>
     <div class="userName">logged in as <span tal:content="here/getActualUserName"/></div>      <div class="userName">logged in as <span tal:content="here/getActualUserName"/></div>
           
     <!--  -->      <!--  -->
     <tal:block tal:condition="python:here.checkPermission('edit')">      <tal:block tal:condition="python:here.checkPermission('edit') or here.checkPermission('admin')">
           
     <h2 class="setTitle" tal:content="here/title"/>      <h2 class="setTitle" tal:content="here/title"/>
       
     <h4>Edit the basic Settings:</h4>  
       
     <!-- Change active basket -->  
     <p tal:define="global currentBasket here/getCurrentBasket">  
     <i tal:condition="python:   
         here.title == currentBasket.title">- This is the active set at this moment -</i>  
           
     <i tal:condition="python:       <i tal:condition="python: 
         currentBasket and here.title != currentBasket.title">- The active set at this           currentBasket and (here.title == currentBasket.title)">- This is the active set -</i>
         moment is <b tal:content="currentBasket/title"/> -<br></i>      <h4>Edit the set description:</h4>
     <a tal:condition="python:       <br>
         currentBasket and here.title != currentBasket.title"   
         href="selectThisBasketAsCurrent">Select this set as the active set.</a>  
   
     <span tal:condition="  
         not:currentBasket">- Currently, there is no active set -<br></span>  
     <a tal:condition="  
         not: python: currentBasket"  
         href="selectThisBasketAsCurrent">Make this set the active set.</a>  
     </p>  
       
     <a href="manageUserRights_html">Manage the access rights for this set.</a><br>  
       
     <hr>  
     <form action="changeBasket">      <form action="changeBasket">
         <input type="hidden" name="target" value="manageBasket">          <input type="hidden" name="target" value="manageBasket">
         Title:<br>          Title:<br>
Line 60  td.vario { background-color:#AC1D15 } Line 40  td.vario { background-color:#AC1D15 }
             tal:content="here/comment">A longer comment / introduction</textarea><br><br>              tal:content="here/comment">A longer comment / introduction</textarea><br><br>
                           
         <input type="submit" value="save">          <input type="submit" value="save">
           
         <span tal:replace="structure python:'<!--\n'" />  
         <tal:x repeat="item here/publicationStatusList">  
         <tal:x replace="python:here.checkPermission('publish')"/>  
         <tal:x condition="python:(item!='open') or   
             (item=='open' and here.checkPermission('publish'))">  
         <input tal:condition="python:item==here.publicationStatus" type="radio"  
             name="publicationStatus" tal:attributes="value item" checked>  
         <input tal:condition="not:python:item==here.publicationStatus" type="radio"   
             name="publicationStatus" tal:attributes="value item">  
         <span tal:content="item"/>  
         </tal:x>  
         </tal:x>  
         <span tal:replace="structure python:'-->\n'" />  
           
     </form>      </form>
     <hr>      <hr>
     <h4>Add new Elements to this Set</h4>      
       <a href="manageUserRights_html">Manage the access rights for this set.</a><br>
       <hr>
   
       <h4>Add a new element to the end of this set</h4><br>
       <!-- Change active basket -->
     <a href="addBasketText">Add a new textelement</a><br>      <a href="addBasketText">Add a new textelement</a><br>
     <a href="addBasketExternalLink">Add a new hyperlink</a><br>      <a href="addBasketExternalLink">Add a new hyperlink</a><br>
     <p><i>To add any objects from inside the Virtual Laboratory, please locate their       <p><i>To add any objects from inside the Virtual Laboratory to the active set, 
     datasheet and click the 'addToSet' button.</i>  <span tal:condition="not:currentBasket"><br>Warning: there is no active set at this moment!<br></span><span tal:condition="python: currentBasket and here.title != currentBasket.title"><br>Warning: This set is not the active set at this moment, objects will go to the set <b tal:content="currentBasket/title"/>!<br></span></p>      please locate their datasheet and click the 'addToSet' button.</i></p>
       <p><i><span tal:condition="not:currentBasket">Please note: there is no active set at this moment!</span><span tal:condition="python: currentBasket and here.title != currentBasket.title">Please note: This set is not the active set at this moment, objects will go to the set <b tal:content="currentBasket/title"/>!</span></i></p>
       <p tal:condition="not: python: 
           currentBasket and here.title == currentBasket.title">
       <a tal:condition="python: 
           currentBasket and here.title != currentBasket.title" 
           class="editLink"
           href="selectThisBasketAsCurrent">Select this set as the active set.</a>
   
       <a tal:condition="
           not: currentBasket"
           class="editLink"
           href="selectThisBasketAsCurrent">Make this set the active set.</a>
       </p>
   
     <hr>      <hr>
           
     </tal:block>      </tal:block>
           
     <h4>Edit Contents:</h4>      <!-- Content -->
     <form action="changeBasketComments">      <tal:block tal:define="items here/getBasketObjects"
     <div class="item" tal:repeat="item here/getBasketObjects">          tal:condition="items">
     <hr>      <h4>Edit Contents:</h4><br>
      <div>  
         <a style="float:right" tal:attributes="class python:'editLink'; href python:'deleteObject?id=%s'%item.getId()">delete</a>  
 <a tal:attributes="class python:'editLink'; href python:'moveTop?id=%s'%item.getId()">top</a>  
         <a tal:attributes="class python:'editLink'; href python:'moveUp?id=%s'%item.getId()">up</a>  
         <a tal:attributes="class python:'editLink'; href python:'moveDown?id=%s'%item.getId()">down</a>  
         <a tal:attributes="class python:'editLink'; href python:'moveBottom?id=%s'%item.getId()">bottom</a>  
                   
       <form action="changeBasketComments">
       <div class="item" tal:repeat="item items">
       <div> <!-- change position / delete -->
           <a style="float:right" tal:attributes="class python:'editLink'; 
               href python:'deleteObject?id=%s'%item.getId()">delete</a>
           <a tal:attributes="class python:'editLink'; 
               href python:'moveTop?id=%s'%item.getId()">top</a>
           <a tal:attributes="class python:'editLink'; 
               href python:'moveUp?id=%s'%item.getId()">up</a>
           <a tal:attributes="class python:'editLink'; 
               href python:'moveDown?id=%s'%item.getId()">down</a>
           <a tal:attributes="class python:'editLink'; 
               href python:'moveBottom?id=%s'%item.getId()">bottom</a>
      </div>       </div>
      <div tal:replace="structure item/content_html"/>       <div tal:replace="structure item/content_html"/>
      <div tal:condition="python:getattr(item,'link',None) is not None">       <div tal:condition="python:getattr(item,'link',None) is not None">
Line 112  td.vario { background-color:#AC1D15 } Line 102  td.vario { background-color:#AC1D15 }
      </div>       </div>
     <input type="submit" value="change">      <input type="submit" value="change">
     </div>      </div>
           </tal:block>
     </tal:block>      </tal:block>
   
   

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


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