applications/shop/widget/ShoppingListScreens.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">
<screen name="editShoppingList">
<section>
<actions>
<set field="rightbarScreenName" value="rightbar"/>
<set field="MainColumnStyle" value="rightonly"/>
<set field="titleProperty" value="PageTitleShoppingList"/>
<set field="activeMainMenuItem" value="Shopping List"/>
<script location="component://shop/webapp/shop/WEB-INF/actions/shoppinglist/EditShoppingList.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonShopAppDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<condition>
<if-true field="userHasAccount" />
</condition>
<widgets>
<platform-specific><html><html-template location="component://shop/webapp/shop/shoppinglist/editShoppingList.ftl"/></html></platform-specific>
</widgets>
<fail-widgets>
<label style="common-msg-error-perm" text="${uiLabelMap.ShopViewPermissionError}"/>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="showShoppingList">
<section>
<condition>
<if-empty field="parameters.mainSubmitted"/>
</condition>
<actions>
<property-map resource="ShopUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="EcommerceUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<script location="component://shop/webapp/shop/WEB-INF/actions/shoppinglist/EditShoppingList.groovy"/>
</actions>
<widgets>
<section>
<condition>
<if-true field="userHasAccount" />
</condition>
<widgets>
<platform-specific><html><html-template location="component://shop/webapp/shop/shoppinglist/editShoppingList.ftl"/></html></platform-specific>
</widgets>
<fail-widgets>
<label style="p" text="${uiLabelMap.ShopViewPermissionError}"/>
</fail-widgets>
</section>
</widgets>
</section>
</screen>
</screens>