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

<html metal:use-macro="here/main_template/macros/page">
<head>
<title>Default</title>
<style metal:fill-slot="additionalStyles" type="text/css">
td.vario { background-color:#AC1D15 } 
</style>
</head>
<body>

<!-- span = bodytext -->
<span metal:fill-slot="body" tal:omit-tag="">
<tal:block tal:define="authorized python:here.isAuthorized()">

<!-- user is logged in -->
<tal:block tal:condition="authorized">

	<!-- log in message -->
	<div class="logout" style="float:right"><a href="users/login.html?logout">log out</a></div>
	<div class="userName">logged in as <span tal:content="here/getActualUserName"/></div>
	
	<!-- id selected: manage set -->
	<tal:block tal:condition="python:here.checkPermission('edit')">
	
	<h3>Manage your Set</h3>
	<br>
	<p tal:define="currentBasket here/getCurrentBasket">
	<span tal:condition="currentBasket">The active set at the moment is <b
		tal:content="currentBasket/title"/>.</span>
	<span tal:condition="not:currentBasket">Currently, there is no active set.</span>
	<a href="selectThisBasketAsCurrent">Select this set as the active set.</a>
	</p>
	
	<a href="manageUserRights_html">Change editor/admin rights for this set</a><br>
	<a href="addBasketText">Add a new textelement</a><br>
	<a href="addBasketExternalLink">Add a new externalLink</a>
	<form action="changeBasket">
		<input type="hidden" name="target" value="manageBasket">
		Title:<br>
		<input type="text" name="title" tal:attributes="value here/title" size="50"><br>
		Short Description:<br>
		<textarea name="shortDescription" rows="2" cols="50" tal:content="here/shortDescription">Short description</textarea><br>
		Comment:<br>
		<textarea name="comment" rows="7" cols="50" tal:content="here/comment">A longer comment / introduction</textarea><br>
		<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>
		
		<input type="submit" value="save">
	</form>
	
	</tal:block>
	
	<h4>Contents:</h4>
	<form action="changeBasketComments">
	<div class="item" tal:repeat="item here/getBasketObjects">
	<hr>
	 <div>
		<a tal:attributes="href python:'moveTop?id=%s'%item.getId()">top</a>
	 	<a tal:attributes="href python:'moveUp?id=%s'%item.getId()">up</a>
	 	<a tal:attributes="href python:'moveDown?id=%s'%item.getId()">down</a>
	 	<a tal:attributes="href python:'moveBottom?id=%s'%item.getId()">bottom</a>
	 	&nbsp;&nbsp;<a tal:attributes="href python:'deleteObject?id=%s'%item.getId()">delete</a>
	 </div>
	 <div tal:replace="structure item/content_html"/>
	 <div tal:condition="python:getattr(item,'link',None) is not None">
	 	Link (url):<input type="text" size="100" tal:attributes="name python:item.getId()+'_link';
	 											   value python:getattr(item,'link',None)"><br>
 	    Linktext:<input type="text" size="100" tal:attributes="name python:item.getId()+'_linkText';
	 											   value python:getattr(item,'linkText',None)"><br>
	 											   
	 </div>
	 
	 <div><textarea cols="50" rows="5" tal:attributes="name python:item.getId()+'_comment'" tal:content="structure item/comment"></textarea>	
	 </div>
	<input type="submit" value="change">
	</div>
	
	</tal:block>


<!-- user is not logged in -->
<tal:block tal:condition="not: authorized">
	<h3>No access</h3>
	<p>You are not authorized to access this page, please <a href="/users/login.html">log in</a>.</p>
</tal:block>
</tal:block>
</span>
<!-- ende bodytext -->
</body>
</html>

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