| <?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" |
| xmlns="http://ofbiz.apache.org/Widget-Screen" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Screen http://ofbiz.apache.org/dtds/widget-screen.xsd"> |
| <screen name="CommonFeatureDecorator"> |
| <section> |
| <widgets> |
| <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> |
| <decorator-section name="left-column"> |
| <include-screen name="leftbar" location="component://product/widget/catalog/CommonScreens.xml"/> |
| </decorator-section> |
| <decorator-section name="body"> |
| <section> |
| <condition> |
| <or> |
| <if-has-permission permission="CATALOG" action="_ADMIN"/> |
| <if-has-permission permission="CATALOG" action="_CREATE"/> |
| <if-has-permission permission="CATALOG" action="_UPDATE"/> |
| <if-has-permission permission="CATALOG" action="_VIEW"/> |
| </or> |
| </condition> |
| <widgets> |
| <include-menu name="FeaturesTabBar" location="component://product/widget/catalog/CatalogMenus.xml"/> |
| <container style="button-bar"><link target="CreateProductFeature" text="${uiLabelMap.ProductNewFeatureCategory}" style="buttontext create"/></container> |
| <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="EditFeature"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditFeature"/> |
| <set field="headerItem" value="featurecats"/> |
| <entity-one entity-name="ProductFeature" value-field="productFeature" auto-field-map="true"/> |
| <entity-and entity-name="SupplierProductFeature" list="supplierProductFeatures"> |
| <field-map field-name="productFeatureId" from-field="parameters.productFeatureId"/> |
| </entity-and> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonFeatureDecorator"> |
| <decorator-section name="body"> |
| <screenlet title="${uiLabelMap.ProductEditFeature} : ${productFeature.description}"> |
| <include-form name="EditProductFeature" location="component://product/widget/catalog/FeatureForms.xml"/> |
| </screenlet> |
| <screenlet title="${uiLabelMap.PageTitleEditFeaturePrice}"> |
| <include-form name="ListFeaturePrice" location="component://product/widget/catalog/FeatureForms.xml"/> |
| </screenlet> |
| <screenlet title="${uiLabelMap.PageTitleAddFeaturePrice}"> |
| <include-form name="CreateFeaturePrice" location="component://product/widget/catalog/FeatureForms.xml"/> |
| </screenlet> |
| <screenlet title="${uiLabelMap.ProductSupplierSpecificFeatureInformation}"> |
| <include-form name="EditSupplierProductFeatures" location="component://product/widget/catalog/FeatureForms.xml"/> |
| </screenlet> |
| <screenlet title="${uiLabelMap.ProductCreateInformationNewSupplier}"> |
| <include-form name="CreateSupplierProductFeature" location="component://product/widget/catalog/FeatureForms.xml"/> |
| </screenlet> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="EditFeatureTypes"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditFeatureTypes"/> |
| <set field="headerItem" value="featurecats"/> |
| <set field="tabButtonItem" value="FeatureType"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonFeatureDecorator"> |
| <decorator-section name="body"> |
| <section> |
| <widgets> |
| <decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml"> |
| <decorator-section name="menu-bar"> |
| <container style="button-bar"> |
| <link target="EditFeatureType" text="${uiLabelMap.ProductNewFeatureType}" style="buttontext create"/> |
| </container> |
| </decorator-section> |
| <decorator-section name="search-options"> |
| <include-form name="FindFeatureType" location="component://product/widget/catalog/FeatureForms.xml"/> |
| </decorator-section> |
| <decorator-section name="search-results"> |
| <include-form name="ListFeatureTypes" location="component://product/widget/catalog/FeatureForms.xml"/> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="EditFeatureType"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditFeatureType"/> |
| <set field="headerItem" value="featurecats"/> |
| <set field="tabButtonItem" value="FeatureType"/> |
| <set field="productFeatureTypeId" from-field="parameters.productFeatureTypeId"/> |
| <entity-one entity-name="ProductFeatureType" value-field="productFeatureType"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonFeatureDecorator"> |
| <decorator-section name="body"> |
| <screenlet title="${uiLabelMap.PageTitleEditFeatureType}"> |
| <include-form name="EditFeatureType" location="component://product/widget/catalog/FeatureForms.xml"/> |
| </screenlet> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="EditFeatureInterActions"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditFeatureInterActions"/> |
| <set field="headerItem" value="featurecats"/> |
| <set field="tabButtonItem" value="FeatureInterAction"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonFeatureDecorator"> |
| <decorator-section name="body"> |
| <section> |
| <widgets> |
| <decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml"> |
| <decorator-section name="menu-bar"> |
| <container style="button-bar"> |
| <link target="EditFeatureInterAction" text="${uiLabelMap.ProductNewFeatureInterAction}" style="buttontext create"/> |
| </container> |
| </decorator-section> |
| <decorator-section name="search-options"> |
| <include-form name="FindFeatureInterAction" location="component://product/widget/catalog/FeatureForms.xml"/> |
| </decorator-section> |
| <decorator-section name="search-results"> |
| <include-form name="ListFeatureInterActions" location="component://product/widget/catalog/FeatureForms.xml"/> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="EditFeatureInterAction"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditFeatureInterAction"/> |
| <set field="headerItem" value="featurecats"/> |
| <set field="tabButtonItem" value="FeatureInterAction"/> |
| |
| <set field="productFeatureId" from-field="parameters.productFeatureId"/> |
| <set field="productFeatureIdTo" from-field="parameters.productFeatureIdTo"/> |
| <entity-one entity-name="ProductFeatureIactn" value-field="productFeatureIactn"/> |
| |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonFeatureDecorator"> |
| <decorator-section name="body"> |
| <screenlet title="${uiLabelMap.PageTitleAddFeatureInterAction}"> |
| <include-form name="EditFeatureInterAction" location="component://product/widget/catalog/FeatureForms.xml"/> |
| </screenlet> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="CreateProductFeature"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditProductFeatureCategories"/> |
| <set field="headerItem" value="featurecats"/> |
| <set field="tabButtonItem" value="FeatureCategory"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonFeatureDecorator"> |
| <decorator-section name="body"> |
| <screenlet title="${uiLabelMap.PageTitleEditFeatureType}"> |
| <include-form name="CreateProductFeature" location="component://product/widget/catalog/FeatureForms.xml"/> |
| </screenlet> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="EditFeatureCategories"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditProductFeatureCategories"/> |
| <set field="headerItem" value="featurecats"/> |
| <set field="tabButtonItem" value="FeatureCategory"/> |
| <set field="viewIndex" from-field="parameters.VIEW_INDEX_1" type="Integer" default-value="0"/> |
| <set field="viewSize" from-field="parameters.VIEW_SIZE_1" type="Integer" default-value="10"/> |
| |
| <!--script location="component://product/groovyScripts/catalog/feature/EditFeatureCategories.groovy"/--> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonFeatureDecorator"> |
| <decorator-section name="body"> |
| <section> |
| <widgets> |
| <decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml"> |
| <decorator-section name="menu-bar"> |
| </decorator-section> |
| <decorator-section name="search-options"> |
| <include-form name="FindProductFeature" location="component://product/widget/catalog/FeatureForms.xml"/> |
| </decorator-section> |
| <decorator-section name="search-results"> |
| <include-form name="ListProductFeature" location="component://product/widget/catalog/FeatureForms.xml"/> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="EditFeatureCategoryFeatures"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditFeatureCategoryFeatures"/> |
| <set field="headerItem" value="featurecats"/> |
| <set field="tabButtonItem" value="FeatureCategory"/> |
| |
| <set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/> |
| <property-to-field resource="widget" property="widget.form.defaultViewSize" field="viewSizeDefaultValue"/> |
| <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/> |
| <script location="component://product/groovyScripts/catalog/feature/EditFeatureCategoryFeatures.groovy"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonFeatureDecorator"> |
| <decorator-section name="body"> |
| <platform-specific> |
| <html><html-template location="component://product/template/feature/EditFeatureCategoryFeatures.ftl"/></html> |
| </platform-specific> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="EditFeatureGroups"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditProductFeatureGroups"/> |
| <set field="headerItem" value="featurecats"/> |
| <set field="tabButtonItem" value="FeatureGroup"/> |
| |
| <script location="component://product/groovyScripts/catalog/feature/EditFeatureGroups.groovy"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonFeatureDecorator"> |
| <decorator-section name="body"> |
| <platform-specific> |
| <html><html-template location="component://product/template/feature/EditFeatureGroups.ftl"/></html> |
| </platform-specific> </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="EditFeatureGroupAppls"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="ProductEditFeatureGroupAppls"/> |
| <set field="headerItem" value="featurecats"/> |
| <set field="tabButtonItem" value="FeatureGroup"/> |
| <set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/> |
| <property-to-field resource="widget" property="widget.form.defaultViewSize" field="viewSizeDefaultValue"/> |
| <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/> |
| |
| <set field="productFeatureGroupId" from-field="parameters.productFeatureGroupId"/> |
| <set field="productFeatureCategoryId" from-field="parameters.productFeatureCategoryId"/> |
| <entity-and entity-name="ProductFeatureGroupAndAppl" list="productFeatureGroupAndAppls"> |
| <field-map field-name="productFeatureGroupId"/> |
| <order-by field-name="sequenceNum"/> |
| </entity-and> |
| <entity-condition entity-name="ProductFeatureCategory" list="productFeatureCategories"> |
| <order-by field-name="description"/> |
| </entity-condition> |
| <entity-and entity-name="ProductFeature" list="productFeatures"> |
| <field-map field-name="productFeatureCategoryId"/> |
| </entity-and> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonFeatureDecorator"> |
| <decorator-section name="body"> |
| <screenlet title="${uiLabelMap.ProductEditFeatureGroupAppls}"> |
| <include-form name="ListFeatureGroupAppls" location="component://product/widget/catalog/FeatureForms.xml"/> |
| </screenlet> |
| <screenlet title="${uiLabelMap.ProductQuickApplyFeature}"> |
| <include-form name="QuickApplyFeatureToGroup" location="component://product/widget/catalog/FeatureForms.xml"/> |
| </screenlet> |
| <screenlet title="${uiLabelMap.ProductApplyFeaturesFromCategory}"> |
| <include-form name="ApplyFeatureCategoryToGroup" location="component://product/widget/catalog/FeatureForms.xml"/> |
| <include-form name="ApplyFeaturesFromCategoryToGroup" location="component://product/widget/catalog/FeatureForms.xml"/> |
| </screenlet> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="QuickAddProductFeatures"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="ProductAddProductFeatureInBulk"/> |
| <set field="headerItem" value="featurecats"/> |
| <set field="featureNum" from-field="parameters.featureNum" type="Integer"/> |
| <set field="productFeatureCategoryId" from-field="parameters.productFeatureCategoryId"/> |
| <set field="tabButtonItem" value="FeatureCategory"/> |
| <script location="component://product/groovyScripts/catalog/feature/QuickAddProductFeatures.groovy"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonFeatureDecorator"> |
| <decorator-section name="body"> |
| <platform-specific> |
| <html><html-template location="component://product/template/feature/BulkAddFeature.ftl"/></html> |
| </platform-specific> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="ListFeaturePrice"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditFeaturePrice"/> |
| <set field="headerItem" value="featurecats"/> |
| <set field="tabButtonItem" value="FeaturePrice"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonFeatureDecorator"> |
| <decorator-section name="body"> |
| <screenlet title="${uiLabelMap.PageTitleEditFeaturePrice}"> |
| <include-form name="ListFeaturePrice" location="component://product/widget/catalog/FeatureForms.xml"/> |
| </screenlet> |
| <screenlet title="${uiLabelMap.PageTitleAddFeaturePrice}"> |
| <include-form name="CreateFeaturePrice" location="component://product/widget/catalog/FeatureForms.xml"/> |
| </screenlet> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="CreateFeaturePrice"> |
| <section> |
| <widgets> |
| <decorator-screen name="CommonFeatureDecorator"> |
| <decorator-section name="body"> |
| <screenlet title="${uiLabelMap.ProductQuickApplyFeature}"> |
| <include-form name="CreateFeaturePrice" location="component://product/widget/catalog/FeatureForms.xml"/> |
| </screenlet> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="CreateFeature"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditFeature"/> |
| <set field="headerItem" value="featurecats"/> |
| <entity-one entity-name="ProductFeature" value-field="productFeature" auto-field-map="true"/> |
| <entity-and entity-name="SupplierProductFeature" list="supplierProductFeatures"> |
| <field-map field-name="productFeatureId" from-field="parameters.productFeatureId"/> |
| </entity-and> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonFeatureDecorator"> |
| <decorator-section name="body"> |
| <screenlet title="${uiLabelMap.ProductEditFeature} : ${productFeature.description}"> |
| <include-form name="EditProductFeature" location="component://product/widget/catalog/FeatureForms.xml"/> |
| </screenlet> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| </screens> |
| |