blob: c86896bd119ed8ce20cfd46417a5661482696ba5 [file] [log] [blame]
<?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">
<screen name="webPosMainDecorator">
<section>
<actions>
<set field="MainColumnStyle" value="rightonly"/>
<set field="layoutSettings.javaScripts[+0]" value="/images/prototypejs/scriptaculous.js" global="true"/>
<set field="layoutSettings.javaScripts[+0]" value="/images/prototypejs/effects.js" global="true"/>
<set field="layoutSettings.javaScripts[]" value="/images/prototypejs/controls.js" global="true"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<widgets>
<decorator-section-include name="body"/>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="Main">
<section>
<actions>
<set field="titleProperty" value="PageTitleMain"/>
<set field="rightbarScreenName" value="rightbar"/>
</actions>
<widgets>
<include-screen name="SearchProducts"/>
</widgets>
</section>
</screen>
<screen name="Manager">
<section>
<actions>
<set field="titleProperty" value="PageTitleMain"/>
<set field="rightbarScreenName" value="rightbar_manager"/>
</actions>
<widgets>
<include-screen name="SearchProducts"/>
</widgets>
</section>
</screen>
<screen name="Payment">
<section>
<actions>
<set field="titleProperty" value="PageTitleMain"/>
<set field="rightbarScreenName" value="rightbar_payment"/>
</actions>
<widgets>
<include-screen name="SearchProducts"/>
</widgets>
</section>
</screen>
<screen name="Promo">
<section>
<actions>
<set field="titleProperty" value="PageTitleMain"/>
<set field="rightbarScreenName" value="rightbar_promo"/>
</actions>
<widgets>
<include-screen name="SearchProducts"/>
</widgets>
</section>
</screen>
<screen name="SearchProducts">
<section>
<actions>
<set field="layoutSettings.javaScripts[]" value="/webpos/images/js/SearchProducts.js" global="true"/>
</actions>
<widgets>
<decorator-screen name="webPosMainDecorator">
<decorator-section name="body">
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.WebPosCart}"/>
</container>
</container>
<container id="SearchProducts">
<platform-specific><html><html-template location="component://webpos/webapp/webpos/search/SearchProducts.ftl"/></html></platform-specific>
</container>
<container id="CartScreen">
<include-screen name="ShowCart"/>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ShowCart">
<section>
<actions>
<!-- base/top/specific map first, then more common map added for shared labels -->
<property-map resource="WebPosUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="ContentUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="PartyUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
<property-to-field resource="order" property="orderPreference.giftEnable" field="giftEnable" default="Y"/>
<set field="titleProperty" value="PageTitleShoppingCart"/>
<set field="headerItem" value="Shopping Cart"/>
<script location="component://webpos/webapp/webpos/WEB-INF/actions/cart/ShowCart.groovy"/>
</actions>
<widgets>
<section>
<condition>
<not><if-empty field="shoppingCart"/></not>
</condition>
<widgets>
<container>
<platform-specific><html><html-template location="component://webpos/webapp/webpos/cart/ShowCart.ftl"/></html></platform-specific>
</container>
</widgets>
</section>
</widgets>
</section>
</screen>
<screen name="MicroCart">
<section>
<actions>
<script location="component://webpos/webapp/webpos/WEB-INF/actions/cart/MicroCart.groovy"/>
</actions>
<widgets>
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.PageTitleMain}"/>
</container>
</container>
<container id="MicroCart">
<platform-specific><html><html-template location="component://webpos/webapp/webpos/cart/MicroCart.ftl"/></html></platform-specific>
</container>
</container>
</widgets>
</section>
</screen>
</screens>