From 1e2b2fe07a9138682e34bf7dadf2d010e2a3c3fd Mon Sep 17 00:00:00 2001 From: Deepak Dixit Date: Sat, 19 Dec 2015 07:20:23 +0000 Subject: [PATCH] (OFBIZ-2985) Html cleanup of advanced search page. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1720887 13f79535-47bb-0310-9956-ffa450edef68 --- .../ecommerce/catalog/advancedsearch.ftl | 169 ++++++++---------- 1 file changed, 75 insertions(+), 94 deletions(-) diff --git a/ecommerce/webapp/ecommerce/catalog/advancedsearch.ftl b/ecommerce/webapp/ecommerce/catalog/advancedsearch.ftl index 1d9e11b1b..2fb61b21e 100644 --- a/ecommerce/webapp/ecommerce/catalog/advancedsearch.ftl +++ b/ecommerce/webapp/ecommerce/catalog/advancedsearch.ftl @@ -19,116 +19,97 @@ under the License. <#assign searchOptionsHistoryList = Static["org.ofbiz.product.product.ProductSearchSession"].getSearchOptionsHistoryList(session)/> <#assign currentCatalogId = Static["org.ofbiz.product.catalog.CatalogWorker"].getCurrentCatalogId(request)/>

${uiLabelMap.ProductAdvancedSearchInCategory}

-
- - - + +
+ + <#if searchCategory?has_content> - -
- - - - - - - + + +

${(searchCategory.description)?if_exists}

+
+ + + +
- - - - +
+ + + checked="checked" /> + checked="checked" /> +
<#list productFeatureTypeIdsOrdered as productFeatureTypeId> <#assign findPftMap = Static["org.ofbiz.base.util.UtilMisc"].toMap("productFeatureTypeId", productFeatureTypeId)> <#assign productFeatureType = delegator.findOne("ProductFeatureType", findPftMap, true)> <#assign productFeatures = productFeaturesByTypeMap[productFeatureTypeId]> - - - - +
+ + +
- - - - - <#if searchConstraintStrings?has_content> - - - - - - - - - -
${uiLabelMap.ProductCategory}${(searchCategory.description)!}
${uiLabelMap.ProductIncludeSubCategories} - ${uiLabelMap.CommonYes} - ${uiLabelMap.CommonNo} -
${uiLabelMap.ProductKeywords} - -
- ${uiLabelMap.CommonAny} checked="checked" /> - ${uiLabelMap.CommonAll} checked="checked" /> -
${(productFeatureType.get("description",locale))!} - -
${uiLabelMap.ProductSortedBy} - -
- ${uiLabelMap.EcommerceLowToHigh} - ${uiLabelMap.EcommerceHighToLow} -
${uiLabelMap.ProductLastSearch} - <#list searchConstraintStrings as searchConstraintString> -
 - ${searchConstraintString}
- -
${uiLabelMap.ProductSortedBy}: ${searchSortOrderString}
-
- ${uiLabelMap.ProductNewSearch} - ${uiLabelMap.CommonRefineSearch} -
-
 ${uiLabelMap.CommonFind}
- - <#if searchOptionsHistoryList?has_content> - - -

${uiLabelMap.OrderLastSearches}...

-
- ${uiLabelMap.OrderClearSearchHistory} - ${uiLabelMap.OrderClearSearchHistoryNote} + + + +
- <#list searchOptionsHistoryList as searchOptions> - <#-- searchOptions type is ProductSearchSession.ProductSearchOptions --> + <#if searchConstraintStrings?has_content> +
+ + <#list searchConstraintStrings as searchConstraintString> +

${searchConstraintString}

+ +

${uiLabelMap.ProductSortedBy}: ${searchSortOrderString}

+
+ + +
+
+ +
+ +
+ <#if searchOptionsHistoryList?has_content> +

${uiLabelMap.OrderLastSearches}...

+
+ ${uiLabelMap.OrderClearSearchHistory} +

${uiLabelMap.OrderClearSearchHistoryNote}

+
+ <#list searchOptionsHistoryList as searchOptions> + <#-- searchOptions type is ProductSearchSession.ProductSearchOptions -->
- ${uiLabelMap.EcommerceSearchNumber}${searchOptions_index + 1} - ${uiLabelMap.CommonSearch} - ${uiLabelMap.CommonRefine} +

${uiLabelMap.EcommerceSearchNumber}${searchOptions_index + 1}

+ ${uiLabelMap.CommonSearch} + ${uiLabelMap.CommonRefine}
<#assign constraintStrings = searchOptions.searchGetConstraintStrings(false, delegator, locale)> <#list constraintStrings as constraintString> -
 - ${constraintString}
+

- ${constraintString}

<#if searchOptions_has_next> - - + + +