Author: sichen
Date: Thu Nov  9 14:30:15 2006
New Revision: 473105

URL: http://svn.apache.org/viewvc?view=rev&rev=473105
Log:
Added the ProductCategoryMember.comments to the category products and product 
categories pages so the user can maintain the comments field

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

Modified: 
incubator/ofbiz/trunk/applications/product/webapp/catalog/category/EditCategoryProducts.ftl
URL: 
http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/product/webapp/catalog/category/EditCategoryProducts.ftl?view=diff&rev=473105&r1=473104&r2=473105
==============================================================================
--- 
incubator/ofbiz/trunk/applications/product/webapp/catalog/category/EditCategoryProducts.ftl
 (original)
+++ 
incubator/ofbiz/trunk/applications/product/webapp/catalog/category/EditCategoryProducts.ftl
 Thu Nov  9 14:30:15 2006
@@ -44,7 +44,7 @@
         <tr>
             <td><div 
class="tabletext"><b>${uiLabelMap.ProductProductNameId}</b></div></td>
             <td><div 
class="tabletext"><b>${uiLabelMap.CommonFromDateTime}</b></div></td>
-            <td align="center"><div 
class="tabletext"><b>${uiLabelMap.ProductThruDateTimeSequenceQuantity}</b></div></td>
+            <td align="center"><div 
class="tabletext"><b>${uiLabelMap.ProductThruDateTimeSequenceQuantity}<br/>${uiLabelMap.CommonComments}</b></div></td>
             <td><div class="tabletext"><b>&nbsp;</b></div></td>
         </tr>
         <#if (listSize > 0)>
@@ -69,6 +69,8 @@
                     <a 
href="javascript:call_cal(document.updateCategoryProductForm.thruDate${suffix}, 
'${(productCategoryMember.thruDate)?default(nowTimestamp?string)}');"><img 
src="/images/cal.gif" width="16" height="16" border="0" alt="Calendar"></a>
                     <input type="text" size="5" name="sequenceNum${suffix}" 
value="${(productCategoryMember.sequenceNum)?if_exists}" class="inputBox">
                     <input type="text" size="5" name="quantity${suffix}" 
value="${(productCategoryMember.quantity)?if_exists}" class="inputBox">
+                    <br/>
+                    <textarea name="comments${suffix}" rows="2" 
cols="40">${(productCategoryMember.comments)?if_exists}</textarea>        
                 </td>
                 <td align="center">
                 <a 
href="<@ofbizUrl>removeCategoryProductMember?VIEW_SIZE=${viewSize}&VIEW_INDEX=${viewIndex}&productId=${(productCategoryMember.productId)?if_exists}&productCategoryId=${(productCategoryMember.productCategoryId)?if_exists}&fromDate=${Static["org.ofbiz.base.util.UtilFormatOut"].encodeQueryValue((productCategoryMember.getTimestamp("fromDate").toString()))}&activeOnly=${activeOnly.toString()}</@ofbizUrl>"
 class="buttontext">
@@ -116,7 +118,9 @@
             <a 
href="javascript:call_fieldlookup2(document.addProductCategoryMemberForm.productId,
 'LookupProduct');"><img src="/content/images/fieldlookup.gif" width="16" 
height="16" border="0" alt="Lookup"></a>
             ${uiLabelMap.CommonFromDate}: <input type="text" size="22" 
name="fromDate" class="inputBox">
             <a 
href="javascript:call_cal(document.addProductCategoryMemberForm.fromDate, 
'${nowTimestamp?string}');"><img src="/images/cal.gif" width="16" height="16" 
border="0" alt="Calendar"></a>
-            <input type="submit" value="${uiLabelMap.CommonAdd}">
+              <br/>
+              ${uiLabelMap.CommonComments}: <textarea name="comments" rows="2" 
cols="40"></textarea>        
+              <input type="submit" value="${uiLabelMap.CommonAdd}">
         </div>
         </form>
         

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?view=diff&rev=473105&r1=473104&r2=473105
==============================================================================
--- 
incubator/ofbiz/trunk/applications/product/webapp/catalog/product/ProductForms.xml
 (original)
+++ 
incubator/ofbiz/trunk/applications/product/webapp/catalog/product/ProductForms.xml
 Thu Nov  9 14:30:15 2006
@@ -327,7 +327,7 @@
         <field name="thruDate" title="${uiLabelMap.CommonThruDate}" ></field>
         <field name="sequenceNum" title="${uiLabelMap.ProductSequenceNum}" 
></field>
         <field name="quantity" title="${uiLabelMap.ProductQuantity}" ></field>
-        <field name="comments" ><ignored/></field>
+        <field name="comments" ><textarea/></field>
         <field name="submitButton" title="${uiLabelMap.CommonAdd}" 
widget-style="smallSubmit"><submit button-type="button"/></field>
     </form>
     <form name="UpdateProductCategoryMemeber" type="list"
@@ -343,7 +343,9 @@
         </field>
         <field name="fromDate" title="${uiLabelMap.CommonFromDateTime}" 
widget-style="tabletext"><display/></field>
         <field name="thruDate" 
title="${uiLabelMap.CommonThruDateTime}"></field>
-        <field name="comments" title="${uiLabelMap.ProductComments}" 
><ignored/></field>
+        <field name="sequenceNum" title="${uiLabelMap.ProductSequenceNum}" 
></field>
+        <field name="quantity" title="${uiLabelMap.ProductQuantity}" ></field>
+        <field name="comments" title="${uiLabelMap.ProductComments}" 
><textarea/></field>
         <field name="submitButton" title="${uiLabelMap.CommonUpdate}" 
widget-style="smallSubmit"><submit button-type="button"/></field>
         <field name="deleteLink" title="" widget-style="buttontext">
             <hyperlink 
target="removeProductFromCategory?productId=${productId}&amp;productCategoryId=${productCategoryId}&amp;fromDate=${fromDate}"


Reply via email to