svn commit: r438167 - /incubator/ofbiz/trunk/applications/product/webapp/catalog/product/ProductForms.xml

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

svn commit: r438167 - /incubator/ofbiz/trunk/applications/product/webapp/catalog/product/ProductForms.xml

sichen
Author: sichen
Date: Tue Aug 29 12:22:17 2006
New Revision: 438167

URL: http://svn.apache.org/viewvc?rev=438167&view=rev
Log:
Set default type for create product form FINISHED GOOD and made the button say Create Product when creating a new product

Modified:
    incubator/ofbiz/trunk/applications/product/webapp/catalog/product/ProductForms.xml

Modified: incubator/ofbiz/trunk/applications/product/webapp/catalog/product/ProductForms.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/product/webapp/catalog/product/ProductForms.xml?rev=438167&r1=438166&r2=438167&view=diff
==============================================================================
--- incubator/ofbiz/trunk/applications/product/webapp/catalog/product/ProductForms.xml (original)
+++ incubator/ofbiz/trunk/applications/product/webapp/catalog/product/ProductForms.xml Tue Aug 29 12:22:17 2006
@@ -41,7 +41,7 @@
             <drop-down><option key="N" description="${uiLabelMap.CommonN}"/><option key="Y" description="${uiLabelMap.CommonY}"/></drop-down>
         </field>
         <field name="productTypeId" title="${uiLabelMap.ProductProductType}" widget-style="selectBox">
-            <drop-down>
+            <drop-down no-current-selected-key="FINISHED_GOOD">
                 <entity-options entity-name="ProductType" description="${description}"> <!-- [${productTypeId}] -->
                     <entity-order-by field-name="description"/>
                 </entity-options>
@@ -183,7 +183,8 @@
         <field name="detailImageUrl"><text size="60" maxlength="255"/></field>
         <field name="detailScreen"><text size="60" maxlength="250"/></field>
         -->
-        <field name="submitButton" title="${uiLabelMap.ProductUpdateProduct}" widget-style="smallSubmit"><submit button-type="button"/></field>
+        <field name="submitButton" title="${uiLabelMap.ProductUpdateProduct}" use-when="product!=null" widget-style="smallSubmit"><submit button-type="button"/></field>
+        <field name="submitButton" title="${uiLabelMap.ProductCreateProduct}" use-when="product==null" widget-style="smallSubmit"><submit button-type="button"/></field>
 
         <field use-when="product!=null" position="1" name="lastUpdatedByText" title="${uiLabelMap.ProductLastModifiedBy}:" widget-style="tabletext">
             <display description="[${product.lastModifiedByUserLogin}] ${uiLabelMap.CommonOn} ${product.lastModifiedDate}" also-hidden="false"/>