blob: 917496eea589e7c583d10b3eb0a646cd3c518af1 [file] [log] [blame]
<?xml version="1.0"?>
<page
xmlns:wt="http://apache.org/cocoon/woody/template/1.0"
xmlns:wi="http://apache.org/cocoon/woody/instance/1.0">
<!--
CVS $Id: form_model_gui_template.xml,v 1.1 2003/12/29 06:14:50 tim Exp $
Author: Timothy Larson
-->
<!--
TODO: Add features to "widgets-class" (e.g. move-up, move-down, add-before, add-after).
-->
<title>Form GUI</title>
<content>
<wt:form-template action="#{$continuation/id}.continue" method="POST">
<wt:class id="id-class"><wt:widget-label id="id"/>:<wt:widget id="id"/></wt:class>
<wt:class id="label-class"><wt:widget-label id="label"/>:<wt:widget id="label"/></wt:class>
<wt:class id="required-class"><wt:widget-label id="required"/>:<wt:widget id="required"/></wt:class>
<wt:class id="initial-size-class"><wt:widget-label id="initial-size"/>:<wt:widget id="initial-size"/></wt:class>
<wt:class id="widget-row-class">
<td>
<wt:widget id="select"/>
</td>
<td>
<wt:widget id="type">
<wi:styling list-type="dropdown" submit-on-change="true"/>
</wt:widget>
<wt:union id="union">
<wt:case id="">
</wt:case>
<wt:case id="action">
<wt:struct id="action">
<wt:new id="id-class"/>
<wt:new id="label-class"/>
</wt:struct>
</wt:case>
<wt:case id="aggregatefield">
<wt:struct id="aggregatefield">
<wt:new id="id-class"/>
<wt:new id="label-class"/>
<wt:new id="widgets-class"/>
</wt:struct>
</wt:case>
<wt:case id="booleanfield">
<wt:struct id="booleanfield">
<wt:new id="id-class"/>
<wt:new id="label-class"/>
</wt:struct>
</wt:case>
<wt:case id="class">
<wt:struct id="class">
<wt:new id="id-class"/>
<wt:new id="widgets-class"/>
</wt:struct>
</wt:case>
<wt:case id="field">
<wt:struct id="field">
<wt:new id="id-class"/>
<wt:new id="label-class"/>
<wt:new id="required-class"/>
</wt:struct>
</wt:case>
<wt:case id="new">
<wt:struct id="new">
<wt:new id="id-class"/>
</wt:struct>
</wt:case>
<wt:case id="output">
<wt:struct id="output">
<wt:new id="id-class"/>
<wt:new id="label-class"/>
</wt:struct>
</wt:case>
<wt:case id="struct">
<wt:struct id="struct">
<wt:new id="id-class"/>
<wt:new id="label-class"/>
<wt:new id="widgets-class"/>
</wt:struct>
</wt:case>
<wt:case id="repeater">
<wt:struct id="repeater">
<wt:new id="id-class"/>
<wt:new id="label-class"/>
<wt:new id="initial-size-class"/>
<wt:new id="widgets-class"/>
</wt:struct>
</wt:case>
<wt:case id="row-action">
<wt:struct id="row-action">
<wt:new id="id-class"/>
<wt:new id="label-class"/>
</wt:struct>
</wt:case>
<wt:case id="submit">
<wt:struct id="submit">
<wt:new id="id-class"/>
<wt:new id="label-class"/>
</wt:struct>
</wt:case>
<wt:case id="union">
<wt:struct id="union">
<wt:new id="id-class"/>
<wt:new id="label-class"/>
<wt:new id="widgets-class"/>
</wt:struct>
</wt:case>
</wt:union>
</td>
</wt:class>
<wt:class id="widgets-class">
<wt:repeater-size id="widgets"/>
<table border="4">
<wt:repeater-widget id="widgets">
<tr><wt:new id="widget-row-class"/></tr>
</wt:repeater-widget>
</table>
<wt:widget id="addWidget"/>
<wt:widget id="removeWidgets"/><br/>
</wt:class>
<table align="center" border="3">
<tr>
<td>
<p>
<wt:new id="widgets-class"/>
</p>
<input type="submit"/>
</td>
</tr>
</table>
</wt:form-template>
</content>
</page>