| <?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="CommonCategoryDecorator"> |
| <section> |
| <actions> |
| <set field="leftbarScreenName" value="leftbar"/> |
| <set field="leftbarScreenLocation" value="component://product/widget/catalog/CommonScreens.xml"/> |
| <set field="MainColumnStyle" value="leftonly"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> |
| <decorator-section name="body"> |
| <section> |
| <!-- do check for CATALOG, _VIEW permission --> |
| <condition> |
| <if-has-permission permission="CATALOG" action="_VIEW"/> |
| </condition> |
| <widgets> |
| <section> |
| <condition><not><if-empty field="productCategoryId"/></not></condition> |
| <widgets> |
| <include-menu name="CategoryTabBar" location="component://product/widget/catalog/Menus.xml"/> |
| <container> |
| <label style="h1">${uiLabelMap[labelTitleProperty]} ${uiLabelMap.CommonFor}: ${productCategory.description} [${uiLabelMap.CommonId}:${productCategoryId}] ${${extraFunctionName}}</label> |
| </container> |
| |
| <container> |
| <link target="EditCategory" text="${uiLabelMap.ProductNewCategory}" style="buttontext"/> |
| <link target="createProductInCategoryStart" text="${uiLabelMap.ProductCreateProductInCategory}" style="buttontext"> |
| <parameter param-name="productCategoryId"/> |
| </link> |
| <link target="advancedsearch" text="${uiLabelMap.ProductSearchInCategory}" style="buttontext"> |
| <parameter param-name="SEARCH_CATEGORY_ID" from-field="productCategoryId"/> |
| </link> |
| <link target="/ecommerce/control/category" url-mode="plain" text="${uiLabelMap.ProductCategoryPage}" style="buttontext"> |
| <parameter param-name="category_id" from-field="productCategoryId"/> |
| </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="EditCategory"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditProductCategories"/> |
| <set field="headerItem" value="category"/> |
| <set field="tabButtonItem" value="EditCategory"/> |
| <set field="labelTitleProperty" value="ProductCategory"/> |
| |
| <set field="productCategoryId" from-field="parameters.productCategoryId"/> |
| <entity-one entity-name="ProductCategory" value-field="productCategory"/> |
| |
| <entity-condition entity-name="ProductCategoryType" list="productCategoryTypes"> |
| <order-by field-name="description"/> |
| </entity-condition> |
| |
| <script location="component://product/webapp/catalog/WEB-INF/actions/category/EditCategory.groovy"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonCategoryDecorator"> |
| <decorator-section name="body"> |
| <platform-specific> |
| <html><html-template location="component://product/webapp/catalog/category/EditCategory.ftl"/></html> |
| </platform-specific> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="EditCategoryContent"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditCategoryContent"/> |
| <set field="headerItem" value="category"/> |
| <set field="tabButtonItem" value="EditCategoryContent"/> |
| <set field="labelTitleProperty" value="ProductCategoryContent"/> |
| |
| <set field="productCategoryId" from-field="parameters.productCategoryId"/> |
| <entity-one entity-name="ProductCategory" value-field="productCategory"/> |
| <get-related-one value-field="productCategory" relation-name="ProductCategoryType" to-value-field="productCategoryType"/> |
| <set field="categoryContentOrderList[]" value="prodCatContentTypeId"/> |
| <get-related value-field="productCategory" relation-name="ProductCategoryContent" list="productCategoryContentList" order-by-list="categoryContentOrderList"/> |
| |
| <entity-condition entity-name="ProductCategoryType" list="productCategoryTypes"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonCategoryDecorator"> |
| <decorator-section name="body"> |
| <container style="screenlet"> |
| <container style="screenlet-title-bar"> |
| <container style="h3"> |
| <label text="${uiLabelMap.ProductUpdateCategoryContentAssoc}"/> |
| </container> |
| </container> |
| <container style="screenlet-body"> |
| <section> |
| <widgets> |
| <include-form name="UpdateCategoryContentAssoc" location="component://product/webapp/catalog/category/CategoryForms.xml"/> |
| </widgets> |
| </section> |
| </container> |
| </container> |
| |
| <container style="screenlet"> |
| <container style="screenlet-title-bar"> |
| <container style="h3"> |
| <label text="${uiLabelMap.ProductAddProductCategoryContentFromDate}"/> |
| </container> |
| </container> |
| <container style="screenlet-body"> |
| <section> |
| <widgets> |
| <include-form name="PrepareAddCategoryContentAssoc" location="component://product/webapp/catalog/category/CategoryForms.xml"/> |
| </widgets> |
| </section> |
| </container> |
| </container> |
| |
| <container style="screenlet"> |
| <container style="screenlet-title-bar"> |
| <container style="h3"> |
| <label text="${uiLabelMap.ProductAddContentCategory}"/> |
| </container> |
| </container> |
| <container style="screenlet-body"> |
| <section> |
| <widgets> |
| <include-form name="AddCategoryContentAssoc" location="component://product/webapp/catalog/category/CategoryForms.xml"/> |
| </widgets> |
| </section> |
| </container> |
| </container> |
| |
| <platform-specific> |
| <html><html-template location="component://product/webapp/catalog/category/EditCategoryContent.ftl"/></html> |
| </platform-specific> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="EditCategoryContentContent"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditCategoryContentContent"/> |
| <set field="headerItem" value="category"/> |
| <set field="tabButtonItem" value="EditCategoryContent"/> |
| <set field="labelTitleProperty" value="ProductCategoryContent"/> |
| |
| <set field="productCategoryId" from-field="parameters.productCategoryId"/> |
| <entity-one entity-name="ProductCategory" value-field="productCategory"/> |
| <entity-one entity-name="ProductCategoryContent" value-field="categoryContent"/> |
| <entity-one entity-name="Content" value-field="content"/> |
| <entity-one entity-name="ElectronicText" value-field="electronicText" auto-field-map="false"> |
| <field-map field-name="dataResourceId" from-field="content.dataResourceId"/> |
| </entity-one> |
| <set field="textDataMap.text" from-field="electronicText.textData"/> |
| <set field="textDataMap.textDataResourceId" from-field="content.dataResourceId"/> |
| <set field="contentId" from-field="content.contentId"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonCategoryDecorator"> |
| <decorator-section name="body"> |
| <section> |
| <condition><not><if-empty field="contentId"/></not></condition> |
| <widgets> |
| <link target="/content/control/gotoContent" text="${uiLabelMap.ContentContent} ${uiLabelMap.CommonPage}" url-mode="inter-app" style="buttontext"> |
| <parameter param-name="contentId"/> |
| </link> |
| </widgets> |
| </section> |
| |
| <container style="screenlet"> |
| <container style="screenlet-title-bar"> |
| <container style="h3"> |
| <label text="${uiLabelMap.ProductUpdateSimpleTextContentCategory}"/> |
| </container> |
| </container> |
| <container style="screenlet-body"> |
| <section> |
| <widgets> |
| <include-form name="EditCategoryContentSimpleText" location="component://product/webapp/catalog/category/CategoryForms.xml"/> |
| </widgets> |
| </section> |
| </container> |
| </container> |
| |
| <container style="screenlet"> |
| <container style="screenlet-title-bar"> |
| <container style="h3"> |
| <label text="${uiLabelMap.ProductListAssociatedContentInfos}"/> |
| </container> |
| </container> |
| <container style="screenlet-body"> |
| <section> |
| <widgets> |
| <include-form name="ListAssociatedContentInfos" location="component://product/webapp/catalog/product/ProductForms.xml"/> |
| </widgets> |
| </section> |
| </container> |
| </container> |
| |
| <container style="screenlet"> |
| <container style="screenlet-title-bar"> |
| <container style="h3"> |
| <label text="${uiLabelMap.ProductCreateSimpleTextContentForAlternateLocale}"/> |
| </container> |
| </container> |
| <container style="screenlet-body"> |
| <section> |
| <widgets> |
| <include-form name="CreateSimpleTextContentForAlternateLocale" location="component://product/webapp/catalog/category/CategoryForms.xml"/> |
| </widgets> |
| </section> |
| </container> |
| </container> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="EditCategoryRollup"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditCategoryRollup"/> |
| <set field="headerItem" value="category"/> |
| <set field="tabButtonItem" value="EditCategoryRollup"/> |
| <set field="labelTitleProperty" value="ProductRollup"/> |
| <set field="productCategoryId" from-field="parameters.showProductCategoryId"/> |
| |
| <entity-condition entity-name="ProductCategoryRollup" list="currentProductCategoryRollups"> |
| <condition-expr field-name="productCategoryId" from-field="productCategoryId"/> |
| <order-by field-name="sequenceNum"/> |
| </entity-condition> |
| <entity-condition entity-name="ProductCategoryRollup" list="parentProductCategoryRollups"> |
| <condition-expr field-name="parentProductCategoryId" from-field="productCategoryId"/> |
| <order-by field-name="sequenceNum"/> |
| </entity-condition> |
| |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonCategoryDecorator"> |
| <decorator-section name="body"> |
| <platform-specific> |
| <html><html-template location="component://product/webapp/catalog/category/EditCategoryRollup.ftl"/></html> |
| </platform-specific> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="EditCategoryProducts"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditCategoryProducts"/> |
| <set field="headerItem" value="category"/> |
| <set field="tabButtonItem" value="EditCategoryProducts"/> |
| <set field="labelTitleProperty" value="ProductProducts"/> |
| |
| <set field="productCategoryId" from-field="parameters.productCategoryId"/> |
| |
| <script location="component://product/webapp/catalog/WEB-INF/actions/category/EditCategoryProducts.groovy"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonCategoryDecorator"> |
| <decorator-section name="body"> |
| <platform-specific> |
| <html><html-template location="component://product/webapp/catalog/category/EditCategoryProducts.ftl"/></html> |
| </platform-specific> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="EditCategoryProdCatalogs"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditCategoryProductCatalogs"/> |
| <set field="headerItem" value="category"/> |
| <set field="tabButtonItem" value="EditCategoryProdCatalogs"/> |
| <set field="labelTitleProperty" value="ProductCatalogs"/> |
| |
| <set field="productCategoryId" from-field="parameters.productCategoryId"/> |
| <entity-one entity-name="ProductCategory" value-field="productCategory"/> |
| |
| <entity-condition entity-name="ProdCatalogCategory" list="prodCatalogCategories"> |
| <condition-expr field-name="productCategoryId" from-field="productCategoryId"/> |
| <order-by field-name="prodCatalogCategoryTypeId"/> |
| <order-by field-name="sequenceNum"/> |
| <order-by field-name="prodCatalogId"/> |
| </entity-condition> |
| |
| <entity-condition entity-name="ProdCatalog" list="prodCatalogs"> |
| <order-by field-name="catalogName"/> |
| </entity-condition> |
| <entity-condition entity-name="ProdCatalogCategoryType" list="prodCatalogCategoryTypes"> |
| <order-by field-name="description"/> |
| </entity-condition> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonCategoryDecorator"> |
| <decorator-section name="body"> |
| <platform-specific> |
| <html><html-template location="component://product/webapp/catalog/category/EditCategoryProdCatalogs.ftl"/></html> |
| </platform-specific> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="EditCategoryFeatureCats"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditCategoryFeatureCategories"/> |
| <set field="headerItem" value="category"/> |
| <set field="tabButtonItem" value="EditCategoryFeatureCats"/> |
| <set field="labelTitleProperty" value="ProductFeatureCategoriesGroups"/> |
| |
| <set field="productCategoryId" from-field="parameters.productCategoryId"/> |
| <entity-one entity-name="ProductCategory" value-field="productCategory"/> |
| |
| <entity-condition entity-name="ProductFeatureCategoryAppl" list="productFeatureCategoryAppls"> |
| <condition-expr field-name="productCategoryId" from-field="productCategoryId"/> |
| <order-by field-name="productFeatureCategoryId"/> |
| </entity-condition> |
| <entity-condition entity-name="ProductFeatureCatGrpAppl" list="productFeatureCatGrpAppls"> |
| <condition-expr field-name="productCategoryId" from-field="productCategoryId"/> |
| <order-by field-name="productFeatureGroupId"/> |
| </entity-condition> |
| |
| <entity-condition entity-name="ProductFeatureCategory" list="productFeatureCategories"> |
| <order-by field-name="description"/> |
| </entity-condition> |
| <entity-condition entity-name="ProductFeatureGroup" list="productFeatureGroups"> |
| <order-by field-name="description"/> |
| </entity-condition> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonCategoryDecorator"> |
| <decorator-section name="body"> |
| <platform-specific> |
| <html><html-template location="component://product/webapp/catalog/category/EditCategoryFeatureCats.ftl"/></html> |
| </platform-specific> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="EditCategoryParties"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditCategoryParties"/> |
| <set field="headerItem" value="category"/> |
| <set field="tabButtonItem" value="EditCategoryParties"/> |
| <set field="labelTitleProperty" value="PartyParties"/> |
| |
| <set field="productCategoryId" from-field="parameters.productCategoryId"/> |
| <entity-one entity-name="ProductCategory" value-field="productCategory"/> |
| |
| <entity-condition entity-name="ProductCategoryRole" list="productCategoryRoles"> |
| <condition-expr field-name="productCategoryId" from-field="productCategoryId"/> |
| <order-by field-name="roleTypeId"/> |
| <order-by field-name="partyId"/> |
| </entity-condition> |
| |
| <entity-condition entity-name="RoleType" list="roleTypes"> |
| <order-by field-name="description"/> |
| </entity-condition> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonCategoryDecorator"> |
| <decorator-section name="body"> |
| <platform-specific> |
| <html><html-template location="component://product/webapp/catalog/category/EditCategoryParties.ftl"/></html> |
| </platform-specific> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="EditCategoryAttributes"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditCategoryAttributes"/> |
| <set field="headerItem" value="category"/> |
| <set field="tabButtonItem" value="EditCategoryAttributes"/> |
| <set field="labelTitleProperty" value="ProductCategoryAttributes"/> |
| <set field="productCategoryId" from-field="parameters.productCategoryId"/> |
| <entity-one entity-name="ProductCategory" value-field="productCategory"/> |
| <entity-condition entity-name="ProductCategoryAttribute" list="categoryAttributes"> |
| <condition-expr field-name="productCategoryId" from-field="productCategoryId"/> |
| </entity-condition> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonCategoryDecorator"> |
| <decorator-section name="body"> |
| <container style="screenlet"> |
| <container style="screenlet-title-bar"> |
| <container style="h3"> |
| <label text="${uiLabelMap.PageTitleCreateCategoryAttributes}"></label> |
| </container> |
| </container> |
| <container style="screenlet-body"> |
| <section> |
| <widgets> |
| <include-form name="CreateProductCategoryAttribute" location="component://product/webapp/catalog/category/CategoryForms.xml"/> |
| </widgets> |
| </section> |
| </container> |
| </container> |
| <container style="screenlet"> |
| <container style="screenlet-title-bar"> |
| <container style="h3"> |
| <label text="${uiLabelMap.PageTitleEditCategoryAttributes}"/> |
| </container> |
| </container> |
| <container style="screenlet-body"> |
| <section> |
| <widgets> |
| <include-form name="EditProductCategoryAttributes" location="component://product/webapp/catalog/category/CategoryForms.xml"/> |
| </widgets> |
| </section> |
| </container> |
| </container> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| |
| <screen name="createProductInCategoryStart"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleCreateProductCategoryStart"/> |
| <set field="headerItem" value="category"/> |
| <set field="labelTitleProperty" value="ProductCreateProductInCategory"/> |
| |
| <set field="productCategoryId" from-field="parameters.productCategoryId"/> |
| <entity-one entity-name="ProductCategory" value-field="productCategory"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonCategoryDecorator"> |
| <decorator-section name="body"> |
| <platform-specific> |
| <html><html-template location="component://product/webapp/catalog/category/createProductInCategoryStart.ftl"/></html> |
| </platform-specific> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="CreateProductInCategoryCheckExisting"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleCreateProductCategoryCheckExisting"/> |
| <set field="headerItem" value="category"/> |
| <set field="labelTitleProperty" value="ProductCreateProductInCategory"/> |
| |
| <set field="productCategoryId" from-field="parameters.productCategoryId"/> |
| <entity-one entity-name="ProductCategory" value-field="productCategory"/> |
| |
| <script location="component://product/webapp/catalog/WEB-INF/actions/category/CreateProductInCategoryCheckExisting.groovy"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonCategoryDecorator"> |
| <decorator-section name="body"> |
| <platform-specific> |
| <html><html-template location="component://product/webapp/catalog/category/createProductInCategoryCheckExisting.ftl"/></html> |
| </platform-specific> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| |
| <!-- ProductCategoryLinks Screen --> |
| <screen name="EditProductCategoryLinks"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditProductCategoryLink"/> |
| <set field="headerItem" value="category"/> |
| <set field="tabButtonItem" value="EditProductCategoryLinks"/> |
| <set field="labelTitleProperty" value="ProductCategoryLinks"/> |
| |
| <set field="productCategoryId" from-field="parameters.productCategoryId"/> |
| <set field="linkSeqId" from-field="parameters.linkSeqId"/> |
| <set field="fromDate" from-field="parameters.fromDate" type="Timestamp"/> |
| <entity-one entity-name="ProductCategoryLink" value-field="productCategoryLink"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonCategoryDecorator"> |
| <decorator-section name="body"> |
| <container style="screenlet"> |
| <container style="screenlet-title-bar"> |
| <container style="h3"> |
| <label text="${uiLabelMap.PageTitleEditProductCategoryLink}"/> |
| </container> |
| </container> |
| <container style="screenlet-body"> |
| <section> |
| <widgets> |
| <include-form name="ListProductCategoryLinks" location="component://product/webapp/catalog/category/CategoryForms.xml"/> |
| </widgets> |
| </section> |
| </container> |
| </container> |
| <container style="screenlet"> |
| <container style="screenlet-title-bar"> |
| <container style="h3"> |
| <label text="${uiLabelMap.PageTitleCreateProductCategoryLink}"/> |
| </container> |
| </container> |
| <container style="screenlet-body"> |
| <section> |
| <widgets> |
| <include-form name="AddProductCategoryLink" location="component://product/webapp/catalog/category/CategoryForms.xml"/> |
| </widgets> |
| </section> |
| </container> |
| </container> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| |
| </screens> |