framework/webtools/widget/TempExprScreens.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is subject to the terms and conditions defined in the
files 'LICENSE' and 'NOTICE', which are part of this source
code package.
-->
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
<!-- SCIPIO: NOTE: The old parameters.tempExprDecoratorLocation pattern that existed here has been supplanted
by the decorator default-fallback-location pattern for parameters.mainDecoratorLocation (see CommonScreens.xml). -->
<screen name="FindTemporalExpression">
<section>
<actions>
<set field="tabMenuItem" value="findExpression"/>
<set field="titleProperty" value="${titleProperty}" default-value="TemporalExpressionFind"/>
<!-- sidebar additional condition -->
<condition-to-field field="commonSideBarMenu.condList[]" type="Boolean">
<if-service-permission service-name="tempExprPermissionCheck" main-action="CREATE"/>
</condition-to-field>
</actions>
<widgets>
<decorator-screen name="TemporalExpressionDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<condition>
<if-service-permission service-name="tempExprPermissionCheck" main-action="CREATE"/>
</condition>
<widgets>
<container style="button-bar">
<link target="editTemporalExpression" text="${uiLabelMap.CommonCreate}" style="${styles.link_nav} ${styles.action_add}"/>
</container>
</widgets>
</section>
<decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="search-options">
<include-form name="FindTemporalExpression" location="component://webtools/widget/tempExprForms.xml"/>
</decorator-section>
<decorator-section name="search-results">
<include-form name="ListTemporalExpressions" location="component://webtools/widget/tempExprForms.xml"/>
</decorator-section>
</decorator-screen>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditTemporalExpression">
<section>
<actions>
<set field="tabMenuItem" value="editExpression"/>
<set field="titleProperty" value="${titleProperty}" default-value="TemporalExpressionMaintenance"/>
<entity-one entity-name="TemporalExpression" value-field="temporalExpression"/>
<set field="fromTempExprId" from-field="parameters.tempExprId"/>
<entity-condition entity-name="TemporalExpressionChild" list="childExpressionList">
<condition-expr field-name="fromTempExprId" from-field="fromTempExprId"/>
</entity-condition>
</actions>
<widgets>
<decorator-screen name="TemporalExpressionDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<include-menu name="TempExprTabBar" location="component://webtools/widget/Menus.xml"/>
<platform-specific>
<html><html-template location="component://webtools/webapp/webtools/tempexpr/tempExprMaint.ftl"/></html>
</platform-specific>
<section>
<condition>
<not><if-empty field="childExpressionList"/></not>
</condition>
<widgets>
<include-form name="ListChildExpressions" location="component://webtools/widget/tempExprForms.xml"/>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>