blob: c8c5b73d1298f7910e7b46065a2463558bc213e1 [file] [log] [blame]
<?xml version="1.0"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<page
xmlns:wt="http://apache.org/cocoon/woody/template/1.0"
xmlns:wi="http://apache.org/cocoon/woody/instance/1.0">
<!--
CVS $Id$
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>