version 1.1, 2006/01/19 16:25:49
|
version 1.4, 2006/04/03 17:46:43
|
Line 1
|
Line 1
|
<html metal:use-macro="here/main_template/macros/page"> |
<html metal:use-macro="here/main_template/macros/page"> |
<head> |
<head> |
<title>Default</title> |
<title>Default</title> |
|
<style metal:fill-slot="additionalStyles" type="text/css"> |
|
td.vario { background-color:#AC1D15 } |
|
</style> |
</head> |
</head> |
<body> |
<body> |
|
|
Line 12
|
Line 15
|
<tal:block tal:condition="authorized"> |
<tal:block tal:condition="authorized"> |
|
|
<!-- log in message --> |
<!-- log in message --> |
<div class="logout" style="float:right"><a href="/users/login.html?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> |
|
|
<!-- id selected: manage set --> |
<!-- --> |
<tal:block tal:condition="python:here.isAuthorized('edit')"> |
<tal:block tal:condition="python:here.checkPermission('edit')"> |
|
|
<h3>Manage your Set</h3> |
<h2 class="setTitle" tal:content="here/title"/> |
<br> |
|
<p tal:define="currentBasket here/getCurrentBasket"><a href="selectThisBasketAsCurrent">Select this basket.</a> |
<h4>Edit the basic Settings:</h4> |
<span tal:condition="currentBasket">The active basket at the moment is <b tal:content="currentBasket"/>.</span> |
|
<span tal:condition="not:currentBasket">Currently, there is no active basket.</span> |
<!-- 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: |
|
currentBasket and here.title != currentBasket.title">- The active set at this |
|
moment is <b tal:content="currentBasket/title"/> -<br></i> |
|
<a tal:condition="python: |
|
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> |
</p> |
|
|
<a href="addBasketText">Add a new textelement</a> |
<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> |
<input type="text" name="title" tal:attributes="value here/title" size="50"><br> |
<input class="setTitle" type="text" name="title" |
|
tal:attributes="value here/title"><br> |
Short Description:<br> |
Short Description:<br> |
<textarea name="shortDescription" rows="2" cols="50" tal:content="here/shortDescription">Short description</textarea><br> |
<textarea class="setDescription" name="shortDescription" rows="2" |
|
tal:content="here/shortDescription">Short description</textarea><br> |
Comment:<br> |
Comment:<br> |
<textarea name="comment" rows="7" cols="50" tal:content="here/comment">A longer comment / introduction</textarea><br> |
<textarea class="setComment" name="comment" rows="7" |
<input type="checkbox" id="public" value="yes"> make set public<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> |
|
<h4>Add new Elements to this Set</h4> |
|
<a href="addBasketText">Add a new textelement</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 |
|
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> |
|
|
|
<hr> |
|
|
</tal:block> |
</tal:block> |
|
|
<h4>Contents:</h4> |
<h4>Edit Contents:</h4> |
<form action="changeBasketComments"> |
<form action="changeBasketComments"> |
<div class="item" tal:repeat="item here/getObjects"> |
<div class="item" tal:repeat="item here/getBasketObjects"> |
<hr> |
<hr> |
<div> |
<div> |
<a tal:attributes="href python:'moveTop?id=%s'%item.getId()">top</a> |
<a style="float:right" tal:attributes="class python:'editLink'; href python:'deleteObject?id=%s'%item.getId()">delete</a> |
<a tal:attributes="href python:'moveUp?id=%s'%item.getId()">up</a> |
<a tal:attributes="class python:'editLink'; href python:'moveTop?id=%s'%item.getId()">top</a> |
<a tal:attributes="href python:'moveDown?id=%s'%item.getId()">down</a> |
<a tal:attributes="class python:'editLink'; href python:'moveUp?id=%s'%item.getId()">up</a> |
<a tal:attributes="href python:'moveBottom?id=%s'%item.getId()">bottom</a> |
<a tal:attributes="class python:'editLink'; href python:'moveDown?id=%s'%item.getId()">down</a> |
<a tal:attributes="href python:'deleteObject?id=%s'%item.getId()">delete</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"> |
|
Link (url):<input type="text" size="40" tal:attributes="name python:item.getId()+'_link'; |
|
value python:getattr(item,'link',None)"><br> |
|
Linktext:<input type="text" size="40" 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><textarea cols="50" rows="5" tal:attributes="name python:item.getId()+'_comment'" tal:content="structure item/comment"></textarea> |
</div> |
</div> |
Line 64
|
Line 119
|
<!-- user is not logged in --> |
<!-- user is not logged in --> |
<tal:block tal:condition="not: authorized"> |
<tal:block tal:condition="not: authorized"> |
<h3>No access</h3> |
<h3>No access</h3> |
<p>You sre not authorized to access this page, please <a href="/users/login.html">log in</a>.</p> |
<p>You are not authorized to access this page, please <a href="/users/login.html">log in</a>.</p> |
</tal:block> |
</tal:block> |
</tal:block> |
</tal:block> |
</span> |
</span> |