loops/schema/relation_macros.pt
helmutm edd2b3fbe4 work in progress: relation fields/widgets
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3165 fd906abe-77d9-0310-91a1-e0d9ade77398
2009-01-20 09:15:29 +00:00

31 lines
1.1 KiB
XML
Executable file

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"
i18n:domain="loops">
<body>
<metal:textline define-macro="input_relationset"
tal:define="fieldInstance field/getFieldInstance;
types fieldInstance/typesParams">
<div dojoType="dojox.data.QueryReadStore" jsId="conceptSearch"
tal:attributes="url string:listConceptsForComboBox.js$types;
jsId string:${name}_search_store" >
</div>
<div tal:attributes="id string:${name}_values">
<div tal:repeat="obj data/?name">
<input type="checkbox" checked
tal:attributes="name string:$name:list;
value obj/uid" />
<span tal:content="obj/title" />
</div>
</div>
<input dojoType="dijit.form.FilteringSelect"
autoComplete="False" labelAttr="label"
tal:attributes="store string:${name}_search_store;
name string:${name}_search;
id string:${name}_search;
onChange string:addRelation('$name')" />
</metal:textline>
</body>
</html>