Annotation of basket/zpt/BasketMain_manage_template_standard.zpt, revision 1.6

1.1       dwinter     1: <html metal:use-macro="here/main_template/macros/page">
                      2: <head>
                      3: <title>Default</title>
1.3       dwinter     4: <style metal:fill-slot="additionalStyles" type="text/css">
                      5: td.vario { background-color:#AC1D15 } 
                      6: </style>
1.1       dwinter     7: </head>
                      8: <body>
                      9: 
                     10: <!-- span = bodytext -->
                     11: <span metal:fill-slot="body" tal:omit-tag="">
                     12: <tal:block tal:define="authorized python:here.isAuthorized()">
                     13: 
                     14: <!-- user is logged in -->
1.6     ! dwinter    15: <tal:block tal:condition="authorized"
        !            16:     tal:define="global currentBasket here/getCurrentBasket">
1.1       dwinter    17: 
                     18:    <!-- log in message -->
1.4       dwinter    19:    <div class="logout" style="float:right"><a href="users/?logout">log out</a></div>
1.1       dwinter    20:    <div class="userName">logged in as <span tal:content="here/getActualUserName"/></div>
                     21:    
1.4       dwinter    22:    <!--  -->
1.5       dwinter    23:    <tal:block tal:condition="python:here.checkPermission('edit') or here.checkPermission('admin')">
1.1       dwinter    24:    
1.4       dwinter    25:    <h2 class="setTitle" tal:content="here/title"/>
                     26:    <i tal:condition="python: 
1.6     ! dwinter    27:        currentBasket and (here.title == currentBasket.title)">- This is the active set -</i>
        !            28:    <h4>Edit the set description:</h4>
        !            29:    <br>
1.1       dwinter    30:    <form action="changeBasket">
                     31:        <input type="hidden" name="target" value="manageBasket">
                     32:        Title:<br>
1.4       dwinter    33:        <input class="setTitle" type="text" name="title" 
                     34:            tal:attributes="value here/title"><br>
1.1       dwinter    35:        Short Description:<br>
1.4       dwinter    36:        <textarea class="setDescription" name="shortDescription" rows="2" 
                     37:            tal:content="here/shortDescription">Short description</textarea><br>
1.1       dwinter    38:        Comment:<br>
1.4       dwinter    39:        <textarea class="setComment" name="comment" rows="7" 
                     40:            tal:content="here/comment">A longer comment / introduction</textarea><br><br>
                     41:            
                     42:        <input type="submit" value="save">
1.1       dwinter    43:    </form>
1.4       dwinter    44:    <hr>
1.6     ! dwinter    45:    
        !            46:    <a href="manageUserRights_html">Manage the access rights for this set.</a><br>
        !            47:    <hr>
        !            48: 
        !            49:    <h4>Add a new element to the end of this set</h4><br>
        !            50:    <!-- Change active basket -->
1.4       dwinter    51:    <a href="addBasketText">Add a new textelement</a><br>
                     52:    <a href="addBasketExternalLink">Add a new hyperlink</a><br>
1.6     ! dwinter    53:    <p><i>To add any objects from inside the Virtual Laboratory to the active set, 
        !            54:    please locate their datasheet and click the 'addToSet' button.</i></p>
        !            55:    <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>
        !            56:    <p tal:condition="not: python: 
        !            57:        currentBasket and here.title == currentBasket.title">
        !            58:    <a tal:condition="python: 
        !            59:        currentBasket and here.title != currentBasket.title" 
        !            60:        class="editLink"
        !            61:        href="selectThisBasketAsCurrent">Select this set as the active set.</a>
        !            62: 
        !            63:    <a tal:condition="
        !            64:        not: currentBasket"
        !            65:        class="editLink"
        !            66:        href="selectThisBasketAsCurrent">Make this set the active set.</a>
        !            67:    </p>
1.4       dwinter    68: 
                     69:    <hr>
1.1       dwinter    70:    
                     71:    </tal:block>
                     72:    
1.6     ! dwinter    73:    <!-- Content -->
        !            74:    <tal:block tal:define="items here/getBasketObjects"
        !            75:        tal:condition="items">
        !            76:    <h4>Edit Contents:</h4><br>
        !            77:    
1.1       dwinter    78:    <form action="changeBasketComments">
1.6     ! dwinter    79:    <div class="item" tal:repeat="item items">
        !            80:    <div> <!-- change position / delete -->
        !            81:        <a style="float:right" tal:attributes="class python:'editLink'; 
        !            82:            href python:'deleteObject?id=%s'%item.getId()">delete</a>
        !            83:        <a tal:attributes="class python:'editLink'; 
        !            84:            href python:'moveTop?id=%s'%item.getId()">top</a>
        !            85:        <a tal:attributes="class python:'editLink'; 
        !            86:            href python:'moveUp?id=%s'%item.getId()">up</a>
        !            87:        <a tal:attributes="class python:'editLink'; 
        !            88:            href python:'moveDown?id=%s'%item.getId()">down</a>
        !            89:        <a tal:attributes="class python:'editLink'; 
        !            90:            href python:'moveBottom?id=%s'%item.getId()">bottom</a>
1.1       dwinter    91:     </div>
                     92:     <div tal:replace="structure item/content_html"/>
1.2       dwinter    93:     <div tal:condition="python:getattr(item,'link',None) is not None">
1.4       dwinter    94:        Link (url):<input type="text" size="40" tal:attributes="name python:item.getId()+'_link';
1.2       dwinter    95:                                                   value python:getattr(item,'link',None)"><br>
1.4       dwinter    96:        Linktext:<input type="text" size="40" tal:attributes="name python:item.getId()+'_linkText';
1.2       dwinter    97:                                                   value python:getattr(item,'linkText',None)"><br>
                     98:                                                   
                     99:     </div>
                    100:     
1.1       dwinter   101:     <div><textarea cols="50" rows="5" tal:attributes="name python:item.getId()+'_comment'" tal:content="structure item/comment"></textarea>    
                    102:     </div>
                    103:    <input type="submit" value="change">
                    104:    </div>
1.6     ! dwinter   105:    </tal:block>
1.1       dwinter   106:    </tal:block>
                    107: 
                    108: 
                    109: <!-- user is not logged in -->
                    110: <tal:block tal:condition="not: authorized">
                    111:    <h3>No access</h3>
1.3       dwinter   112:    <p>You are not authorized to access this page, please <a href="/users/login.html">log in</a>.</p>
1.1       dwinter   113: </tal:block>
                    114: </tal:block>
                    115: </span>
                    116: <!-- ende bodytext -->
                    117: </body>
                    118: </html>

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