Thanks: Jacques for inspiration and guidance, Aditya Sharma for sharing thoughts and visions and Ingo Richter for finding this gem. - changed grid 'EditProductPriceRulesCondition' list-name to reflect correct list
846 lines
43 KiB
XML
846 lines
43 KiB
XML
<?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"
|
|
xmlns="http://ofbiz.apache.org/Widget-Screen" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Screen http://ofbiz.apache.org/dtds/widget-screen.xsd">
|
|
|
|
<!-- Included Screens -->
|
|
<screen name="states">
|
|
<section>
|
|
<widgets>
|
|
<platform-specific><html><html-template location="component://common-theme/template/includes/States.ftl"/></html></platform-specific>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="countries">
|
|
<section>
|
|
<widgets>
|
|
<platform-specific><html><html-template location="component://common-theme/template/includes/Countries.ftl"/></html></platform-specific>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="cctypes">
|
|
<section>
|
|
<widgets>
|
|
<platform-specific><html><html-template location="component://common-theme/template/includes/CcTypes.ftl"/></html></platform-specific>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="ccmonths">
|
|
<section>
|
|
<widgets>
|
|
<platform-specific><html><html-template location="component://common-theme/template/includes/CcMonths.ftl"/></html></platform-specific>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="ccyears">
|
|
<section>
|
|
<widgets>
|
|
<platform-specific><html><html-template location="component://common-theme/template/includes/CcYears.ftl"/></html></platform-specific>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<!--
|
|
The following screen renders a generic link (implemented by an hidden form)
|
|
that can be included in other screens in the following way:
|
|
...
|
|
<section>
|
|
<actions>
|
|
<set field="genericLinkName" value="formName"/> The name of the hidden form (mandatory)
|
|
<set field="genericLinkText" value="Link message"/> The link text (mandatory)
|
|
<set field="genericLinkTarget" value="ApprovedProductRequirementsReport"/> The request name (mandatory)
|
|
<set field="genericLinkStyle" value="buttontext"/> The style of the link (optional)
|
|
<set field="genericLinkWindow" value="newWindow"/> The target window (optional): if set, a new browser window is created
|
|
<set field="excludeParameters" value="N"/> If not set to Y, the requestParameters are included in the form as hidden fields (optional, defaults to N)
|
|
</actions>
|
|
<widgets>
|
|
<include-screen name="genericLink" location="component://common/widget/CommonScreens.xml"/>
|
|
</widgets>
|
|
</section>
|
|
...
|
|
-->
|
|
<screen name="genericLink">
|
|
<section>
|
|
<widgets>
|
|
<platform-specific><html><html-template location="component://common-theme/template/includes/GenericLink.ftl"/></html></platform-specific>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<!-- decorator used in creating a response to an ajax request -->
|
|
<screen name="AjaxGlobalDecorator">
|
|
<section>
|
|
<widgets>
|
|
<platform-specific>
|
|
<html>
|
|
<html-template location="component://common-theme/template/includes/HtmlHeaderForAjax.ftl" />
|
|
</html>
|
|
</platform-specific>
|
|
<decorator-section-include name="body" />
|
|
<platform-specific>
|
|
<html>
|
|
<html-template location="component://common-theme/template/includes/HtmlFooterForAjax.ftl" />
|
|
</html>
|
|
</platform-specific>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<!--
|
|
The following screen is used to generate Ajax list of options for autocomplete fields
|
|
-->
|
|
<screen name="ajaxAutocompleteOptions">
|
|
<section>
|
|
<widgets>
|
|
<decorator-screen name="AjaxGlobalDecorator">
|
|
<decorator-section name="body">
|
|
<platform-specific>
|
|
<html><html-template location="component://common-theme/template/includes/AjaxAutocompleteOptions.ftl" /></html>
|
|
</platform-specific>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<!-- Global screen rendering context initialization, intended to be included in screen decorators. Devs - please keep this simple and generic. -->
|
|
<screen name="GlobalActions">
|
|
<section>
|
|
<actions>
|
|
<set field="layoutSettings.javaScripts[+0]" value="${groovy: org.apache.ofbiz.common.JsLanguageFilesMapping.Validation.getFilePath(initialLocaleComplete)}" global="true" />
|
|
<!-- Jgrowl -->
|
|
<set field="layoutSettings.styleSheets[+0]" value="/common/js/jquery/plugins/jquery-jgrowl/jquery.jgrowl-1.4.6.min.css" global="true" />
|
|
<!-- Trumbowyg -->
|
|
<set field="layoutSettings.styleSheets[+0]" value="/common/js/node_modules/trumbowyg/dist/ui/trumbowyg.min.css" global="true" />
|
|
<!-- Set default user locale from browser -->
|
|
<set field="layoutSettings.javaScripts[+0]" value="/common/js/util/setUserTimeZone.js"/>
|
|
</actions>
|
|
<widgets />
|
|
</section>
|
|
</screen>
|
|
|
|
<!-- Global decorator for General Screens/Pages -->
|
|
<screen name="GlobalDecorator">
|
|
<section>
|
|
<widgets>
|
|
<section>
|
|
<actions>
|
|
<set field="layoutSettings.commonHeaderImageLinkUrl" from-field="layoutSettings.commonHeaderImageLinkUrl" default-value="main" global="true" />
|
|
<set field="iconsLocation" from-field="layoutSettings.VT_ICONS_LOC" default-value="/images/icons/famfamfam" global="true" />
|
|
<set field="headerTemplateLocation" from-field="layoutSettings.VT_HDR_TMPLT_LOC" />
|
|
<set field="footerTemplateLocation" from-field="layoutSettings.VT_FTR_TMPLT_LOC" />
|
|
<set field="appbarTemplateLocation" from-field="layoutSettings.VT_NAV_TMPLT_LOC" />
|
|
<set field="appbarOpenTemplateLocation" from-field="layoutSettings.VT_NAV_OPEN_TMPLT" />
|
|
<set field="appbarCloseTemplateLocation" from-field="layoutSettings.VT_NAV_CLOSE_TMPLT" />
|
|
<set field="messagesTemplateLocation" from-field="layoutSettings.VT_MSG_TMPLT_LOC" />
|
|
<set field="layoutSettings.suppressTab" value="ofbizsetup"/><!-- diseable ofbiz setup by default -->
|
|
</actions>
|
|
<widgets />
|
|
</section>
|
|
<section>
|
|
<condition>
|
|
<if-empty field="parameters.ajaxUpdateEvent" />
|
|
</condition>
|
|
<widgets>
|
|
<!-- render header -->
|
|
<platform-specific>
|
|
<html>
|
|
<html-template location="${headerTemplateLocation}" />
|
|
</html>
|
|
</platform-specific>
|
|
<!-- render appbar or its opening part -->
|
|
<section name="Render-Main-Nav">
|
|
<condition>
|
|
<not>
|
|
<if-empty field="appbarOpenTemplateLocation" />
|
|
</not>
|
|
</condition>
|
|
<widgets>
|
|
<platform-specific>
|
|
<html>
|
|
<html-template location="${appbarOpenTemplateLocation}" />
|
|
</html>
|
|
</platform-specific>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<platform-specific>
|
|
<html>
|
|
<html-template location="${appbarTemplateLocation}" />
|
|
</html>
|
|
</platform-specific>
|
|
</fail-widgets>
|
|
</section>
|
|
</widgets>
|
|
</section>
|
|
<section>
|
|
<condition>
|
|
<if-empty field="parameters.ajaxUpdateEvent" />
|
|
</condition>
|
|
<widgets>
|
|
<!-- render appheader: both menu widget style and ftl template style menus are supported-->
|
|
<section name="Render-App-Nav">
|
|
<condition>
|
|
<not>
|
|
<if-empty field="userLogin" />
|
|
</not>
|
|
</condition>
|
|
<widgets>
|
|
<section>
|
|
<condition>
|
|
<not>
|
|
<if-empty field="appheaderTemplate" />
|
|
</not>
|
|
</condition>
|
|
<widgets>
|
|
<platform-specific>
|
|
<html>
|
|
<html-template location="${appheaderTemplate}" />
|
|
</html>
|
|
</platform-specific>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<section>
|
|
<condition>
|
|
<not>
|
|
<if-empty field="parameters.applicationTitle" />
|
|
</not>
|
|
</condition>
|
|
<widgets>
|
|
<label style="apptitle">${parameters.applicationTitle}</label>
|
|
</widgets>
|
|
</section>
|
|
<section>
|
|
<condition>
|
|
<not>
|
|
<if-empty field="applicationMenuLocation" />
|
|
</not>
|
|
</condition>
|
|
<widgets>
|
|
<include-menu name="${applicationMenuName}" location="${applicationMenuLocation}" />
|
|
</widgets>
|
|
</section>
|
|
</fail-widgets>
|
|
</section>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<!-- better to just not include this, the CommonAppBarMenu doesn't show anything by default if the user isn't logged in, causing a funny empty menu: <include-menu name="CommonAppBarMenu" location="component://common/widget/CommonMenus.xml"/> -->
|
|
</fail-widgets>
|
|
</section>
|
|
</widgets>
|
|
</section>
|
|
<!-- render the appbar closing part -->
|
|
<section>
|
|
<condition>
|
|
<and>
|
|
<if-empty field="parameters.ajaxUpdateEvent" />
|
|
<not>
|
|
<if-empty field="appbarCloseTemplateLocation" />
|
|
</not>
|
|
</and>
|
|
</condition>
|
|
<widgets>
|
|
<platform-specific>
|
|
<html>
|
|
<html-template location="${appbarCloseTemplateLocation}" />
|
|
</html>
|
|
</platform-specific>
|
|
</widgets>
|
|
</section>
|
|
<!-- render messages -->
|
|
<platform-specific>
|
|
<html>
|
|
<html-template multi-block="true" location="${messagesTemplateLocation}" />
|
|
</html>
|
|
</platform-specific>
|
|
<!-- render content area -->
|
|
<container style="contentarea">
|
|
<decorator-section-include name="pre-body" />
|
|
<container id="column-container">
|
|
<section>
|
|
<condition>
|
|
<if-empty-section section-name="left-column" />
|
|
</condition>
|
|
<widgets>
|
|
<container id="content-main-section">
|
|
<decorator-section-include name="body" />
|
|
</container>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<container style="left">
|
|
<decorator-section-include name="left-column" />
|
|
</container>
|
|
<container id="content-main-section" style="leftonly">
|
|
<container style="no-clear" id="centerdiv">
|
|
<decorator-section-include name="body" />
|
|
</container>
|
|
</container>
|
|
</fail-widgets>
|
|
</section>
|
|
<container style="clear"></container>
|
|
</container>
|
|
</container>
|
|
<section>
|
|
<condition>
|
|
<if-empty field="parameters.ajaxUpdateEvent" />
|
|
</condition>
|
|
<widgets>
|
|
<!-- render footer -->
|
|
<section name="Render-Footer">
|
|
<condition>
|
|
<if-empty field="applicationFooterTemplate" />
|
|
</condition>
|
|
<widgets>
|
|
<platform-specific>
|
|
<html>
|
|
<html-template location="${footerTemplateLocation}" />
|
|
</html>
|
|
</platform-specific>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<platform-specific>
|
|
<html>
|
|
<html-template location="${applicationFooterTemplate}" />
|
|
</html>
|
|
</platform-specific>
|
|
</fail-widgets>
|
|
</section>
|
|
</widgets>
|
|
</section>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<!-- Global decorator for Lookup pop-up windows or layered CSS -->
|
|
<screen name="LookupDecorator">
|
|
<section>
|
|
<condition>
|
|
<not><if-compare operator="equals" value="Y" field="parameters.ajaxLookup"/></not>
|
|
</condition>
|
|
<widgets>
|
|
<section>
|
|
<actions>
|
|
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<service service-name="getUserPreferenceGroup" result-map="prefResult">
|
|
<field-map field-name="userPrefGroupTypeId" value="GLOBAL_PREFERENCES"/>
|
|
</service>
|
|
<set field="userPreferences" from-field="prefResult.userPrefMap" global="true"/>
|
|
|
|
<property-map resource="general" map-name="generalProperties" global="true"/>
|
|
<set field="defaultOrganizationPartyId" from-field="userPreferences.ORGANIZATION_PARTY" global="true"/>
|
|
|
|
<set field="messagesTemplateLocation" from-field="layoutSettings.VT_MSG_TMPLT_LOC" default-value="component://common-theme/template/includes/Messages.ftl"/>
|
|
<set field="layoutSettings.styleSheets[]" value="/common/js/jquery/plugins/featherlight/featherlight-1.7.13.min.css" global="true"/>
|
|
<set field="layoutSettings.javaScripts[+0]" value="/common/js/jquery/plugins/featherlight/featherlight-1.7.13.min.js" global="true"/>
|
|
<set field="layoutSettings.javaScripts[+0]" value="/common/js/node_modules/jquery-ui-dist/jquery-ui.min.js" global="true"/>
|
|
<set field="layoutSettings.javaScripts[+0]" value="/common/js/node_modules/jquery-validation/dist/jquery.validate.min.js"/>
|
|
<set field="layoutSettings.javaScripts[+0]" value="/common/js/node_modules/jquery.browser/dist/jquery.browser.min.js" global="true"/>
|
|
<set field="layoutSettings.javaScripts[+0]" value="/common/js/node_modules/jquery-migrate/dist/jquery-migrate.min.js" global="true"/>
|
|
<set field="layoutSettings.javaScripts[+0]" value="/common/js/node_modules/jquery/dist/jquery.min.js" global="true"/>
|
|
<set field="layoutSettings.javaScripts[+0]" value="/common/js/node_modules/node_modules/dompurify/dist/purify.min.js" global="true"/>
|
|
<set field="layoutSettings.javaScripts[]" value="/common/js/util/OfbizUtil.js" global="true"/>
|
|
</actions>
|
|
<widgets>
|
|
<section>
|
|
<condition>
|
|
<if-compare value="layer" operator="not-equals" field="parameters.presentation"/>
|
|
</condition>
|
|
<widgets>
|
|
<platform-specific><html><html-template location="component://common-theme/template/includes/Lookup.ftl" /></html></platform-specific>
|
|
</widgets>
|
|
</section>
|
|
<platform-specific><html><html-template location="${messagesTemplateLocation}"/></html></platform-specific>
|
|
<section>
|
|
<condition>
|
|
<not><if-empty-section section-name="body"/></not>
|
|
</condition>
|
|
<widgets>
|
|
<decorator-section-include name="body"/>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<screenlet title="${title}" id="findScreenlet" collapsible="true" padded="false">
|
|
<container id="search-options">
|
|
<decorator-section-include name="search-options"/>
|
|
</container>
|
|
</screenlet>
|
|
<screenlet>
|
|
<container id="search-results">
|
|
<decorator-section-include name="search-results"/>
|
|
</container>
|
|
</screenlet>
|
|
</fail-widgets>
|
|
</section>
|
|
<section>
|
|
<condition>
|
|
<if-compare value="layer" operator="not-equals" field="parameters.presentation"/>
|
|
</condition>
|
|
<widgets>
|
|
<platform-specific><html><html-template location="component://common-theme/template/includes/LookupFooter.ftl"/></html></platform-specific>
|
|
</widgets>
|
|
</section>
|
|
</widgets>
|
|
</section>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<section>
|
|
<actions>
|
|
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<set field="searchType" from-field="parameters.searchType" default-value="${searchType}"/>
|
|
<set field="autocompleterViewSize" from-field="parameters.autocompleterViewSize"
|
|
default-value="${groovy: modelTheme.getAutocompleterDefaultViewSize()}"/>
|
|
<script location="component://common/groovyScripts/FindAutocompleteOptions.groovy"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="AjaxGlobalDecorator">
|
|
<decorator-section name="body">
|
|
<platform-specific>
|
|
<html>
|
|
<html-template location="component://common-theme/template/includes/AjaxAutocompleteOptions.ftl" />
|
|
</html>
|
|
</platform-specific>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</fail-widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<!-- Global decorator for Shortcut pop-up windows or layered CSS on webapp overview-->
|
|
<screen name="ShortcutDecorator">
|
|
<section>
|
|
<actions>
|
|
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<service service-name="getUserPreferenceGroup" result-map="prefResult">
|
|
<field-map field-name="userPrefGroupTypeId" value="GLOBAL_PREFERENCES"/>
|
|
</service>
|
|
<set field="userPreferences" from-field="prefResult.userPrefMap" global="true"/>
|
|
|
|
<property-map resource="general" map-name="generalProperties" global="true"/>
|
|
<set field="defaultOrganizationPartyId" from-field="userPreferences.ORGANIZATION_PARTY" global="true"/>
|
|
|
|
<set field="messagesTemplateLocation" from-field="layoutSettings.VT_MSG_TMPLT_LOC" default-value="component://common-theme/template/includes/Messages.ftl"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-section-include name="body"/>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<!-- Simple decorator (no application and menu bars); it can be used:
|
|
* for printer friendly html screens (no logo and no application bar, header and footer); a print button is also available at the top of the screen
|
|
* for simple PDF report (a simple header with the logo/date is rendered and a footer with page numbers)
|
|
-->
|
|
<screen name="SimpleDecorator">
|
|
<section>
|
|
<actions>
|
|
<!-- The default (global) java scripts -->
|
|
<!-- jQuery part -->
|
|
<!-- Load available JS Language Files -->
|
|
<set field="layoutSettings.javaScripts[+0]" value="${groovy: org.apache.ofbiz.common.JsLanguageFilesMapping.Validation.getFilePath(initialLocaleComplete)}" global="true"/>
|
|
|
|
<set field="layoutSettings.javaScripts[+0]" value="/common/js/node_modules/jquery-ui-dist/jquery-ui.min.js" global="true"/>
|
|
<set field="layoutSettings.javaScripts[+0]" value="/common/js/node_modules/jquery-validation/dist/jquery.validate.min.js" global="true"/>
|
|
<set field="layoutSettings.javaScripts[+0]" value="/common/js/node_modules/jquery.browser/dist/jquery.browser.min.js" global="true"/>
|
|
<set field="layoutSettings.javaScripts[+0]" value="/common/js/node_modules/jquery-migrate/dist/jquery-migrate.min.js" global="true" />
|
|
<set field="layoutSettings.javaScripts[+0]" value="/common/js/node_modules/jquery/dist/jquery.min.js" global="true"/>
|
|
<set field="layoutSettings.javaScripts[+0]" value="/common/js/node_modules/node_modules/dompurify/dist/purify.min.js" global="true"/>
|
|
<!-- jQuery CSSs -->
|
|
<set field="layoutSettings.styleSheets[+0]" value="/common/js/node_modules/jquery-ui-dist/jquery-ui.min.css" global="true"/>
|
|
|
|
<set field="layoutSettings.javaScripts[]" value="/common/js/util/OfbizUtil.js" global="true"/>
|
|
<set field="layoutSettings.javaScripts[]" value="/common/js/util/fieldlookup.js" global="true"/>
|
|
<!-- The default (global) shortcut icon -->
|
|
<set field="layoutSettings.shortcutIcon" value="/images/favicon" global="true"/>
|
|
<!-- The settings below are used for xsl-fo screens -->
|
|
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<set field="organizationPartyId" from-field="parameters.organizationPartyId" default-value="${userPreferences.ORGANIZATION_PARTY}" global="true" to-scope="user"/>
|
|
<entity-one entity-name="PartyNameView" value-field="currentOrganization">
|
|
<field-map field-name="partyId" from-field="organizationPartyId"/>
|
|
</entity-one>
|
|
<set field="logoImageUrl" value="/images/ofbiz_logo.png"/>
|
|
<!--<set field="defaultFontFamily" value="Arial"/>-->
|
|
</actions>
|
|
<widgets>
|
|
<!-- render header -->
|
|
<platform-specific>
|
|
<html><html-template location="component://common-theme/template/includes/Simple.ftl"/></html>
|
|
<xsl-fo><html-template location="component://common-theme/template/includes/Simple.fo.ftl"/></xsl-fo>
|
|
<xml><html-template location="component://common-theme/template/includes/MinimalDecorator.ftl"/></xml>
|
|
<text><html-template location="component://common-theme/template/includes/MinimalDecorator.ftl"/></text>
|
|
<csv><html-template location="component://common-theme/template/includes/MinimalDecorator.ftl"/></csv>
|
|
<xls><html-template location="component://common-theme/template/includes/Simple.xls.ftl"/></xls>
|
|
</platform-specific>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<!-- fo decorator for pdf documents (invoices, sales orders, purchase orders etc...). -->
|
|
<screen name="FoReportDecorator">
|
|
<section>
|
|
<actions>
|
|
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<set field="logoImageUrl" value="/images/ofbiz_logo.png" global="true"/>
|
|
<property-to-field resource="fop.properties" field="defaultFontFamily" property="fop.font.family" default="NotoSans"/>
|
|
</actions>
|
|
<widgets>
|
|
<platform-specific><xsl-fo><html-template location="component://common-theme/template/includes/ReportTemplate.fo.ftl"/></xsl-fo></platform-specific>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<!-- Decorator for xsl-fo rendering -->
|
|
<screen name="GlobalFoDecorator">
|
|
<section>
|
|
<actions>
|
|
<set field="layoutSettings.commonHeaderImageUrl" value="/images/ofbiz_logo.png"/>
|
|
</actions>
|
|
<widgets>
|
|
<platform-specific>
|
|
<xsl-fo>
|
|
<html-template location="component://common-theme/template/includes/fo/Start.fo.ftl"/>
|
|
<html-template location="component://common-theme/template/includes/fo/BasicHeader.fo.ftl"/>
|
|
<html-template location="component://common-theme/template/includes/fo/BasicFooter.fo.ftl"/>
|
|
</xsl-fo>
|
|
</platform-specific>
|
|
<decorator-section-include name="body"/>
|
|
<platform-specific><xsl-fo><html-template location="component://common-theme/template/includes/fo/End.fo.ftl"/></xsl-fo></platform-specific>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<!-- Default "error" page for XSL-FO based output. -->
|
|
<screen name="FoError">
|
|
<section>
|
|
<actions>
|
|
<set field="logoImageUrl" value="/images/ofbiz_logo.png"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<!-- <platform-specific><xsl-fo><html-template location="component://common-theme/template/Error.fo.ftl"/></xsl-fo></platform-specific> -->
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="login">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleLogin" />
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<actions>
|
|
<set field="loginTemplateLocation" from-field="layoutSettings.VT_LOGIN_TMPLT_LOC" default-value="component://common-theme/template/Login.ftl"/>
|
|
</actions>
|
|
<widgets />
|
|
</section>
|
|
<platform-specific>
|
|
<html><html-template location="${loginTemplateLocation}"/></html>
|
|
</platform-specific>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="impersonated">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleImpersonated" />
|
|
<entity-condition list="impersonated" entity-name="UserLoginHistory" filter-by-date="true">
|
|
<condition-list>
|
|
<condition-list>
|
|
<condition-expr field-name="userLoginId" from-field="userLogin.userLoginId"/>
|
|
<condition-expr field-name="originUserLoginId" operator="not-equals" from-field="nullField"/>
|
|
</condition-list>
|
|
</condition-list>
|
|
<select-field field-name="originUserLoginId"/>
|
|
<select-field field-name="fromDate"/>
|
|
<order-by field-name="-fromDate"/>
|
|
</entity-condition>
|
|
<set field="impersonator" from-field="impersonated[0].originUserLoginId"/>
|
|
<set field="impersonationFromDate" from-field="impersonated[0].fromDate"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<actions>
|
|
<set field="impersonatedTemplateLocation" from-field="layoutSettings.VT_IMPERSO_TMPLT_LOC" default-value="component://common-theme/template/Impersonated.ftl"/>
|
|
</actions>
|
|
<widgets />
|
|
</section>
|
|
<platform-specific>
|
|
<html><html-template multi-block="true" location="${impersonatedTemplateLocation}"/></html>
|
|
</platform-specific>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="ajaxNotLoggedIn">
|
|
<section>
|
|
<widgets>
|
|
<decorator-screen name="AjaxGlobalDecorator">
|
|
<decorator-section name="body">
|
|
<label style="message" text="${uiLabelMap.CommonSessionTimeoutPleaseLogIn}"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="requirePasswordChange">
|
|
<section>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<actions>
|
|
<set field="changePasswordTemplateLocation" from-field="layoutSettings.VT_CHPWD_TMPLT_LOC" default-value="component://common-theme/template/ChangePassword.ftl"/>
|
|
</actions>
|
|
<widgets />
|
|
</section>
|
|
<platform-specific>
|
|
<html><html-template location="${changePasswordTemplateLocation}"/></html>
|
|
</platform-specific>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="forgotPassword">
|
|
<section>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<actions>
|
|
<set field="forgotPasswordTemplateLocation" from-field="layoutSettings.VT_FGPWD_TMPLT_LOC" default-value="component://common-theme/template/ForgotPassword.ftl"/>
|
|
<set field="forgotPasswordTarget" value="${groovy: 'forgotPassword' + (parameters.token?'Reset':'')}"/>
|
|
</actions>
|
|
<widgets>
|
|
<section>
|
|
<condition>
|
|
<not><if-empty field="parameters.GET_PASSWORD_HINT"/></not>
|
|
</condition>
|
|
<actions>
|
|
<set field="userLoginId" from-field="parameters.USERNAME"/>
|
|
</actions>
|
|
</section>
|
|
<platform-specific>
|
|
<html><html-template location="${forgotPasswordTemplateLocation}"/></html>
|
|
</platform-specific>
|
|
</widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="EventMessages">
|
|
<section>
|
|
<widgets>
|
|
<platform-specific><html><html-template multi-block="true" location="component://common-theme/template/includes/Messages.ftl"/></html></platform-specific>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="FindScreenDecorator">
|
|
<section>
|
|
<widgets>
|
|
<container id="${screen:id(screenStack)}">
|
|
<section>
|
|
<condition>
|
|
<if-empty field="titleProperty"/>
|
|
</condition>
|
|
<widgets>
|
|
<container style="page-title"><label text="${title}"></label></container>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<container style="page-title"><label text="${uiLabelMap[titleProperty]}"></label></container>
|
|
</fail-widgets>
|
|
</section>
|
|
<decorator-section-include name="menu-bar"/>
|
|
<container style="clear"/>
|
|
<screenlet id="searchOptions" name="findScreenlet" collapsible="true" title="${uiLabelMap.CommonSearchOptions}">
|
|
<container id="search-options">
|
|
<decorator-section-include name="search-options" />
|
|
</container>
|
|
</screenlet>
|
|
<screenlet padded="false">
|
|
<label style="h3" text="${uiLabelMap.CommonSearchResults}"/>
|
|
<container id="search-results">
|
|
<decorator-section-include name="search-results"/>
|
|
</container>
|
|
</screenlet>
|
|
</container>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="DetailScreenDecorator">
|
|
<section>
|
|
<actions>
|
|
<set field="detailAreaId" value="${groovy:UUID.randomUUID().toString()}" global="true"/>
|
|
</actions>
|
|
<widgets>
|
|
<section>
|
|
<condition>
|
|
<if-empty field="titleProperty"/>
|
|
</condition>
|
|
<widgets>
|
|
<container style="page-title"><label text="${title}"></label></container>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<container style="page-title"><label text="${uiLabelMap[titleProperty]}"></label></container>
|
|
</fail-widgets>
|
|
</section>
|
|
<container style="clear"/>
|
|
<container style="menu-bar">
|
|
<decorator-section-include name="menu-bar"/>
|
|
</container>
|
|
<container style="breadcrumbs">
|
|
<decorator-section-include name="breadcrumbs"/>
|
|
</container>
|
|
<container style="summary">
|
|
<decorator-section-include name="summary"/>
|
|
</container>
|
|
<container style="actions">
|
|
<decorator-section-include name="actions"/>
|
|
</container>
|
|
<container style="tab-bar">
|
|
<decorator-section-include name="tab-bar"/>
|
|
</container>
|
|
<container style="details" id="${detailAreaId}">
|
|
<decorator-section-include name="details"/>
|
|
</container>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="EmbeddedDecorator">
|
|
<section name="embedded">
|
|
<widgets>
|
|
<container style="embeddedScreen" id="${screen:id(screenStack)}">
|
|
<section>
|
|
<condition>
|
|
<not><if-empty-section section-name="actions"/></not>
|
|
</condition>
|
|
<widgets>
|
|
<container style="actions">
|
|
<decorator-section-include name="actions"/>
|
|
</container>
|
|
</widgets>
|
|
</section>
|
|
<section>
|
|
<condition>
|
|
<not><if-empty-section section-name="menu-bar"/></not>
|
|
</condition>
|
|
<widgets>
|
|
<container style="menu-bar">
|
|
<decorator-section-include name="menu-bar"/>
|
|
</container>
|
|
</widgets>
|
|
</section>
|
|
<section>
|
|
<condition>
|
|
<not><if-empty-section section-name="single"/></not>
|
|
</condition>
|
|
<widgets>
|
|
<container style="single">
|
|
<decorator-section-include name="single"/>
|
|
</container>
|
|
</widgets>
|
|
</section>
|
|
<section>
|
|
<condition>
|
|
<not><if-empty-section section-name="content"/></not>
|
|
</condition>
|
|
<widgets>
|
|
<container style="content">
|
|
<decorator-section-include name="content"/>
|
|
</container>
|
|
</widgets>
|
|
</section>
|
|
<section>
|
|
<condition>
|
|
<not><if-empty-section section-name="list"/></not>
|
|
</condition>
|
|
<widgets>
|
|
<container style="list">
|
|
<decorator-section-include name="list"/>
|
|
</container>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="help">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleHelp"/>
|
|
<property-map resource="CommonHelpUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<set field="helpText" value="${uiLabelMap[parameters.topic]}" default-value="${uiLabelMap.HelpNotFound}"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="SimpleDecorator">
|
|
<decorator-section name="body">
|
|
<label style="h1">${uiLabelMap.PageTitleHelp}</label>
|
|
<label style="h3">${helpText}</label>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="viewBlocked">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleViewBlocked"/>
|
|
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
|
</actions>
|
|
<widgets>
|
|
<platform-specific><html><html-template location="component://common-theme/template/ViewBlocked.ftl"/></html></platform-specific>
|
|
<platform-specific><html><html-template multi-block="true" location="component://common-theme/template/includes/Messages.ftl"/></html></platform-specific>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="geoChart">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleCommonGeoLocation"/>
|
|
</actions>
|
|
<widgets>
|
|
<platform-specific>
|
|
<html><html-template multi-block="true" location="component://common-theme/template/includes/GeoLocation.ftl"/></html>
|
|
</platform-specific>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
</screens>
|