svn commit: r503925 - /ofbiz/trunk/applications/product/webapp/catalog/category/EditCategoryProducts.ftl

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

svn commit: r503925 - /ofbiz/trunk/applications/product/webapp/catalog/category/EditCategoryProducts.ftl

lektran
Author: lektran
Date: Mon Feb  5 16:01:54 2007
New Revision: 503925

URL: http://svn.apache.org/viewvc?view=rev&rev=503925
Log:
Applied patch from Anil K Patel (OFBIZ-687) with minor mods, Category -> Products tab show small image for each product

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

Modified: ofbiz/trunk/applications/product/webapp/catalog/category/EditCategoryProducts.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/category/EditCategoryProducts.ftl?view=diff&rev=503925&r1=503924&r2=503925
==============================================================================
--- ofbiz/trunk/applications/product/webapp/catalog/category/EditCategoryProducts.ftl (original)
+++ ofbiz/trunk/applications/product/webapp/catalog/category/EditCategoryProducts.ftl Mon Feb  5 16:01:54 2007
@@ -61,7 +61,12 @@
             <#assign hasExpired = false>
             <#if productCategoryMember.thruDate?exists && nowTimestamp.after(productCategoryMember.getTimestamp("thruDate"))><#assign hasExpired = true></#if>
             <tr valign="middle">
-                <td><a href="<@ofbizUrl>EditProduct?productId=${(productCategoryMember.productId)?if_exists}</@ofbizUrl>" class="buttontext"><#if product?exists>${(product.internalName)?if_exists}</#if> [${(productCategoryMember.productId)?if_exists}]</a></td>
+                <td>
+                    <#if (product.smallImageUrl)?exists>
+                       <a href="<@ofbizUrl>EditProduct?productId=${(productCategoryMember.productId)?if_exists}</@ofbizUrl>"><img alt="Small Image" src="<@ofbizContentUrl>${product.smallImageUrl}</@ofbizContentUrl>" height="40" width="40" align="middle"></a>
+                    </#if>
+                   <a href="<@ofbizUrl>EditProduct?productId=${(productCategoryMember.productId)?if_exists}</@ofbizUrl>" class="buttontext"><#if product?exists>${(product.internalName)?if_exists}</#if> [${(productCategoryMember.productId)?if_exists}]</a>
+                </td>
                 <td><div class="tabletext"<#if hasntStarted> style="color: red;"</#if>>${(productCategoryMember.fromDate)?if_exists}</div></td>
                 <td align="center">
                     <input type="hidden" name="productId${suffix}" value="${(productCategoryMember.productId)?if_exists}">