File:  [Repository] / basket / zpt / BasketFolder_manage_template_standard.zpt
Revision 1.11: download - view: text, annotated - select for diffs - revision graph
Wed Aug 15 15:49:03 2007 UTC (16 years, 10 months ago) by casties
Branches: MAIN
CVS tags: HEAD
simplified some methods and added getters for unicode in basket.py
changed templates to use unicode getters

    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: 
   13: 
   14: <!-- user is logged in -->
   15: <tal:block tal:condition="python:here.checkPermission('edit') or 
   16: 	here.REQUEST.get('mode', 'private')=='private' ">
   17: 	
   18: 	<h3 tal:define="global mode python: 
   19: 		here.REQUEST.get('mode', here.REQUEST.get('mode','private'))"><span 
   20: 		tal:condition="python: mode == 'private'" 
   21: 		tal:replace="python:'My '" /><span 
   22: 		tal:condition="python: mode == 'open_internal'" 
   23: 		tal:replace="python:'User '" /><span 
   24: 		tal:condition="python: mode == 'open'" 
   25: 		tal:replace="python:'Public '" />Sets <a class="editLink" tal:attributes="
   26: 		href python:'setFolder?mode=%s'%mode">|&nbsp;return to overwiew</a></h3>
   27: 		
   28: 	<p>Manage your Sets:</p>
   29: 	
   30: 	<div class="item" 
   31: 		tal:define="currentBasket here/getCurrentBasket" 
   32: 		tal:repeat="item python:here.getSets(mode=mode)">
   33: 	<hr>
   34: 		<a class="setTitleLink" tal:condition="item/title" 
   35: 			tal:attributes="href item/absolute_url" tal:content="item/getTitle"/>
   36: 		<a class="setTitleLink" tal:condition="not: item/title" 
   37: 			tal:attributes="href item/absolute_url" tal:content="python:'Untitled Set'"/>
   38: 		<i class="small" style="white-space:nowrap" 
   39: 			tal:condition="python: 
   40: 				mode == 'private' and here.getActualUserName() != item.owner" 
   41: 			tal:content="python:
   42: 				' [shared set, created by ' + item.getOwner().split('@')[0] + ']'" 
   43: 		/><br clear="all">
   44: 	<div style="padding-left:25px;">
   45: 		<div style="float:right;vertical-align:right;white-space:nowrap">
   46: 			<span tal:omit-tag=""
   47: 				tal:condition="python: 
   48: 					currentBasket is None  or (currentBasket and (item.id != currentBasket.id))">		
   49: 			<a class="editLink" tal:attributes="
   50: 				href python: item.absolute_url() + 
   51: 					'/selectThisBasketAsCurrent?target=/users/setFolder%3Fmode=' + mode">select</a> - 
   52: 			</span>
   53: 			<i tal:condition="not: python: 
   54: 				currentBasket is None  or (currentBasket and (item.id != currentBasket.id))">		
   55: 			active set -</i>
   56: 			
   57: 			<a class="editLink" tal:attributes="
   58: 				href python: item.absolute_url() + '/manageBasket'">edit</a> - 
   59: 			<a tal:attributes="
   60: 				class python:'editLink'; 
   61: 				href python:'deleteObject?id=%s'%item.getId()"
   62: 				onclick="return window.confirm(
   63: 					'Do you really want to remove this item?\nThis is not undoable.')">delete</a>
   64: 		</div>
   65: 		move: <a tal:attributes="
   66: 			class python:'editLink'; 
   67: 			href python:'moveTop?id=%s'%item.getId()">top</a>
   68: 	 	<a tal:attributes="
   69: 	 		class python:'editLink'; 
   70: 	 		href python:'moveUp?id=%s'%item.getId()">up</a>
   71: 	 	<a tal:attributes="
   72: 	 		class python:'editLink'; 
   73: 	 		href python:'moveDown?id=%s'%item.getId()">down</a>
   74: 	 	<a tal:attributes="
   75: 	 		class python:'editLink'; 
   76: 	 		href python:'moveBottom?id=%s'%item.getId()">bottom</a>
   77: 	 </div>
   78: 	</div>
   79: 	
   80: </tal:block>
   81: 
   82: 
   83: <!-- user is not logged in -->
   84: <tal:block tal:condition="not:python:here.checkPermission('edit') or here.REQUEST.get('mode', 'private')=='private'">
   85: 
   86: 	<h3>No access</h3>
   87: 	<p>You are not authorized to access this page, please <a href="/users/login.html">log in</a>.</p>
   88: </tal:block>
   89: 
   90: </span>
   91: <!-- ende bodytext -->
   92: </body>
   93: </html>

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