Blame view
applications/product/widget/catalog/ConfigForms.xml
17.4 KB
c16038356
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 |
<?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. --> <forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd"> <form name="FindProductConfigItems" type="list" list-name="listIt" default-table-style="basic-table" odd-row-style="alternate-row" paginate-target="FindProductConfigItems" target="" header-row-style="header-row-2" paginate="true"> <actions> <service service-name="performFind" result-map-list="listIt" result-map="performFindResult"> <field-map field-name="inputFields" from-field="parameters"/> <field-map field-name="entityName" value="ProductConfigItem"/> <field-map field-name="viewIndex" from-field="viewIndex"/> <field-map field-name="viewSize" from-field="viewSize"/> </service> </actions> <row-actions> <set field="typeDescription" value="${bsh: return "SINGLE".equals(configItemTypeId) ? uiLabelMap.get("ProductSingleChoice") : uiLabelMap.get("ProductMultiChoice")}"/> </row-actions> <field name="configItemId" title="${uiLabelMap.ProductConfigItem}" widget-style="buttontext"> <hyperlink target="EditProductConfigItem" description="${configItemId}"> <parameter param-name="configItemId"/> </hyperlink> </field> <field name="configItemName" title="${uiLabelMap.CommonName}"><display/></field> <field name="typeDescription" title="${uiLabelMap.CommonType}"> <display description="${typeDescription}"/> </field> <field name="description"><display/></field> </form> <form name="FindProductConfigItemsFrom" type="single" target="FindProductConfigItems" default-map-name="productconfigitems" header-row-style="header-row" default-table-style="basic-table"> <auto-fields-entity entity-name="ProductConfigItem" default-field-type="find"/> <field name="configItemId" title="${uiLabelMap.ProductConfigItem}"/> <field name="configItemTypeId"><hidden/></field> <field name="configItemName"/> <field name="description"/> <field name="longDescription"><hidden/></field> <field name="imageUrl"><hidden/></field> <field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field> <field name="submitButton" title="${uiLabelMap.CommonFind}" widget-style="smallSubmit"><submit button-type="button"/></field> </form> <form name="EditProductConfigItem" type="single" target="updateProductConfigItem" title="" default-map-name="configItem" header-row-style="header-row" default-table-style="basic-table"> <alt-target use-when="configItem==null" target="createProductConfigItem"/> <auto-fields-service service-name="updateProductConfigItem"/> <field name="longDescription" title="${uiLabelMap.ProductLongDescription}"><ignored/></field> <field name="imageUrl"><ignored/></field> <field use-when="configItem!=null" name="configItemId" title="${uiLabelMap.ProductConfigItem}" tooltip="${uiLabelMap.ProductNotModificationRecreatingProductConfigItems}"><display/></field> <field use-when="configItem==null&&configItemId!=null" name="configItemId" title="${uiLabelMap.ProductConfigItem}" tooltip="${uiLabelMap.ProductCouldNotFindProductConfigItemWithId} [${configItemId}]"><display description="" also-hidden="false"/></field> <field use-when="configItem==null&&configItemId==null" name="configItemId" title="${uiLabelMap.ProductConfigItem}"><ignored/></field> <field name="configItemTypeId" title="${uiLabelMap.ProductConfigItem} ${uiLabelMap.CommonType}"> <drop-down allow-empty="false"> <option key="SINGLE" description="${uiLabelMap.ProductSingleChoice}"/> <option key="MULTIPLE" description="${uiLabelMap.ProductMultiChoice}"/> </drop-down> </field> <field name="submitButton" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit button-type="button"/></field> </form> <form name="EditConfigOption" type="list" target="updateProductConfigOption" title="" list-name="configOptionList" list-entry-name="configOption" odd-row-style="alternate-row" default-table-style="basic-table"> <auto-fields-service service-name="updateProductConfigOption" map-name="configOption"/> <field use-when="configOption!=null" name="configOptionId"><hidden/></field> <field name="configItemId"><hidden/></field> <field name="submitButton" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit button-type="button"/></field> </form> <form name="CreateConfigOption" type="single" target="createProductConfigOption" title="" default-map-name="configOption" header-row-style="header-row" default-table-style="basic-table"> <alt-target use-when="configOption!=null" target="updateProductConfigOption"/> <auto-fields-service service-name="createProductConfigOption"/> <field use-when="configOption!=null" name="configOptionId"><hidden/></field> <field name="configItemId"><hidden value="${configItemId}"/></field> <field use-when="configOption!=null" name="submitButton" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit button-type="button"/></field> <field name="submitButton" title="${uiLabelMap.CommonCreate}" widget-style="smallSubmit"><submit button-type="button"/></field> </form> <form name="CreateProductConfigProduct" type="single" target="createProductConfigProduct" title="" default-map-name="productConfigProduct" header-row-style="header-row" default-table-style="basic-table"> <alt-target use-when="productConfigProduct!=null" target="updateProductConfigProduct"/> <auto-fields-service service-name="createProductConfigProduct"/> <field name="configItemId"><hidden value="${configItemId}"/></field> <field name="configOptionId"><hidden value="${configOptionId}"/></field> <field use-when="productConfigProduct!=null" name="productId"><display/></field> <field use-when="productConfigProduct==null" name="productId"> <lookup target-form-name="LookupProduct"/> </field> <field use-when="productConfigProduct!=null" name="submitButton" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit button-type="button"/></field> <field name="submitButton" title="${uiLabelMap.CommonCreate}" widget-style="smallSubmit"><submit button-type="button"/></field> </form> <!-- ProdConfItemContent --> <form name="AddProductConfigItemContentAssoc" type="single" target="addContentToProductConfigItem" title="Add ProdConfItemContent (select Content Id, enter From Date):" header-row-style="header-row" default-table-style="basic-table"> <auto-fields-entity entity-name="ProdConfItemContent"/> <field name="configItemId" title="${uiLabelMap.ProductConfigItemId}" map-name="productConfigItem"><hidden/></field> <field name="contentId" title="${uiLabelMap.ProductContentId}" ></field> <field name="confItemContentTypeId" title="${uiLabelMap.ProductProductConfigItemContentTypeId}"> <drop-down> <entity-options entity-name="ProdConfItemContentType" description="${description}"> <entity-order-by field-name="description"/> </entity-options> </drop-down> </field> <field name="fromDate" title="${uiLabelMap.CommonFromDate}" ></field> <field name="thruDate" title="${uiLabelMap.CommonThruDate}"></field> <field name="submitButton" title="${uiLabelMap.CommonAdd}" widget-style="smallSubmit"><submit button-type="button"/></field> </form> <form name="PrepareAddProductConfigItemContentAssoc" type="single" target="prepareAddContentToProductConfigItem" title="Add ProdConfItemContent (select Content Id, enter From Date):" header-row-style="header-row" default-table-style="basic-table"> <auto-fields-entity entity-name="ProdConfItemContent"/> <field name="contentId"><ignored/></field> <field name="fromDate"><ignored/></field> <field name="thruDate"><ignored/></field> <field name="configItemId" map-name="productConfigItem"><hidden/></field> <field name="confItemContentTypeId" title="${uiLabelMap.ProductProductConfigItemContentTypeId}"> <drop-down> <entity-options entity-name="ProdConfItemContentType" description="${description}"> <entity-order-by field-name="description"/> </entity-options> </drop-down> </field> <!-- <field name="description"><text size="40"/></field> --> <field name="submitButton" title="${uiLabelMap.ProductPrepareCreate}" widget-style="smallSubmit"><submit button-type="button"/></field> </form> <form name="UpdateProductConfigItemContentAssoc" type="list" target="updateContentToProductConfigItem" title="" list-name="productContentDatas" odd-row-style="alternate-row" default-table-style="basic-table"> <!-- each entry in the list will be a Map with the entries: productContent and content --> <auto-fields-service service-name="updateProductConfigItemContent" map-name="productContent"/> <field name="configItemId"><hidden/></field> <field name="contentId" title="${uiLabelMap.ProductContent_Id}" widget-style="buttontext"> <hyperlink target="EditProductConfigItemContentContent" description="${content.description} [${productContent.contentId}]"> <parameter param-name="configItemId" from-field="productContent.configItemId"/> <parameter param-name="contentId" from-field="productContent.contentId"/> </hyperlink> </field> <field name="confItemContentTypeId" title="${uiLabelMap.ProductProductContentTypeId}"> <drop-down> <entity-options entity-name="ProdConfItemContentType" description="${description}"> <entity-order-by field-name="description"/> </entity-options> </drop-down> </field> <field name="submitButton" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit button-type="button"/></field> <field name="deleteLink" title=" " widget-style="buttontext"> <hyperlink target="removeContentFromProductConfigItem" description="[${uiLabelMap.CommonDelete}]" also-hidden="false"> <parameter param-name="configItemId" from-field="productContent.configItemId"/> <parameter param-name="contentId" from-field="productContent.contentId"/> <parameter param-name="confItemContentTypeId" from-field="productContent.confItemContentTypeId"/> <parameter param-name="fromDate" from-field="productContent.fromDate"/> </hyperlink> </field> </form> <form name="EditProductConfigItemContentSimpleText" type="single" target="updateSimpleTextContentForProductConfigItem" title="Update Simple Text Content for Product" header-row-style="header-row" default-table-style="basic-table"> <alt-target use-when="contentId==null" target="createSimpleTextContentForProductConfigItem"/> <auto-fields-entity entity-name="ProdConfItemContent" map-name="productContentData"/> <field name="fromDate" title="${uiLabelMap.CommonFromDate}" ></field> <field name="thruDate" title="${uiLabelMap.CommonThruDate}"></field> <field name="description" title="${uiLabelMap.ProductProductDescription}" map-name="content"><text size="40"/></field> <field name="localeString" title="${uiLabelMap.ProductLocaleString}" map-name="content"><text size="40"/></field> <field use-when="contentId == null" name="contentId"><ignored/></field> <field use-when="contentId != null" name="contentId" tooltip="${uiLabelMap.ProductNotModificationRecrationProductContentAssociation}" map-name="productContentData" ><display/></field> <field name="text" title="${uiLabelMap.ProductText}" map-name="textData"><textarea cols="60" rows="7"/></field> <field name="textDataResourceId" title="${uiLabelMap.ProductTextDataResourceId}" map-name="textData"><hidden/></field> <field name="configItemId"><hidden/></field> <field name="confItemContentTypeId"><hidden/></field> <field use-when="contentId == null" name="submitButton" title="${uiLabelMap.CommonCreate}" widget-style="smallSubmit"><submit button-type="button"/></field> <field use-when="contentId != null" name="submitButton" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit button-type="button"/></field> </form> <form name="ListProductConfigItem" type="list" list-name="productConfigs" default-table-style="basic-table" odd-row-style="alternate-row" paginate-target="FindProductConfigItems" target="" header-row-style="header-row-2" paginate="true"> <actions> <entity-condition entity-name="ProductConfigAndProduct" list="productConfigs" distinct="true"> <condition-list> <condition-expr field-name="configItemId" operator="equals" from-field="configItemId"/> </condition-list> <select-field field-name="productId"/> <select-field field-name="configItemId"/> <select-field field-name="productName"/> <select-field field-name="piecesIncluded"/> </entity-condition> </actions> <auto-fields-entity entity-name="ProductConfigAndProduct" default-field-type="hidden"/> <field name="productId" widget-style="buttontext" > <hyperlink target="EditProductConfigs" description="${productId}"> <parameter param-name="productId"/> </hyperlink> </field> <field name="productName" title="${uiLabelMap.ProductName}"><display description="${productName}"/></field> <field name="piecesIncluded" title="${uiLabelMap.ProductPiecesIncluded}"><display description="${piecesIncluded}"/></field> </form> <form name="ProductConfigOptionList" type="list" list-name="configOptionList" default-table-style="basic-table" odd-row-style="alternate-row" paginate-target="FindProductConfigItems" target="" header-row-style="header-row-2" paginate="true"> <auto-fields-entity entity-name="ProductConfigOption" default-field-type="display"/> <field name="configItemId" widget-style="buttontext" title="${uiLabelMap.ProductConfigItem}"> <hyperlink target="EditProductConfigOptions" description="${configOptionId} - ${configOptionName}"> <parameter param-name="configItemId"/> <parameter param-name="configOptionId"/> </hyperlink> </field> <field name="configOptionId" ><hidden/></field> <field name="configOptionName" ><hidden/></field> <field name="remove" title="${uiLabelMap.CommonRemove}" widget-style="buttontext" > <hyperlink target="deleteProductConfigOption" description="${uiLabelMap.CommonRemove}"> <parameter param-name="configItemId"/> <parameter param-name="configOptionId"/> </hyperlink> </field> </form> <form name="ProductConfigList" type="list" list-name="configProducts" default-table-style="basic-table" odd-row-style="alternate-row" paginate-target="FindProductConfigItems" target="" header-row-style="header-row-2" paginate="true"> <row-actions> <entity-one entity-name="Product" value-field="product"> <field-map field-name="productId"/> </entity-one> </row-actions> <auto-fields-service service-name="createProductConfigProduct" default-field-type="display"/> <field name="configItemId" ><hidden/></field> <field name="configOptionId" ><hidden/></field> <field name="productId" widget-style="buttontext"> <hyperlink target="EditProduct" description="${product.productId} - ${product.productName}"> <parameter param-name="productId" from-field="product.productId"/> </hyperlink> </field> <field name="remove" widget-style="buttontext" > <hyperlink target="deleteProductConfigProduct" description="${uiLabelMap.CommonRemove}"> <parameter param-name="configItemId"/> <parameter param-name="configOptionId"/> <parameter param-name="productId" from-field="product.productId"/> </hyperlink> </field> </form> </forms> |