git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1044503 13f79535-47bb-0310-9956-ffa450edef68
159 lines
6.4 KiB
XML
159 lines
6.4 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"
|
|
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
|
|
|
|
<screen name="webPosMainDecorator">
|
|
<section>
|
|
<actions>
|
|
<set field="MainColumnStyle" value="rightonly"/>
|
|
</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">
|
|
<screenlet title="${uiLabelMap.WebPosCart}">
|
|
<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>
|
|
</screenlet>
|
|
</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>
|
|
<screenlet title="${uiLabelMap.PageTitleMain}">
|
|
<container id="MicroCart">
|
|
<platform-specific><html><html-template location="component://webpos/webapp/webpos/cart/MicroCart.ftl"/></html></platform-specific>
|
|
</container>
|
|
</screenlet>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
</screens>
|