Thanks to Scott Gray for the patch (Apache OFBIZ-87). git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@423842 13f79535-47bb-0310-9956-ffa450edef68
143 lines
6.8 KiB
XML
143 lines
6.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
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.
|
|
-->
|
|
|
|
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/widget-screen.xsd">
|
|
<screen name="FindExample">
|
|
<section>
|
|
<actions>
|
|
<set field="headerItem" value="Example"/>
|
|
<set field="titleProperty" value="PageTitleFindExample"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="component://example/widget/example/CommonScreens.xml">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<condition>
|
|
<if-has-permission permission="EXAMPLE" action="_VIEW"/>
|
|
</condition>
|
|
<widgets>
|
|
<container><label style="head1">${uiLabelMap.${titleProperty}}</label></container>
|
|
<container><link target="EditExample" text="${uiLabelMap.ExampleNewExample}" style="buttontext"/></container>
|
|
<include-form name="ListExamples" location="component://example/widget/example/ExampleForms.xml"/>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<label style="head3">${uiLabelMap.ExampleViewPermissionError}</label>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="CommonExampleDecorator">
|
|
<section>
|
|
<actions>
|
|
<set field="headerItem" value="Example"/>
|
|
|
|
<set field="exampleId" from-field="parameters.exampleId"/>
|
|
<entity-one entity-name="Example" value-name="example"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="component://example/widget/example/CommonScreens.xml">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<!-- do check for EXAMPLE, _VIEW permission -->
|
|
<condition>
|
|
<if-has-permission permission="EXAMPLE" action="_VIEW"/>
|
|
</condition>
|
|
<widgets>
|
|
<section>
|
|
<condition>
|
|
<not><if-empty field-name="example"/></not>
|
|
</condition>
|
|
<widgets>
|
|
<include-menu name="EditExample" location="component://example/widget/example/ExampleMenus.xml"/>
|
|
<container><link target="EditExample" text="${uiLabelMap.ExampleNewExample}" style="buttontext"/></container>
|
|
<container><label style="head1">${uiLabelMap.${titleProperty}}</label><label style="head2"> ${uiLabelMap.CommonFor} "${example.exampleName}" [${exampleId}]</label></container>
|
|
</widgets>
|
|
</section>
|
|
|
|
<decorator-section-include name="body"/>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<label style="head3">${uiLabelMap.ExampleViewPermissionError}</label>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="EditExample">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditExample"/>
|
|
<set field="tabButtonItem" value="EditExample"/>
|
|
|
|
<set field="exampleId" from-field="parameters.exampleId"/>
|
|
<entity-one entity-name="Example" value-name="example"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonExampleDecorator">
|
|
<decorator-section name="body">
|
|
<include-form name="EditExample" location="component://example/widget/example/ExampleForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditExampleItems">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditExampleItems"/>
|
|
<set field="tabButtonItem" value="EditExampleItems"/>
|
|
|
|
<set field="exampleId" from-field="parameters.exampleId"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonExampleDecorator">
|
|
<decorator-section name="body">
|
|
<include-form name="ListExampleItems" location="component://example/widget/example/ExampleForms.xml"/>
|
|
<include-form name="AddExampleItem" location="component://example/widget/example/ExampleForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditExampleFeatureAppls">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditExampleFeatureAppls"/>
|
|
<set field="tabButtonItem" value="EditExampleFeatureAppls"/>
|
|
|
|
<set field="exampleId" from-field="parameters.exampleId"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonExampleDecorator">
|
|
<decorator-section name="body">
|
|
<include-form name="ListExampleFeatureAppls" location="component://example/widget/example/ExampleForms.xml"/>
|
|
<include-form name="AddExampleFeatureAppl" location="component://example/widget/example/ExampleForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
</screens>
|