Author: lektran
Date: Tue Mar 13 00:41:33 2007
New Revision: 517576

URL: http://svn.apache.org/viewvc?view=rev&rev=517576
Log:
Converted FindProductStore to use a form widget

Removed:
    ofbiz/trunk/applications/product/webapp/catalog/store/FindProductStore.ftl
Modified:
    ofbiz/trunk/applications/product/webapp/catalog/store/ProductStoreForms.xml
    ofbiz/trunk/applications/product/widget/catalog/StoreScreens.xml

Modified: 
ofbiz/trunk/applications/product/webapp/catalog/store/ProductStoreForms.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/store/ProductStoreForms.xml?view=diff&rev=517576&r1=517575&r2=517576
==============================================================================
--- ofbiz/trunk/applications/product/webapp/catalog/store/ProductStoreForms.xml 
(original)
+++ ofbiz/trunk/applications/product/webapp/catalog/store/ProductStoreForms.xml 
Tue Mar 13 00:41:33 2007
@@ -20,6 +20,16 @@
 
 <forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
         
xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/widget-form.xsd";>
+    <form name="FindProductStore" type="list" list-name="productStores">
+        <field name="ProductStoreNameId" 
title="${uiLabelMap.ProductStoreNameId}" widget-style="buttontext">
+            <hyperlink 
target="EditProductStore?productStoreId=${productStoreId}" 
description="${storeName} [${productStoreId}]"/>
+        </field>
+        <field name="title" 
title="${uiLabelMap.ProductTitle}"><display/></field>
+        <field name="subtitle" 
title="${uiLabelMap.ProductSubTitle}"><display/></field>
+        <field name="editLink" title="" widget-style="buttontext">
+            <hyperlink 
target="EditProductStore?productStoreId=${productStoreId}" 
description="${uiLabelMap.CommonEdit}"/>
+        </field>
+    </form>
     <form name="EditProductStore" type="single" target="updateProductStore" 
title="" default-map-name="productStore"
         default-title-style="tableheadtext" default-widget-style="inputBox" 
default-tooltip-style="tabletext">
 

Modified: ofbiz/trunk/applications/product/widget/catalog/StoreScreens.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/widget/catalog/StoreScreens.xml?view=diff&rev=517576&r1=517575&r2=517576
==============================================================================
--- ofbiz/trunk/applications/product/widget/catalog/StoreScreens.xml (original)
+++ ofbiz/trunk/applications/product/widget/catalog/StoreScreens.xml Tue Mar 13 
00:41:33 2007
@@ -35,9 +35,9 @@
             <widgets>
                 <decorator-screen name="CommonProductStoreDecorator" 
location="${parameters.mainDecoratorLocation}">
                     <decorator-section name="body">
-                        <platform-specific>
-                            <html><html-template 
location="component://product/webapp/catalog/store/FindProductStore.ftl"/></html>
-                        </platform-specific>
+                        <label 
style="head1">${uiLabelMap.ProductProductStoreList}</label>
+                        <container><link target="EditProductStore" 
text="[${uiLabelMap.ProductCreateNewProductStore}]" 
style="buttontext"/></container>
+                        <include-form name="FindProductStore" 
location="component://product/webapp/catalog/store/ProductStoreForms.xml"/>
                     </decorator-section>
                 </decorator-screen>
             </widgets>


Reply via email to