| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| 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. |
| --> |
| |
| <screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd"> |
| |
| <!-- list all examples in a tabular format --> |
| <screen name="FindExample"> |
| <section> |
| <actions> |
| <set field="headerItem" value="Example"/> |
| <set field="titleProperty" value="PageTitleFindExample"/> |
| <set field="exampleCtx" from-field="parameters"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> |
| <decorator-section name="body"> |
| <section> |
| <widgets> |
| <!-- Uncomment this section to see the ExecutionContext in action |
| <container style="button-bar"><label text="Execution path for this screen: ${executionContext}"/></container> |
| <container style="button-bar"><label text="What it contains: root/application/screen/screen/decorator/decorator"/></container> |
| --> |
| <decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml"> |
| <decorator-section name="menu-bar"> |
| <container style="button-bar"><link target="EditExample" text="${uiLabelMap.ExampleNewExample}" style="buttontext"/></container> |
| </decorator-section> |
| <decorator-section name="search-options"> |
| <include-form name="FindExamples" location="component://example/widget/example/ExampleForms.xml"/> |
| </decorator-section> |
| <decorator-section name="search-results"> |
| <include-form name="ListExamples" location="component://example/widget/example/ExampleForms.xml"/> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| |
| <screen name="EditExample"> |
| <section> |
| <actions> |
| <set field="layoutSettings.styleSheets[+0]" value="/images/prototypejs/scriptaculouscontrols.css" global="true"/> |
| <set field="titleProperty" value="PageTitleEditExample"/> |
| <set field="tabButtonItem" value="EditExample"/> |
| <set field="exampleId" from-field="parameters.exampleId"/> |
| <entity-one entity-name="Example" value-field="example"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonExampleDecorator" location="${parameters.mainDecoratorLocation}"> |
| <decorator-section name="body"> |
| <include-form name="EditExample" location="component://example/widget/example/ExampleForms.xml"/> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| |
| <screen name="ExampleReport"> |
| <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-field="example"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="SimpleDecorator" location="component://common/widget/CommonScreens.xml"> |
| <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" location="${parameters.mainDecoratorLocation}"> |
| <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="layoutSettings.javaScripts[+0]" value="/images/prototypejs/scriptaculous.js" global="true"/> |
| <set field="layoutSettings.javaScripts[+0]" value="/images/prototypejs/prototype.js" global="true"/> |
| <set field="layoutSettings.styleSheets[+0]" value="/images/prototypejs/scriptaculouscontrols.css" global="true"/> |
| <set field="titleProperty" value="PageTitleEditExampleFeatureAppls"/> |
| <set field="tabButtonItem" value="EditExampleFeatureAppls"/> |
| <set field="exampleId" from-field="parameters.exampleId"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonExampleDecorator" location="${parameters.mainDecoratorLocation}"> |
| <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> |
| |
| <screen name="help"> |
| <section> |
| <actions> |
| <property-map resource="ExampleHelpUiLabels" map-name="uiLabelMap" global="true"/> |
| <property-map resource="ExampleUiLabels" map-name="uiLabelMap" global="true"/> |
| <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/> |
| <set field="layoutSettings.companyName" from-field="uiLabelMap.ExampleCompanyName" global="true"/> |
| </actions> |
| <widgets> |
| <include-screen name="help" location="component://common/widget/CommonScreens.xml"/> |
| </widgets> |
| </section> |
| </screen> |
| |
| </screens> |