svn commit: r800210 - /ofbiz/trunk/applications/product/webapp/catalog/main.ftl

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

svn commit: r800210 - /ofbiz/trunk/applications/product/webapp/catalog/main.ftl

ashish-18
Author: ashish
Date: Mon Aug  3 06:26:27 2009
New Revision: 800210

URL: http://svn.apache.org/viewvc?rev=800210&view=rev
Log:
Adding lookup so it will be easy to search category and products from the main page.
Although lookup exists in the left navigation section but keeping it here as well will be fine IMO.

Modified:
    ofbiz/trunk/applications/product/webapp/catalog/main.ftl

Modified: ofbiz/trunk/applications/product/webapp/catalog/main.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/main.ftl?rev=800210&r1=800209&r2=800210&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/webapp/catalog/main.ftl (original)
+++ ofbiz/trunk/applications/product/webapp/catalog/main.ftl Mon Aug  3 06:26:27 2009
@@ -28,22 +28,24 @@
         <br/>
         <#if security.hasEntityPermission("CATALOG", "_VIEW", session)>
           <div class="label">${uiLabelMap.ProductEditCatalogWithCatalogId}:</div>
-          <form method="post" action="<@ofbizUrl>EditProdCatalog</@ofbizUrl>" style="margin: 0;">
+          <form method="post" action="<@ofbizUrl>EditProdCatalog</@ofbizUrl>" style="margin: 0;" name="EditProdCatalogForm">
             <input type="text" size="20" maxlength="20" name="prodCatalogId" value=""/>
             <input type="submit" value=" ${uiLabelMap.ProductEditCatalog}" class="smallSubmit"/>
           </form>
           <div class="label">${uiLabelMap.CommonOr}: <a href="<@ofbizUrl>EditProdCatalog</@ofbizUrl>" class="buttontext">${uiLabelMap.ProductCreateNewCatalog}</a></div>
           <br/>
           <div class="label">${uiLabelMap.ProductEditCategoryWithCategoryId}:</div>
-          <form method="post" action="<@ofbizUrl>EditCategory</@ofbizUrl>" style="margin: 0;">
+          <form method="post" action="<@ofbizUrl>EditCategory</@ofbizUrl>" style="margin: 0;" name="EditCategoryForm">
             <input type="text" size="20" maxlength="20" name="productCategoryId" value=""/>
+            <a href="javascript:call_fieldlookup2(document.EditCategoryForm.productCategoryId,'LookupProductCategory');"><img src='/images/fieldlookup.gif' width='15' height='14' border='0' alt="${uiLabelMap.CommonClickHereForFieldLookup}"/></a>
             <input type="submit" value="${uiLabelMap.ProductEditCategory}" class="smallSubmit"/>
           </form>
           <div class="label">${uiLabelMap.CommonOr}: <a href="<@ofbizUrl>EditCategory</@ofbizUrl>" class="buttontext">${uiLabelMap.ProductCreateNewCategory}</a></div>
           <br/>
           <div class="label">${uiLabelMap.ProductEditProductWithProductId}:</div>
-          <form method="post" action="<@ofbizUrl>EditProduct</@ofbizUrl>" style="margin: 0;">
+          <form method="post" action="<@ofbizUrl>EditProduct</@ofbizUrl>" style="margin: 0;" name="EditProductForm">
             <input type="text" size="20" maxlength="20" name="productId" value=""/>
+            <a href="javascript:call_fieldlookup2(document.EditProductForm.productId,'LookupProduct');"><img src='/images/fieldlookup.gif' width='15' height='14' border='0' alt="${uiLabelMap.CommonClickHereForFieldLookup}"/></a>
             <input type="submit" value=" ${uiLabelMap.ProductEditProduct}" class="smallSubmit"/>
           </form>
           <div class="label">${uiLabelMap.CommonOr}: <a href="<@ofbizUrl>EditProduct</@ofbizUrl>" class="buttontext">${uiLabelMap.ProductCreateNewProduct}</a></div>