[OFBiz] SVN: r6991 - trunk/applications/product/webapp/catalog/category

jacopo@svn.ofbiz.org jacopo at svn.ofbiz.org
Tue Mar 14 02:45:45 CST 2006


Author: jacopo
Date: 2006-03-14 02:45:38 -0600 (Tue, 14 Mar 2006)
New Revision: 6991

Modified:
   trunk/applications/product/webapp/catalog/category/EditCategory.ftl
Log:
Applied slightly modified patch from Ray Barlow (OFBIZ-790) to make the form's input box for category.description field a textarea to avoid data truncation.
Also fixed some html tags to make the page xhtml compliant.


Modified: trunk/applications/product/webapp/catalog/category/EditCategory.ftl
===================================================================
--- trunk/applications/product/webapp/catalog/category/EditCategory.ftl	2006-03-14 03:52:35 UTC (rev 6990)
+++ trunk/applications/product/webapp/catalog/category/EditCategory.ftl	2006-03-14 08:45:38 UTC (rev 6991)
@@ -100,7 +100,7 @@
   <tr>
     <td width="26%" align="right"><div class="tabletext">${uiLabelMap.ProductDescription}</div></td>
     <td>&nbsp;</td>
-    <td width="74%"><input type="text" <#if productCategory?has_content>value="${productCategory.description?if_exists}"</#if> name="description" size="60" maxlength="60" class="inputBox"/></td>
+    <td width="74%"><textarea class="textAreaBox" name="description" cols="60" rows="2"><#if productCategory?has_content>${(productCategory.description)?if_exists}</#if></textarea></td>
   </tr>
 <#--
   <tr>
@@ -225,22 +225,22 @@
     </form>
     <hr/>
     <div class="head2">Duplicate a Product Category</div>
-    <form action="/catalog/control/DuplicateProductCategory" method="POST" style="margin: 0;">
+    <form action="/catalog/control/DuplicateProductCategory" method="post" style="margin: 0;">
         <span class="tabletext">Duplicate Selected with New ID:</span>
-        <input type=hidden name="oldProductCategoryId" value="${productCategoryId}">
+        <input type=hidden name="oldProductCategoryId" value="${productCategoryId}"/>
         <div>
-            <input type="text" class="inputBox" size="20" maxlength="20" name="productCategoryId" >&nbsp;<INPUT type=submit class="smallSubmit" value="Go!">
+            <input type="text" class="inputBox" size="20" maxlength="20" name="productCategoryId"/>&nbsp;<input type=submit class="smallSubmit" value="Go!"/>
         </div>
         <div class="tabletext">
             <b>Duplicate:</b>
-            ${uiLabelMap.ProductCategoryContent}&nbsp;<input type="checkbox" class="checkBox" name="duplicateContent" value="Y" checked/>
-            ${uiLabelMap.ProductCategoryRollupParentCategories}&nbsp;<input type="checkbox" class="checkBox" name="duplicateParentRollup" value="Y" checked/>
+            ${uiLabelMap.ProductCategoryContent}&nbsp;<input type="checkbox" class="checkBox" name="duplicateContent" value="Y" checked />
+            ${uiLabelMap.ProductCategoryRollupParentCategories}&nbsp;<input type="checkbox" class="checkBox" name="duplicateParentRollup" value="Y" checked />
             ${uiLabelMap.ProductCategoryRollupChildCategories}&nbsp;<input type="checkbox" class="checkBox" name="duplicateChildRollup" value="Y" />
-            ${uiLabelMap.ProductProducts}&nbsp;<input type="checkbox" class="checkBox" name="duplicateMembers" value="Y" checked/>
-            ${uiLabelMap.ProductCatalogs}&nbsp;<input type="checkbox" class="checkBox" name="duplicateCatalogs" value="Y" checked/>
-            ${uiLabelMap.ProductFeatures}&nbsp;<input type="checkbox" class="checkBox" name="duplicateFeatures" value="Y" checked/>
-            ${uiLabelMap.PartyParties}&nbsp;<input type="checkbox" class="checkBox" name="duplicateRoles" value="Y" checked/>
-            ${uiLabelMap.ProductAttributes}&nbsp;<input type="checkbox" class="checkBox" name="duplicateAttributes" value="Y" checked/>
+            ${uiLabelMap.ProductProducts}&nbsp;<input type="checkbox" class="checkBox" name="duplicateMembers" value="Y" checked />
+            ${uiLabelMap.ProductCatalogs}&nbsp;<input type="checkbox" class="checkBox" name="duplicateCatalogs" value="Y" checked />
+            ${uiLabelMap.ProductFeatures}&nbsp;<input type="checkbox" class="checkBox" name="duplicateFeatures" value="Y" checked />
+            ${uiLabelMap.PartyParties}&nbsp;<input type="checkbox" class="checkBox" name="duplicateRoles" value="Y" checked />
+            ${uiLabelMap.ProductAttributes}&nbsp;<input type="checkbox" class="checkBox" name="duplicateAttributes" value="Y" checked />
         </div>
     </form>
   </#if>



More information about the Svn mailing list