File:  [Repository] / basket / zpt / BasketMain_manage_template_standard.zpt
Revision 1.3: download - view: text, annotated - select for diffs - revision graph
Mon Apr 3 11:05:04 2006 UTC (18 years, 3 months ago) by dwinter
Branches: MAIN
CVS tags: HEAD
mainor

    1: <html metal:use-macro="here/main_template/macros/page">
    2: <head>
    3: <title>Default</title>
    4: <style metal:fill-slot="additionalStyles" type="text/css">
    5: td.vario { background-color:#AC1D15 } 
    6: </style>
    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 -->
   15: <tal:block tal:condition="authorized">
   16: 
   17: 	<!-- log in message -->
   18: 	<div class="logout" style="float:right"><a href="users/login.html?logout">log out</a></div>
   19: 	<div class="userName">logged in as <span tal:content="here/getActualUserName"/></div>
   20: 	
   21: 	<!-- id selected: manage set -->
   22: 	<tal:block tal:condition="python:here.checkPermission('edit')">
   23: 	
   24: 	<h3>Manage your Set</h3>
   25: 	<br>
   26: 	<p tal:define="currentBasket here/getCurrentBasket">
   27: 	<span tal:condition="currentBasket">The active set at the moment is <b
   28: 		tal:content="currentBasket/title"/>.</span>
   29: 	<span tal:condition="not:currentBasket">Currently, there is no active set.</span>
   30: 	<a href="selectThisBasketAsCurrent">Select this set as the active set.</a>
   31: 	</p>
   32: 	
   33: 	<a href="manageUserRights_html">Change editor/admin rights for this set</a><br>
   34: 	<a href="addBasketText">Add a new textelement</a><br>
   35: 	<a href="addBasketExternalLink">Add a new externalLink</a>
   36: 	<form action="changeBasket">
   37: 		<input type="hidden" name="target" value="manageBasket">
   38: 		Title:<br>
   39: 		<input type="text" name="title" tal:attributes="value here/title" size="50"><br>
   40: 		Short Description:<br>
   41: 		<textarea name="shortDescription" rows="2" cols="50" tal:content="here/shortDescription">Short description</textarea><br>
   42: 		Comment:<br>
   43: 		<textarea name="comment" rows="7" cols="50" tal:content="here/comment">A longer comment / introduction</textarea><br>
   44: 		<tal:x repeat="item here/publicationStatusList">
   45: 		<tal:x replace="python:here.checkPermission('publish')"/>
   46: 		<tal:x condition="python:(item!='open') or (item=='open' and here.checkPermission('publish'))">
   47: 		<input tal:condition="python:item==here.publicationStatus" type="radio" name="publicationStatus" tal:attributes="value item" checked>
   48: 		<input tal:condition="not:python:item==here.publicationStatus" type="radio" name="publicationStatus" tal:attributes="value item">
   49: 		<span tal:content="item"/>
   50: 		</tal:x>
   51: 		</tal:x>
   52: 		
   53: 		<input type="submit" value="save">
   54: 	</form>
   55: 	
   56: 	</tal:block>
   57: 	
   58: 	<h4>Contents:</h4>
   59: 	<form action="changeBasketComments">
   60: 	<div class="item" tal:repeat="item here/getBasketObjects">
   61: 	<hr>
   62: 	 <div>
   63: 		<a tal:attributes="href python:'moveTop?id=%s'%item.getId()">top</a>
   64: 	 	<a tal:attributes="href python:'moveUp?id=%s'%item.getId()">up</a>
   65: 	 	<a tal:attributes="href python:'moveDown?id=%s'%item.getId()">down</a>
   66: 	 	<a tal:attributes="href python:'moveBottom?id=%s'%item.getId()">bottom</a>
   67: 	 	&nbsp;&nbsp;<a tal:attributes="href python:'deleteObject?id=%s'%item.getId()">delete</a>
   68: 	 </div>
   69: 	 <div tal:replace="structure item/content_html"/>
   70: 	 <div tal:condition="python:getattr(item,'link',None) is not None">
   71: 	 	Link (url):<input type="text" size="100" tal:attributes="name python:item.getId()+'_link';
   72: 	 											   value python:getattr(item,'link',None)"><br>
   73:  	    Linktext:<input type="text" size="100" tal:attributes="name python:item.getId()+'_linkText';
   74: 	 											   value python:getattr(item,'linkText',None)"><br>
   75: 	 											   
   76: 	 </div>
   77: 	 
   78: 	 <div><textarea cols="50" rows="5" tal:attributes="name python:item.getId()+'_comment'" tal:content="structure item/comment"></textarea>	
   79: 	 </div>
   80: 	<input type="submit" value="change">
   81: 	</div>
   82: 	
   83: 	</tal:block>
   84: 
   85: 
   86: <!-- user is not logged in -->
   87: <tal:block tal:condition="not: authorized">
   88: 	<h3>No access</h3>
   89: 	<p>You are not authorized to access this page, please <a href="/users/login.html">log in</a>.</p>
   90: </tal:block>
   91: </tal:block>
   92: </span>
   93: <!-- ende bodytext -->
   94: </body>
   95: </html>

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