| <?xml version="1.0" encoding="UTF-8"?> |
| <screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd"> |
| |
| <screen name="main-decorator"> |
| <section> |
| <actions> |
| <property-map resource="@component-resource-name@UiLabels" map-name="uiLabelMap" global="true"/> |
| <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/> |
| |
| <set field="layoutSettings.companyName" from-field="uiLabelMap.@component-resource-name@CompanyName" global="true"/> |
| <set field="layoutSettings.companySubtitle" from-field="uiLabelMap.@component-resource-name@CompanySubtitle" global="true"/> |
| |
| <set field="activeApp" value="@webapp-name@" global="true"/> |
| <set field="applicationMenuName" value="MainAppBar" global="true"/> |
| <set field="applicationMenuLocation" value="component://@component-name@/widget/@component-resource-name@Menus.xml" global="true"/> |
| <set field="applicationTitle" value="${uiLabelMap.@component-resource-name@Application}" global="true"/> |
| </actions> |
| <widgets> |
| <include-screen name="GlobalDecorator" location="component://common/widget/CommonScreens.xml"/> |
| </widgets> |
| </section> |
| </screen> |
| |
| <screen name="@component-resource-name@CommonDecorator"> |
| <section> |
| <actions> |
| </actions> |
| <widgets> |
| <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> |
| <decorator-section name="body"> |
| <section> |
| <condition> |
| <if-has-permission permission="@base-permission@" action="_VIEW"/> |
| </condition> |
| <widgets> |
| <decorator-section-include name="body"/> |
| </widgets> |
| <fail-widgets> |
| <label style="h3">${uiLabelMap.@component-resource-name@ViewPermissionError}</label> |
| </fail-widgets> |
| </section> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| </screens> |