Commit 38ef83bb authored by Sven Franck's avatar Sven Franck

data: replaced hand made search filter with dyno filter

parent 6af52abb
......@@ -5,7 +5,7 @@
"generate": "widget",
"type": "header",
"property_dict": {
"id": "search-header",
"id": "search-header-detail",
"theme": "slapos-black",
"add_content": 0,
"section_list":["last"],
......@@ -38,11 +38,6 @@
"public_key": "6Ldpb-oSAAAAAGwriKpk4ol1n4yjN_as6M4xv0zA"
},
"children": [{
"type": "input",
"direct": {"id":"select_brand", "className": "translate"},
"attributes": {"data-enhanced":"true", "data-inset": false, "data-i18n": "[placeholder]global_dict.filter", "data-icon":"search", "data-action-btn":"true", "data-type":"search", "type":"search"},
"logic":{"clear":"true", "add_label": false}
}, {
"type": "input",
"direct": {"className": "action translate"},
"attributes": {"type": "submit", "data-column": "brand_id", "data-i18n": "[value]global_dict.search_brands", "data-action": "custom_checkbox_search"},
......@@ -51,7 +46,12 @@
"portal_type_source": "Portal Category",
"portal_type_title": "category",
"initial_query": {"query": "reference: 'sub_websection'", "include_docs": true, "select_list": ["_id", "title", "title_i18n"]},
"property_dict": {},
"property_dict": {
"search": {
"no_wrap": true,
"text_i18n": "global_dict.filter"
}
},
"scheme": [
{
"position": "center",
......@@ -71,8 +71,6 @@
"property_dict": {
"theme": "slapos-white",
"map_children": "listItem",
"filter": true,
"input": "#select_brand",
"dynamic": true
},
"children": []
......@@ -89,11 +87,6 @@
"expanded_icon": "caret-up"
},
"children": [{
"type": "input",
"direct": {"id":"select_category", "className": "translate"},
"attributes": {"data-enhanced":"true", "data-inset": false, "data-i18n": "[placeholder]global_dict.filter", "data-icon":"search", "data-action-btn":"true", "data-type":"search", "type":"search"},
"logic":{"clear":"true", "add_label": false}
}, {
"type": "input",
"direct": {"className": "action translate"},
"attributes": {"type": "submit", "data-column": "category", "data-i18n": "[value]global_dict.search_categories", "data-action": "custom_checkbox_search"},
......@@ -102,7 +95,12 @@
"portal_type_source": "Portal Category",
"portal_type_title": "category",
"initial_query": {"query": "reference: 'product_category'", "include_docs": true, "select_list": ["_id", "title", "title_i18n"]},
"property_dict": {},
"property_dict": {
"search": {
"no_wrap": true,
"text_i18n": "global_dict.filter"
}
},
"scheme": [
{
"position": "center",
......@@ -122,8 +120,6 @@
"property_dict": {
"theme": "slapos-white",
"map_children": "listItem",
"filter": true,
"input": "#select_category",
"dynamic": true
},
"children": []
......
......@@ -5,7 +5,7 @@
"generate": "widget",
"type": "header",
"property_dict": {
"id": "search-header",
"id": "search-header-groups",
"theme": "slapos-black",
"add_content": 0,
"section_list":["last"],
......
......@@ -4,7 +4,7 @@
"generate": "widget",
"type": "header",
"property_dict": {
"id": "search-header",
"id": "search-header-sort",
"theme": "slapos-black",
"add_content": 0,
"section_list":["last"],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment