cybertools/composer/schema/grid/grid_macros.pt
helmutm 13d5d43021 work in progress: grid field
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3003 fd906abe-77d9-0310-91a1-e0d9ade77398
2008-11-21 07:20:26 +00:00

26 lines
901 B
XML
Executable file

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"
i18n:domain="cybertools.composer.schema">
<body>
<metal:input define-macro="input_grid"
tal:define="fieldInstance python: field.getFieldInstance(view.instance);
columns fieldInstance/columnTypes">
<span dojoType="dojo.data.ItemFileWriteStore"
tal:attributes="jsId string:store_$name;
data data/?name"/>
<table dojoType="dojox.grid.DataGrid"
style="width: 35em; height: 15em"
tal:attributes="name name; id name;
store string:store_$name">
<thead>
<tr>
<tal:header repeat="column columns">
<th tal:attributes="field column/name"
tal:content="column/title">Column Title</th>
</tal:header>
</tr></thead></table>
</metal:input>