Author: jleroux
Date: Thu Jan 15 08:36:43 2015
New Revision: 1651969

URL: http://svn.apache.org/r1651969
Log:
No functional change. Slightly improves the Promo Rule condition UI by 
replacing an input field by a lookup when adding a Product Condition for the 
Rule

Modified:
    
ofbiz/trunk/applications/product/webapp/catalog/promo/EditProductPromoRules.ftl

Modified: 
ofbiz/trunk/applications/product/webapp/catalog/promo/EditProductPromoRules.ftl
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/promo/EditProductPromoRules.ftl?rev=1651969&r1=1651968&r2=1651969&view=diff
==============================================================================
--- 
ofbiz/trunk/applications/product/webapp/catalog/promo/EditProductPromoRules.ftl 
(original)
+++ 
ofbiz/trunk/applications/product/webapp/catalog/promo/EditProductPromoRules.ftl 
Thu Jan 15 08:36:43 2015
@@ -204,12 +204,12 @@ under the License.
         <div>${uiLabelMap.ProductNoConditionProducts}</div>
       </#if>
                 <div>
-                  <form method="post" 
action="<@ofbizUrl>createProductPromoProduct</@ofbizUrl>">
+                  <form method="post" 
action="<@ofbizUrl>createProductPromoProduct</@ofbizUrl>" 
name="createProductPromoProductConditions">
                     <input type="hidden" name="productPromoId" 
value="${productPromoId}" />
                     <input type="hidden" name="productPromoRuleId" 
value="${productPromoCond.productPromoRuleId}" />
                     <input type="hidden" name="productPromoActionSeqId" 
value="_NA_" />
                     <input type="hidden" name="productPromoCondSeqId" 
value="${productPromoCond.productPromoCondSeqId}" />
-                    ${uiLabelMap.ProductProductId}: <input type="text" 
size="20" maxlength="20" name="productId" value=""/>
+                    <@htmlTemplate.lookupField 
formName="createProductPromoProductConditions" name="productId" id="productId" 
fieldFormName="LookupProduct"/>
                     <select name="productPromoApplEnumId">
       <#list productPromoApplEnums as productPromoApplEnum>
                       <option 
value="${productPromoApplEnum.enumId}">${productPromoApplEnum.get("description",locale)}</option>


Reply via email to