Files
ofbiz-plugins/googlebase/widget/GoogleBaseScreens.xml
T
Jacques Le Roux 97bb3073c9 2d part and end of an effort to remove trailing spaces
[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)

Of course this effort to remove trailing spaces has no functional implications.

Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {

So these changes are also in this commit, should not be a problem anyway.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@763175 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 10:54:51 +00:00

244 lines
13 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="main-decorator">
<section>
<actions>
<property-map resource="GoogleBaseUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="WorkEffortUiLabels" map-name="uiLabelMap" global="true"/>
<set field="activeApp" value="googlebase" global="true"/>
<set field="layoutSettings.companyName" from-field="uiLabelMap.GoogleBaseCompanyName" global="true"/>
<set field="layoutSettings.companySubtitle" from-field="uiLabelMap.GoogleBaseApplication" global="true"/>
<set field="applicationMenuName" value="GoogleBaseAppBar" global="true"/>
<set field="applicationMenuLocation" value="component://googlebase/widget/GoogleBaseMenus.xml" global="true"/>
<set field="applicationTitle" value="${uiLabelMap.GoogleBaseApplication}" global="true"/>
</actions>
<widgets>
<include-screen name="ApplicationDecorator" location="component://commonext/widget/CommonScreens.xml"/>
</widgets>
</section>
</screen>
<screen name="CommonFindDecorator">
<section>
<actions>
<set field="headerItem" value="googlebase"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<condition>
<if-has-permission permission="GOOGLEBASE" action="_VIEW"/>
</condition>
<widgets>
<decorator-section-include name="body"/>
</widgets>
<fail-widgets>
<label style="h3">${uiLabelMap.GoogleBaseViewPermissionError}</label>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="CommonProductDecorator">
<section>
<actions>
<property-map resource="PartyUiLabels" map-name="uiLabelMap" global="true"/>
<set field="productId" from-field="parameters.productId"/>
<entity-one entity-name="Product" value-field="product"/>
<set field="productName" from-field="product.productName"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<!-- do check for GOOGLEBASE, _VIEW permission -->
<condition>
<if-has-permission permission="GOOGLEBASE" action="_VIEW"/>
</condition>
<widgets>
<section>
<condition><not><if-empty field="product"/></not></condition>
<widgets>
<include-menu name="ProductTabBar" location="component://product/widget/catalog/Menus.xml"/>
<platform-specific>
<html><html-template location="component://product/webapp/catalog/product/ProductTabBar.ftl"/></html>
</platform-specific>
<container>
<label style="h1">${uiLabelMap.${labelTitleProperty}} ${uiLabelMap.CommonFor}: ${product.internalName} [${uiLabelMap.CommonId}:${productId}] ${${extraFunctionName}}</label>
<image src="${product.smallImageUrl}" height="40" width="40" url-mode="content"/>
</container>
<!-- add Create Product and View Product (in ecommerce) links -->
<container style="button-bar">
<link target="EditProduct" text="${uiLabelMap.ProductNewProduct}" style="buttontext"/>
<link target="CreateVirtualWithVariantsForm" text="${uiLabelMap.ProductNewVirtualProduct}" style="buttontext"/>
<link target="/ecommerce/control/product" url-mode="inter-app" text="${uiLabelMap.ProductProductPage}" style="buttontext">
<parameter param-name="product_id" from-field="productId"/>
</link>
<link target="ProductBarCode.pdf" target-window="_blank" text="${uiLabelMap.ProductBarcode}" style="buttontext">
<parameter param-name="productId"/>
<parameter param-name="productName"/>
</link>
</container>
</widgets>
</section>
<decorator-section-include name="body"/>
</widgets>
<fail-widgets>
<label style="h3">${uiLabelMap.ProductCatalogViewPermissionError}</label>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="advancedsearch">
<section>
<actions>
<set field="titleProperty" value="PageTitleAdvancedSearch"/>
<entity-condition entity-name="ProductCategory" list="productCategories">
<condition-expr field-name="showInSelect" operator="not-equals" value="N"/>
<order-by field-name="description"/>
</entity-condition>
<entity-condition entity-name="ProdCatalog" list="prodCatalogs">
<order-by field-name="catalogName"/>
</entity-condition>
<script location="component://product/webapp/catalog/WEB-INF/actions/find/advancedsearchoptions.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonFindDecorator">
<decorator-section name="body">
<platform-specific>
<html><html-template location="component://product/webapp/catalog/find/advancedsearch.ftl"/></html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="keywordsearch">
<section>
<actions>
<set field="titleProperty" value="PageTitleSearchResults"/>
<script location="component://product/webapp/catalog/WEB-INF/actions/find/keywordsearch.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonFindDecorator">
<decorator-section name="body">
<platform-specific>
<html><html-template location="component://product/webapp/catalog/find/keywordsearch.ftl"/></html>
</platform-specific>
<platform-specific>
<html><html-template location="component://googlebase/webapp/googlebase/find/googleExportLink.ftl"/></html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ProductsExportToGoogle">
<section>
<actions>
<set field="headerItem" value="googlebase"/>
<set field="titleProperty" value="PageTitleGoogleBaseProductsExportToGoogle"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.PageTitleGoogleBaseProductsExportToGoogle}"></label>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="ProductsExportToGoogle" location="component://googlebase/widget/GoogleBaseForms.xml"/>
</widgets>
</section>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditProduct">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditProduct"/>
<set field="tabButtonItem" value="EditProduct"/>
<set field="labelTitleProperty" value="ProductProduct"/>
<set field="productId" from-field="parameters.productId"/>
<entity-one entity-name="Product" value-field="product"/>
</actions>
<widgets>
<decorator-screen name="CommonProductDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.PageTitleEditProduct}"/>
</container>
</container>
<container style="screenlet-body">
<section>
<widgets>
<include-form name="EditProduct" location="component://product/webapp/catalog/product/ProductForms.xml"/>
</widgets>
</section>
</container>
</container>
<!-- include the duplicate product form template -->
<container style="screenlet">
<container style="screenlet-title-bar">
<container style="h3">
<label text="${uiLabelMap.ProductDuplicateProduct}"/>
</container>
</container>
<container style="screenlet-body">
<include-form name="EditProductDup" location="component://product/webapp/catalog/product/ProductForms.xml"/>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>