
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3955 fd906abe-77d9-0310-91a1-e0d9ade77398
91 lines
3.9 KiB
XML
91 lines
3.9 KiB
XML
<tal:tag condition="view/update" />
|
|
<html metal:use-macro="context/@@standard_macros/view"
|
|
i18n:domain="loops">
|
|
<body>
|
|
|
|
<div metal:fill-slot="body">
|
|
|
|
<h1 tal:content="context/title">Concept Title</h1>
|
|
<div tal:condition="not:request/edit_relations|nothing">
|
|
[<a href="?edit_relations=yes"
|
|
i18n:translate="">Edit Relations</a>]</div><br />
|
|
|
|
<div tal:define="items view/resources;
|
|
action string:remove;
|
|
qualifier string:resources;
|
|
summary string:Currently assigned resources;
|
|
legend string:Resources;
|
|
showPredicate string:yes;
|
|
buttonText string:Remove Resources;"
|
|
style="float:left; padding-right:20px">
|
|
<metal:resources use-macro="views/relation_macros/listing" />
|
|
</div>
|
|
|
|
<div tal:define="legend string:Create Resource;
|
|
buttonText string:Create Resource"
|
|
style="padding-right:20px; clear:left">
|
|
<metal:create use-macro="views/relation_macros/create">
|
|
<select name="create.type" metal:fill-slot="types">
|
|
<tal:types repeat="type view/resourceTypes">
|
|
<option value="loops.resource.Document"
|
|
i18n:translate=""
|
|
tal:attributes="value type/token"
|
|
tal:content="type/title">Document</option>
|
|
</tal:types>
|
|
</select>
|
|
<metal:control fill-slot="control">
|
|
<input class="context" type="submit" name="form.button.submit"
|
|
value="Create Object"
|
|
i18n:attributes="value"
|
|
tal:attributes="value buttonText" />
|
|
<input type="hidden" name="assignAs" value="resource" />
|
|
and assign using Predicate
|
|
<select metal:use-macro="views/relation_macros/predicates" />
|
|
</metal:control>
|
|
</metal:create>
|
|
</div>
|
|
|
|
<div tal:define="items view/search;
|
|
action string:assign;
|
|
qualifier nothing;
|
|
summary string:Assignment candidates;
|
|
legend string:Search;
|
|
showPredicate nothing;
|
|
buttonText string:Assign;"
|
|
style="padding-right:20px">
|
|
<metal:assign use-macro="views/relation_macros/listing">
|
|
<metal:search fill-slot="topActions">
|
|
<metal:block use-macro="views/relation_macros/search">
|
|
<select name="searchType" metal:fill-slot="types">
|
|
<tal:types repeat="type view/resourceTypesForSearch">
|
|
<option value="loops:resource:Document"
|
|
i18n:translate=""
|
|
tal:attributes="value type/token;
|
|
selected python: type.token == searchType"
|
|
tal:content="type/title">Topic</option>
|
|
</tal:types>
|
|
</select>
|
|
</metal:block>
|
|
</metal:search>
|
|
<metal:special fill-slot="specialButtons">
|
|
<input type="hidden" name="assignAs" value="resource" />
|
|
Object(s) using Predicate
|
|
<select name="predicate">
|
|
<tal:types repeat="pred view/predicates">
|
|
<option value=".loops/concepts/hasType"
|
|
i18n:translate=""
|
|
tal:attributes="value pred/token"
|
|
tal:content="pred/title">Predicate</option>
|
|
</tal:types>
|
|
</select>
|
|
<span i18n:translate="">Order</span>
|
|
<input name="order" size="2" value="0" />
|
|
<span i18n:translate="">Relevance</span>
|
|
<input name="relevance" size="3" value="1.0" />
|
|
</metal:special>
|
|
</metal:assign>
|
|
</div>
|
|
|
|
</div>
|
|
</body>
|
|
</html>
|