A patch from Bruno Busco "Example application should use FindScreenDecorator" (https://issues.apache.org/jira/browse/OFBIZ-1846) - OFBIZ-1846
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@670340 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -21,11 +21,14 @@ under the License.
|
||||
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
|
||||
|
||||
<!-- list all examplefeatures in a tabular format -->
|
||||
<screen name="FindExampleFeature">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="headerItem" value="ExampleFeature"/>
|
||||
<set field="titleProperty" value="PageTitleFindExampleFeature"/>
|
||||
<set field="exampleFeatureCtx" from-field="parameters"/>
|
||||
<set field="noConditionFind" value="Y"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
@@ -35,11 +38,17 @@ under the License.
|
||||
<if-has-permission permission="EXAMPLE" action="_VIEW"/>
|
||||
</condition>
|
||||
<widgets>
|
||||
<container style="h1"><label>${uiLabelMap.${titleProperty}}</label></container>
|
||||
<container style="button-bar">
|
||||
<link target="EditExampleFeature" text="${uiLabelMap.ExampleNewExampleFeature}" style="buttontext"/>
|
||||
</container>
|
||||
<include-form name="ListExampleFeatures" location="component://example/widget/example/ExampleFeatureForms.xml"/>
|
||||
<decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
|
||||
<decorator-section name="menu-bar">
|
||||
<container style="button-bar"><link target="EditExampleFeature" text="${uiLabelMap.ExampleNewExampleFeature}" style="buttontext"/></container>
|
||||
</decorator-section>
|
||||
<decorator-section name="search-options">
|
||||
<include-form name="FindExampleFeatures" location="component://example/widget/example/ExampleFeatureForms.xml"/>
|
||||
</decorator-section>
|
||||
<decorator-section name="search-results">
|
||||
<include-form name="ListExampleFeatures" location="component://example/widget/example/ExampleFeatureForms.xml"/>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<label style="h3">${uiLabelMap.ExampleViewPermissionError}</label>
|
||||
|
||||
Reference in New Issue
Block a user