| <?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="CommonConfigDecorator"> |
| <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="configItemId"/></not></condition> |
| <widgets> |
| <include-menu name="ConfigItemTabBar" location="component://product/widget/catalog/Menus.xml"/> |
| <container> |
| <label style="h1">${uiLabelMap[labelTitleProperty]} ${uiLabelMap.CommonFor}: ${configItem.configItemName} [${uiLabelMap.CommonId}:${configItemId}] ${${extraFunctionName}}</label> |
| </container> |
| <container> |
| <link target="EditProductConfigItem" text="[${uiLabelMap.CommonNew} ${uiLabelMap.ProductConfigItem}]" style="buttontext"/> |
| </container> |
| </widgets> |
| </section> |
| <container style="no-clear"> |
| <decorator-section-include name="body"/> |
| </container> |
| </widgets> |
| <fail-widgets> |
| <label style="h3">${uiLabelMap.ProductCatalogViewPermissionError}</label> |
| </fail-widgets> |
| </section> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="FindProductConfigItems"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleFindConfigItems"/> |
| <set field="headerItem" value="configs"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonConfigDecorator"> |
| <decorator-section name="body"> |
| <screenlet title="${uiLabelMap.PageTitleFindConfigItems}"> |
| <link target="EditProductConfigItem" text="${uiLabelMap.CommonCreateNew}" style="buttontext"/> |
| <include-form location="component://product/webapp/catalog/config/ConfigForms.xml" name="FindProductConfigItemsFrom"/> |
| </screenlet> |
| <screenlet title="${uiLabelMap.PageTitleFindConfigItems}"> |
| <include-form location="component://product/webapp/catalog/config/ConfigForms.xml" name="FindProductConfigItems"/> |
| </screenlet> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="EditProductConfigItem"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditConfigItem"/> |
| <set field="headerItem" value="configs"/> |
| <set field="tabButtonItem" value="EditProductConfigItem"/> |
| <set field="labelTitleProperty" value="ProductConfigItem"/> |
| |
| <set field="configItemId" from-field="parameters.configItemId"/> |
| <entity-one entity-name="ProductConfigItem" value-field="configItem" auto-field-map="true"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonConfigDecorator"> |
| <decorator-section name="body"> |
| <container style="screenlet"> |
| <container style="screenlet-title-bar"> |
| <container style="h3"> |
| <label text="${uiLabelMap.PageTitleEditConfigItem}"/> |
| </container> |
| </container> |
| <container style="screenlet-body"> |
| <section> |
| <widgets> |
| <include-form name="EditProductConfigItem" location="component://product/webapp/catalog/config/ConfigForms.xml"/> |
| </widgets> |
| </section> |
| </container> |
| </container> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="EditProductConfigOptions"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditConfigOptions"/> |
| <set field="headerItem" value="configs"/> |
| <set field="tabButtonItem" value="EditProductConfigOptions"/> |
| <set field="labelTitleProperty" value="ProductConfigOptions"/> |
| |
| <set field="configItemId" from-field="parameters.configItemId"/> |
| <entity-one entity-name="ProductConfigItem" value-field="configItem" auto-field-map="true"/> |
| |
| <set field="configOptionId" from-field="parameters.configOptionId"/> |
| <entity-one entity-name="ProductConfigOption" value-field="configOption" auto-field-map="true"/> |
| |
| <set field="productId" from-field="parameters.productId"/> |
| <entity-one entity-name="ProductConfigProduct" value-field="productConfigProduct" auto-field-map="true"/> |
| <entity-condition entity-name="ProductConfigOption" list="configOptionList"> |
| <condition-expr field-name="configItemId" from-field="configItemId"/> |
| <order-by field-name="sequenceNum"/> |
| </entity-condition> |
| <entity-condition entity-name="ProductConfigProduct" list="configProducts"> |
| <condition-list combine="and"> |
| <condition-expr field-name="configItemId" from-field="configItemId"/> |
| <condition-expr field-name="configOptionId" from-field="configOptionId"/> |
| </condition-list> |
| <order-by field-name="sequenceNum"/> |
| </entity-condition> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonConfigDecorator"> |
| <decorator-section name="body"> |
| <include-screen name="configOptions"/> |
| <include-screen name="configComponent"/> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="configOptions"> |
| <section> |
| <widgets> |
| <screenlet title="${uiLabelMap.ProductConfigOptionList}"> |
| <include-form name="ProductConfigOptionList" location="component://product/webapp/catalog/config/ConfigForms.xml"/> |
| </screenlet> |
| <section> |
| <condition><not><if-empty field="configOptionId"/></not></condition> |
| <widgets> |
| <screenlet title="${uiLabelMap.PageTitleEditConfigOptions}"> |
| <link style="buttontext" text="${uiLabelMap.ProductCreateNewConfigOptions}" target="EditProductConfigOptions"> |
| <parameter param-name="configItemId"/> |
| </link> |
| <include-form name="CreateConfigOption" location="component://product/webapp/catalog/config/ConfigForms.xml"/> |
| </screenlet> |
| </widgets> |
| <fail-widgets> |
| |
| <screenlet title="${uiLabelMap.ProductCreateNewConfigOptions}"> |
| <include-form name="CreateConfigOption" location="component://product/webapp/catalog/config/ConfigForms.xml"/> |
| </screenlet> |
| </fail-widgets> |
| </section> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="configComponent"> |
| <section> |
| <condition> |
| <not> |
| <if-empty field="configOptionId"/> |
| </not> |
| </condition> |
| <widgets> |
| <screenlet title="${uiLabelMap.ProductComponents} - ${uiLabelMap.CommonId}: ${configOption.configOptionId} - ${configOption.description}"> |
| <include-form name="ProductConfigList" location="component://product/webapp/catalog/config/ConfigForms.xml"/> |
| </screenlet> |
| <section> |
| <condition> |
| <not><if-empty field="productId"/></not> |
| </condition> |
| <widgets> |
| <screenlet title="${uiLabelMap.CommonEdit} ${uiLabelMap.ProductConfigs}"> |
| <link style="buttontext" text="${uiLabelMap.CommonNew} ${uiLabelMap.ProductConfigs}" target="EditProductConfigOptions"> |
| <parameter param-name="configItemId"/> |
| <parameter param-name="configOptionId"/> |
| </link> |
| <include-form name="CreateProductConfigProduct" location="component://product/webapp/catalog/config/ConfigForms.xml"/> |
| </screenlet> |
| </widgets> |
| <fail-widgets> |
| <screenlet title="${uiLabelMap.CommonAddA} ${uiLabelMap.ProductConfigs}"> |
| <link style="buttontext" text="${uiLabelMap.CommonNew} ${uiLabelMap.ProductConfigs}" target="EditProductConfigOptions"> |
| <parameter param-name="configItemId"/> |
| <parameter param-name="configOptionId"/> |
| </link> |
| <include-form name="CreateProductConfigProduct" location="component://product/webapp/catalog/config/ConfigForms.xml"/> |
| </screenlet> |
| </fail-widgets> |
| </section> |
| </widgets> |
| </section> |
| </screen> |
| |
| <screen name="EditProductConfigItemContent"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditProductConfigItemContent"/> |
| <set field="headerItem" value="configs"/> |
| <set field="tabButtonItem" value="EditProductConfigItemContent"/> |
| <set field="labelTitleProperty" value="ProductContent"/> |
| |
| <set field="configItemId" from-field="parameters.configItemId"/> |
| <entity-one entity-name="ProductConfigItem" value-field="configItem" auto-field-map="true"/> |
| |
| <script location="component://product/webapp/catalog/WEB-INF/actions/config/EditProductConfigItemContent.groovy"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonConfigDecorator"> |
| <decorator-section name="body"> |
| <platform-specific> |
| <html><html-template location="component://product/webapp/catalog/config/EditProductConfigItemContent.ftl"/></html> |
| </platform-specific> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="EditProductConfigItemContentContent"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditProductConfigItemContent"/> |
| <set field="headerItem" value="configs"/> |
| <set field="tabButtonItem" value="EditProductConfigItemContent"/> |
| <set field="labelTitleProperty" value=""/> |
| |
| <set field="configItemId" from-field="parameters.configItemId"/> |
| <entity-one entity-name="ProductConfigItem" value-field="configItem" auto-field-map="true"/> |
| |
| <set field="fromDate" from-field="requetParameters.fromDate" type="Timestamp"/> |
| |
| <script location="component://product/webapp/catalog/WEB-INF/actions/config/EditProductConfigItemContentContent.groovy"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonConfigDecorator"> |
| <decorator-section name="body"> |
| <platform-specific> |
| <html><html-template location="component://product/webapp/catalog/config/EditProductConfigItemContentContent.ftl"/></html> |
| </platform-specific> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="ProductConfigItemArticle"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditProductConfigItemContent"/> |
| <set field="headerItem" value="configs"/> |
| <set field="tabButtonItem" value="ProductConfigItemArticle"/> |
| <set field="labelTitleProperty" value=""/> |
| <set field="configItemId" from-field="parameters.configItemId"/> |
| <entity-one entity-name="ProductConfigItem" value-field="configItem" auto-field-map="true"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonConfigDecorator"> |
| <decorator-section name="body"> |
| <screenlet title="${uiLabelMap.PageTitleEditProductConfigItemContent}"> |
| <include-form name="ListProductConfigItem" location="component://product/webapp/catalog/config/ConfigForms.xml"/> |
| </screenlet> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| </screens> |