loops/browser/resource_configure.pt
helmutm 17a9a55b07 clean-up of editing javascript calls, xedit links; starting to provide specialized add views for adding more than on object with one form
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1173 fd906abe-77d9-0310-91a1-e0d9ade77398
2006-04-11 15:03:35 +00:00

94 lines
3.6 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>
<span tal:content="context/title">Concept Title</span>
<tal:xedit condition="view/xeditable">
<metal:xedit use-macro="views/xedit_macros/editLink" />
</tal:xedit>
</h1><br />
<div tal:define="items view/concepts;
action string:remove;
qualifier string:concepts;
summary string:Currently assigned objects;
legend string:Concepts;
showPredicate string:yes;
buttonText string:Remove Concepts;"
style="float:left; padding-right:20px">
<metal:parents use-macro="views/relation_macros/listing" />
</div>
<div tal:define="items view/clients"
style="padding-right:20px">
<fieldset>
<legend i18n:translate="">Clients</legend>
<table class="listing" summary="Clients" i18n:attributes="summary">
<thead>
<tr>
<th i18n:translate="label_title">Title</th>
<th i18n:translate="label_type">Type</th>
</tr>
</thead>
<tbody>
<tr tal:repeat="item items">
<td><a tal:content="item/title" href="#"
tal:attributes="href
string:${item/url}/@@configure.html">
Title</a></td>
<td tal:content="item/nodeType">Type</td>
</tr>
</tbody>
</table>
</fieldset>
</div>
<div tal:define="legend string:Create Concept;
buttonText string:Create Concept"
style="padding-right:20px; clear:left">
<metal:create use-macro="views/relation_macros/create">
<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="concept" />
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" />
</metal:search>
<metal:special fill-slot="specialButtons">
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>
</metal:special>
</metal:assign>
</div>
</div>
</body>
</html>