Author: buscob
Date: Sat Nov 6 14:47:51 2010
New Revision: 1032083
URL:
http://svn.apache.org/viewvc?rev=1032083&view=revLog:
Replaced ChooseTopCategory.ftl with its equivalent form widget.
Removed:
ofbiz/trunk/applications/product/webapp/catalog/ChooseTopCategory.ftl
Modified:
ofbiz/trunk/applications/product/widget/catalog/CategoryForms.xml
ofbiz/trunk/applications/product/widget/catalog/CommonScreens.xml
Modified: ofbiz/trunk/applications/product/widget/catalog/CategoryForms.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/widget/catalog/CategoryForms.xml?rev=1032083&r1=1032082&r2=1032083&view=diff==============================================================================
--- ofbiz/trunk/applications/product/widget/catalog/CategoryForms.xml (original)
+++ ofbiz/trunk/applications/product/widget/catalog/CategoryForms.xml Sat Nov 6 14:47:51 2010
@@ -211,4 +211,13 @@ under the License.
</hyperlink>
</field>
</form>
+ <form name="ListTopCategory" type="list" list-name="noParentCategories" odd-row-style="alternate-row" default-table-style="basic-table">
+ <field name="productCategoryId" widget-style="buttontext">
+ <hyperlink target="EditCategory" description="${productCategoryId}" also-hidden="false">
+ <parameter param-name="CATALOG_TOP_CATEGORY" value="${productCategoryId}"/>
+ <parameter param-name="productCategoryId" value="${productCategoryId}"/>
+ </hyperlink>
+ </field>
+ <field name="description"><display/></field>
+ </form>
</forms>
Modified: ofbiz/trunk/applications/product/widget/catalog/CommonScreens.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/widget/catalog/CommonScreens.xml?rev=1032083&r1=1032082&r2=1032083&view=diff==============================================================================
--- ofbiz/trunk/applications/product/widget/catalog/CommonScreens.xml (original)
+++ ofbiz/trunk/applications/product/widget/catalog/CommonScreens.xml Sat Nov 6 14:47:51 2010
@@ -399,7 +399,9 @@ under the License.
<container style="button-bar">
<link target="EditCategory" text="${uiLabelMap.ProductNewCategory}" style="buttontext create"/>
</container>
- <platform-specific><html><html-template location="component://product/webapp/catalog/ChooseTopCategory.ftl"/></html></platform-specific>
+ <screenlet title="${uiLabelMap.ProductCategoryWithNoParent}">
+ <include-form name="ListTopCategory" location="component://product/widget/catalog/CategoryForms.xml"/>
+ </screenlet>
</decorator-section>
</decorator-screen>
</widgets>