Initial OFBiz import from revision 7923 of the old svn.ofbiz.org SVN repository.
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@418498 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -0,0 +1,175 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
$Id: ExampleForms.xml 7773 2006-06-12 08:41:23Z jonesde $
|
||||
|
||||
Copyright 2001-2006 The Apache Software Foundation
|
||||
|
||||
Licensed 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.
|
||||
-->
|
||||
|
||||
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/widget-form.xsd">
|
||||
<form name="ListExamples" type="list" list-name="examples" paginate-target="FindExample"
|
||||
default-title-style="tableheadtext" default-widget-style="tabletext" default-tooltip-style="tabletext">
|
||||
<actions>
|
||||
<entity-condition entity-name="Example">
|
||||
<order-by field-name="description"/>
|
||||
</entity-condition>
|
||||
</actions>
|
||||
|
||||
<field name="exampleId" title="${uiLabelMap.ExampleExampleId}" widget-style="buttontext">
|
||||
<hyperlink also-hidden="false" description="${exampleId}" target="EditExample?exampleId=${exampleId}"/>
|
||||
</field>
|
||||
<field name="exampleName" title="${uiLabelMap.CommonName}"><display/></field>
|
||||
<field name="exampleTypeId" title="${uiLabelMap.CommonType}"><display-entity entity-name="ExampleType"/></field>
|
||||
<field name="statusId" title="${uiLabelMap.CommonStatus}"><display-entity entity-name="StatusItem"/></field>
|
||||
<field name="description" title="${uiLabelMap.CommonDescription}"><display/></field>
|
||||
</form>
|
||||
<form name="EditExample" type="single" target="updateExample" title="" default-map-name="example"
|
||||
default-title-style="tableheadtext" default-widget-style="inputBox" default-tooltip-style="tabletext">
|
||||
<actions>
|
||||
<entity-one entity-name="StatusItem" value-name="currentStatus" auto-field-map="false">
|
||||
<field-map field-name="statusId" env-name="example.statusId"/>
|
||||
</entity-one>
|
||||
</actions>
|
||||
<alt-target use-when="example==null" target="createExample"/>
|
||||
<auto-fields-service service-name="updateExample"/>
|
||||
|
||||
<field use-when="example!=null" name="exampleId" title="${uiLabelMap.ExampleExampleId}" tooltip="${uiLabelMap.CommonNotModifRecreat}" widget-style="tabletext"><display/></field>
|
||||
<field use-when="example==null&&exampleId==null" name="exampleId" title="${uiLabelMap.ExampleExampleId}"><ignored/></field>
|
||||
<field use-when="example==null&&exampleId!=null" name="exampleId" title="${uiLabelMap.ExampleExampleId}" widget-style="tabletext"><display description="${uiLabelMap.CommonCannotBeFound}: [${exampleId}]" also-hidden="false"/></field>
|
||||
|
||||
<field name="exampleTypeId" title="${uiLabelMap.CommonType}" widget-style="selectBox">
|
||||
<drop-down allow-empty="false">
|
||||
<entity-options entity-name="ExampleType" description="${description}">
|
||||
<entity-order-by field-name="description"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field use-when="example==null" name="statusId" title="${uiLabelMap.CommonStatus}" widget-style="selectBox">
|
||||
<drop-down allow-empty="false">
|
||||
<entity-options entity-name="StatusItem" description="${description}">
|
||||
<entity-constraint name="statusTypeId" value="EXAMPLE_STATUS"/>
|
||||
<entity-order-by field-name="sequenceId"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field use-when="example!=null" name="statusId" title="${uiLabelMap.CommonStatus}" widget-style="selectBox">
|
||||
<drop-down allow-empty="false" current-description="${currentStatus.description}">
|
||||
<entity-options entity-name="StatusValidChangeToDetail" key-field-name="statusIdTo" description="${transitionName} (${description})">
|
||||
<entity-constraint name="statusId" value="${example.statusId}"/>
|
||||
<entity-order-by field-name="sequenceId"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
|
||||
<field name="description" title="${uiLabelMap.CommonDescription}"/>
|
||||
<field name="submitButton" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit button-type="button"/></field>
|
||||
</form>
|
||||
|
||||
<!-- ExampleItem -->
|
||||
<form name="ListExampleItems" type="list" list-name="exampleItems" target="updateExampleItem"
|
||||
default-title-style="tableheadtext" default-widget-style="inputBox" default-tooltip-style="tabletext">
|
||||
<actions>
|
||||
<entity-condition entity-name="ExampleItem">
|
||||
<condition-expr field-name="exampleId" env-name="exampleId"/>
|
||||
<order-by field-name="exampleItemSeqId"/>
|
||||
</entity-condition>
|
||||
</actions>
|
||||
<auto-fields-service service-name="updateExampleItem"/>
|
||||
|
||||
<field name="exampleId"><hidden/></field>
|
||||
<field name="exampleItemSeqId" title="${uiLabelMap.CommonItem}" widget-style="tabletext"><display/></field>
|
||||
<field name="description"><text size="30"/></field>
|
||||
<field name="amountUomId" title="${uiLabelMap.CommonUom}" widget-style="selectBox">
|
||||
<drop-down allow-empty="true">
|
||||
<entity-options entity-name="UomAndType" key-field-name="uomId" description="${typeDescription}: ${description} (${abbreviation})">
|
||||
<entity-order-by field-name="typeDescription"/>
|
||||
<entity-order-by field-name="description"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
|
||||
<field name="deleteLink" title="" widget-style="buttontext">
|
||||
<hyperlink target="deleteExampleItem?exampleId=${exampleId}&exampleItemSeqId=${exampleItemSeqId}"
|
||||
description="${uiLabelMap.CommonDelete}" also-hidden="false"/>
|
||||
</field>
|
||||
<field name="submitButton" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit button-type="button"/></field>
|
||||
</form>
|
||||
<form name="AddExampleItem" type="single"
|
||||
target="createExampleItem" title=""
|
||||
default-title-style="tableheadtext" default-widget-style="inputBox" default-tooltip-style="tabletext">
|
||||
<auto-fields-service service-name="createExampleItem"/>
|
||||
|
||||
<field name="exampleId"><hidden/></field>
|
||||
<field name="exampleItemSeqId"><ignored/><!-- this will be auto-sequenced --></field>
|
||||
<field name="amountUomId" title="${uiLabelMap.CommonUom}" widget-style="selectBox">
|
||||
<drop-down allow-empty="true">
|
||||
<entity-options entity-name="UomAndType" key-field-name="uomId" description="${typeDescription}: ${description} (${abbreviation})">
|
||||
<entity-order-by field-name="typeDescription"/>
|
||||
<entity-order-by field-name="description"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="submitButton" title="${uiLabelMap.CommonAdd}" widget-style="smallSubmit"><submit button-type="button"/></field>
|
||||
</form>
|
||||
|
||||
<!-- ExampleFeatureAppl -->
|
||||
<form name="ListExampleFeatureAppls" type="list" list-name="exampleFeatureAppls" target="example_updateExampleFeatureAppl"
|
||||
default-title-style="tableheadtext" default-widget-style="inputBox" default-tooltip-style="tabletext">
|
||||
<actions>
|
||||
<entity-condition entity-name="ExampleFeatureAppl">
|
||||
<condition-expr field-name="exampleId" env-name="exampleId"/>
|
||||
<order-by field-name="sequenceNum"/>
|
||||
</entity-condition>
|
||||
</actions>
|
||||
<auto-fields-service service-name="updateExampleFeatureAppl"/>
|
||||
|
||||
<field name="exampleId"><hidden/></field>
|
||||
<field name="exampleFeatureId" title="${uiLabelMap.ExampleFeature}" widget-style="tabletext">
|
||||
<display-entity entity-name="ExampleFeature" description="${description}">
|
||||
<sub-hyperlink target="EditExampleFeature?exampleFeatureId=${exampleFeatureId}" description="${exampleFeatureId}" link-style="buttontext"/>
|
||||
</display-entity>
|
||||
</field>
|
||||
<field name="fromDate"><display/></field>
|
||||
<field name="exampleFeatureApplTypeId" title="${uiLabelMap.CommonType}" widget-style="selectBox">
|
||||
<drop-down allow-empty="false">
|
||||
<entity-options entity-name="ExampleFeatureApplType" description="${description}">
|
||||
<entity-order-by field-name="description"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
|
||||
<field name="submitButton" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit button-type="button"/></field>
|
||||
<field name="deleteLink" title="" widget-style="buttontext">
|
||||
<hyperlink target="example_deleteExampleFeatureAppl?exampleId=${exampleId}&exampleFeatureId=${exampleFeatureId}&fromDate=${fromDate}"
|
||||
description="${uiLabelMap.CommonDelete}" also-hidden="false"/>
|
||||
</field>
|
||||
</form>
|
||||
<form name="AddExampleFeatureAppl" type="single"
|
||||
target="example_createExampleFeatureAppl" title=""
|
||||
default-title-style="tableheadtext" default-widget-style="inputBox" default-tooltip-style="tabletext">
|
||||
<auto-fields-service service-name="createExampleFeatureAppl"/>
|
||||
|
||||
<field name="exampleId"><hidden/></field>
|
||||
<field name="exampleFeatureId" title="${uiLabelMap.ExampleFeature}"><lookup target-form-name="LookupExampleFeature"/></field>
|
||||
<field name="exampleFeatureApplTypeId" title="${uiLabelMap.CommonType}" widget-style="selectBox">
|
||||
<drop-down allow-empty="false">
|
||||
<entity-options entity-name="ExampleFeatureApplType" description="${description}">
|
||||
<entity-order-by field-name="description"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="submitButton" title="${uiLabelMap.CommonAdd}" widget-style="smallSubmit"><submit button-type="button"/></field>
|
||||
</form>
|
||||
</forms>
|
||||
Reference in New Issue
Block a user