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 @@ ...@@ -5,7 +5,7 @@
"generate": "widget", "generate": "widget",
"type": "header", "type": "header",
"property_dict": { "property_dict": {
"id": "search-header", "id": "search-header-detail",
"theme": "slapos-black", "theme": "slapos-black",
"add_content": 0, "add_content": 0,
"section_list":["last"], "section_list":["last"],
...@@ -38,11 +38,6 @@ ...@@ -38,11 +38,6 @@
"public_key": "6Ldpb-oSAAAAAGwriKpk4ol1n4yjN_as6M4xv0zA" "public_key": "6Ldpb-oSAAAAAGwriKpk4ol1n4yjN_as6M4xv0zA"
}, },
"children": [{ "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", "type": "input",
"direct": {"className": "action translate"}, "direct": {"className": "action translate"},
"attributes": {"type": "submit", "data-column": "brand_id", "data-i18n": "[value]global_dict.search_brands", "data-action": "custom_checkbox_search"}, "attributes": {"type": "submit", "data-column": "brand_id", "data-i18n": "[value]global_dict.search_brands", "data-action": "custom_checkbox_search"},
...@@ -51,7 +46,12 @@ ...@@ -51,7 +46,12 @@
"portal_type_source": "Portal Category", "portal_type_source": "Portal Category",
"portal_type_title": "category", "portal_type_title": "category",
"initial_query": {"query": "reference: 'sub_websection'", "include_docs": true, "select_list": ["_id", "title", "title_i18n"]}, "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": [ "scheme": [
{ {
"position": "center", "position": "center",
...@@ -71,8 +71,6 @@ ...@@ -71,8 +71,6 @@
"property_dict": { "property_dict": {
"theme": "slapos-white", "theme": "slapos-white",
"map_children": "listItem", "map_children": "listItem",
"filter": true,
"input": "#select_brand",
"dynamic": true "dynamic": true
}, },
"children": [] "children": []
...@@ -89,11 +87,6 @@ ...@@ -89,11 +87,6 @@
"expanded_icon": "caret-up" "expanded_icon": "caret-up"
}, },
"children": [{ "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", "type": "input",
"direct": {"className": "action translate"}, "direct": {"className": "action translate"},
"attributes": {"type": "submit", "data-column": "category", "data-i18n": "[value]global_dict.search_categories", "data-action": "custom_checkbox_search"}, "attributes": {"type": "submit", "data-column": "category", "data-i18n": "[value]global_dict.search_categories", "data-action": "custom_checkbox_search"},
...@@ -102,7 +95,12 @@ ...@@ -102,7 +95,12 @@
"portal_type_source": "Portal Category", "portal_type_source": "Portal Category",
"portal_type_title": "category", "portal_type_title": "category",
"initial_query": {"query": "reference: 'product_category'", "include_docs": true, "select_list": ["_id", "title", "title_i18n"]}, "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": [ "scheme": [
{ {
"position": "center", "position": "center",
...@@ -122,8 +120,6 @@ ...@@ -122,8 +120,6 @@
"property_dict": { "property_dict": {
"theme": "slapos-white", "theme": "slapos-white",
"map_children": "listItem", "map_children": "listItem",
"filter": true,
"input": "#select_category",
"dynamic": true "dynamic": true
}, },
"children": [] "children": []
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"generate": "widget", "generate": "widget",
"type": "header", "type": "header",
"property_dict": { "property_dict": {
"id": "search-header", "id": "search-header-groups",
"theme": "slapos-black", "theme": "slapos-black",
"add_content": 0, "add_content": 0,
"section_list":["last"], "section_list":["last"],
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"generate": "widget", "generate": "widget",
"type": "header", "type": "header",
"property_dict": { "property_dict": {
"id": "search-header", "id": "search-header-sort",
"theme": "slapos-black", "theme": "slapos-black",
"add_content": 0, "add_content": 0,
"section_list":["last"], "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