svn commit: r470748 - in /incubator/ofbiz/trunk/applications/product: webapp/catalog/promo/PromoForms.xml widget/catalog/PromoScreens.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r470748 - in /incubator/ofbiz/trunk/applications/product: webapp/catalog/promo/PromoForms.xml widget/catalog/PromoScreens.xml

jacopoc
Author: jacopoc
Date: Fri Nov  3 02:22:58 2006
New Revision: 470748

URL: http://svn.apache.org/viewvc?view=rev&rev=470748
Log:
Small improvements to the product promo code ui usability.

Modified:
    incubator/ofbiz/trunk/applications/product/webapp/catalog/promo/PromoForms.xml
    incubator/ofbiz/trunk/applications/product/widget/catalog/PromoScreens.xml

Modified: incubator/ofbiz/trunk/applications/product/webapp/catalog/promo/PromoForms.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/product/webapp/catalog/promo/PromoForms.xml?view=diff&rev=470748&r1=470747&r2=470748
==============================================================================
--- incubator/ofbiz/trunk/applications/product/webapp/catalog/promo/PromoForms.xml (original)
+++ incubator/ofbiz/trunk/applications/product/webapp/catalog/promo/PromoForms.xml Fri Nov  3 02:22:58 2006
@@ -57,6 +57,13 @@
         <alt-target use-when="productPromoCode==null" target="createProductPromoCode"/>
         <auto-fields-service service-name="updateProductPromoCode" map-name=""/>
 
+        <field name="productPromoId" widget-style="selectBox">
+            <drop-down>
+                <entity-options entity-name="ProductPromo" description="[${productPromoId}] ${promoName}">
+                    <entity-order-by field-name="productPromoId"/>
+                </entity-options>
+            </drop-down>
+        </field>
         <field use-when="productPromoCode!=null" name="productPromoCodeId" tooltip=""><display/></field>
         <field use-when="productPromoCode==null&amp;&amp;productPromoCodeId!=null" name="productPromoCodeId" tooltip="${uiLabelMap.ProductCouldNotFindProductPromoCode} [${productPromoCodeId}]"><display/></field>
         <!-- this to be taken care of with auto-fields-service as soon as it uses entity field info too -->

Modified: incubator/ofbiz/trunk/applications/product/widget/catalog/PromoScreens.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/product/widget/catalog/PromoScreens.xml?view=diff&rev=470748&r1=470747&r2=470748
==============================================================================
--- incubator/ofbiz/trunk/applications/product/widget/catalog/PromoScreens.xml (original)
+++ incubator/ofbiz/trunk/applications/product/widget/catalog/PromoScreens.xml Fri Nov  3 02:22:58 2006
@@ -230,7 +230,7 @@
                 <decorator-screen name="CommonPromoDecorator">
                     <decorator-section name="body">
                         <container>
-                            <link target="EditProductPromoCode" text="[${uiLabelMap.ProductNewPromotionCode}]" style="buttontext"/>
+                            <link target="EditProductPromoCode?productPromoId=${productPromoId}" text="${uiLabelMap.ProductNewPromotionCode}" style="buttontext"/>
                         </container>
                         <platform-specific>
                             <html><html-template location="component://product/webapp/catalog/promo/FindProductPromoCode.ftl"/></html>