A patch from Bruno Busco "Adding some Collapsible FieldGroup usage examples in the Form Widget Example" '(https://issues.apache.org/jira/browse/OFBIZ-2095) - OFBIZ-2095
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@728125 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -225,4 +225,36 @@ under the License.
|
||||
<field name="printButton" widget-style="smallSubmit"><submit button-type="button"/></field>
|
||||
</form>
|
||||
|
||||
<form name="FieldGroupExampleForm" type="single" title="">
|
||||
<field name="Field1"><text/></field>
|
||||
<field name="Field2"><text/></field>
|
||||
<field name="Field3"><text/></field>
|
||||
<field name="Field4"><text/></field>
|
||||
<field name="Field5"><text/></field>
|
||||
<field name="Field6"><text/></field>
|
||||
<field name="Field7"><text/></field>
|
||||
<field name="Field8"><text/></field>
|
||||
<field name="Field9"><text/></field>
|
||||
<field name="Field10"><text/></field>
|
||||
|
||||
<sort-order>
|
||||
<field-group title="Group 1" collapsible="true" initially-collapsed="true">
|
||||
<sort-field name="Field1"/>
|
||||
<sort-field name="Field2"/>
|
||||
<sort-field name="Field3"/>
|
||||
<sort-field name="Field4"/>
|
||||
<sort-field name="Field5"/>
|
||||
</field-group>
|
||||
|
||||
<field-group title="Group 2" collapsible="true">
|
||||
<sort-field name="Field6"/>
|
||||
<sort-field name="Field7"/>
|
||||
<sort-field name="Field8"/>
|
||||
<sort-field name="Field9"/>
|
||||
<sort-field name="Field10"/>
|
||||
</field-group>
|
||||
</sort-order>
|
||||
|
||||
</form>
|
||||
|
||||
</forms>
|
||||
|
||||
@@ -54,6 +54,15 @@ under the License.
|
||||
</container>
|
||||
<include-form name="DropDownFieldsExampleForm" location="component://example/widget/example/FormWidgetExampleForms.xml"/>
|
||||
</container>
|
||||
<container style="screenlet-body">
|
||||
<container style="button-bar"><label style="h2">Fields groups</label></container>
|
||||
<container style="screenlet-body">
|
||||
<label style="h3">Source Code</label>
|
||||
<label> - see the form definition with name "FieldGroupExampleForm" in the file: </label>
|
||||
<link target="http://svn.apache.org/repos/asf/ofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml" url-mode="plain" target-window="svnPage" text="framework/example/widget/example/FormWidgetExampleForms.xml" style="buttontext"/>
|
||||
<include-form name="FieldGroupExampleForm" location="component://example/widget/example/FormWidgetExampleForms.xml"/>
|
||||
</container>
|
||||
</container>
|
||||
<container style="screenlet-body">
|
||||
<container style="button-bar"><label style="h2">Print button</label></container>
|
||||
<container style="screenlet-body">
|
||||
|
||||
Reference in New Issue
Block a user