Author: jleroux
Date: Mon Jan 24 14:52:28 2011 New Revision: 1062811 URL: http://svn.apache.org/viewvc?rev=1062811&view=rev Log: Fix an issue I found while looking at OFBIZ-3938 When you click on the calendar icon you get an alert "Target element undefined not found".it... Modified: ofbiz/branches/release09.04/applications/product/webapp/catalog/category/EditCategoryProducts.ftl Modified: ofbiz/branches/release09.04/applications/product/webapp/catalog/category/EditCategoryProducts.ftl URL: http://svn.apache.org/viewvc/ofbiz/branches/release09.04/applications/product/webapp/catalog/category/EditCategoryProducts.ftl?rev=1062811&r1=1062810&r2=1062811&view=diff ============================================================================== --- ofbiz/branches/release09.04/applications/product/webapp/catalog/category/EditCategoryProducts.ftl (original) +++ ofbiz/branches/release09.04/applications/product/webapp/catalog/category/EditCategoryProducts.ftl Mon Jan 24 14:52:28 2011 @@ -41,6 +41,7 @@ under the License. </#if> </div> <div class="screenlet-body"> + <#if (listSize == 0)> <table cellspacing="0" class="basic-table"> <tr class="header-row"> <td>${uiLabelMap.ProductProductNameId}</td> @@ -48,8 +49,20 @@ under the License. <td align="center">${uiLabelMap.ProductThruDateTimeSequenceQuantity} ${uiLabelMap.CommonComments}</td> <td> </td> </tr> - <#if (listSize > 0)> - <tr><td> + </table> + <#else> + <form method="post" action="<@ofbizUrl>updateCategoryProductMember</@ofbizUrl>" name="updateCategoryProductForm"> + <input type="hidden" name="VIEW_SIZE" value="${viewSize}"/> + <input type="hidden" name="VIEW_INDEX" value="${viewIndex}"/> + <input type="hidden" name="activeOnly" value="${activeOnly.toString()}" /> + <input type="hidden" name="productCategoryId" value="${productCategoryId?if_exists}" /> + <table cellspacing="0" class="basic-table"> + <tr class="header-row"> + <td>${uiLabelMap.ProductProductNameId}</td> + <td>${uiLabelMap.CommonFromDateTime}</td> + <td align="center">${uiLabelMap.ProductThruDateTimeSequenceQuantity} ${uiLabelMap.CommonComments}</td> + <td> </td> + </tr> <#assign rowClass = "2"> <#assign rowCount = 0> <#list productCategoryMembers as productCategoryMember> @@ -59,11 +72,6 @@ under the License. <#if productCategoryMember.fromDate?exists && nowTimestamp.before(productCategoryMember.getTimestamp("fromDate"))><#assign hasntStarted = true></#if> <#assign hasExpired = false> <#if productCategoryMember.thruDate?exists && nowTimestamp.after(productCategoryMember.getTimestamp("thruDate"))><#assign hasExpired = true></#if> - <form method="post" action="<@ofbizUrl>updateCategoryProductMember</@ofbizUrl>" name="updateCategoryProductForm"> - <input type="hidden" name="VIEW_SIZE" value="${viewSize}"/> - <input type="hidden" name="VIEW_INDEX" value="${viewIndex}"/> - <input type="hidden" name="activeOnly" value="${activeOnly.toString()}"> - <input type="hidden" name="productCategoryId" value="${productCategoryId?if_exists}"> <tr valign="middle"<#if rowClass == "1"> class="alternate-row"</#if>> <td> <#if (product.smallImageUrl)?exists> |
Free forum by Nabble | Edit this page |