Commit 3d34d589 authored by Sven Franck's avatar Sven Franck

app: added product module and overview page

parent 1cb981c2
......@@ -82,7 +82,7 @@
"secret_hash": "foo",
"public_key": "6Ldpb-oSAAAAAGwriKpk4ol1n4yjN_as6M4xv0zA"
},
"children": [{"type": "input", "direct": {"id": "product_search", "className": "required translate"}, "attributes": {"type": "text", "data-theme": "slapos-white", "data-i18n": "[placeholder]global_dict.search_items" }, "logic": {"clear": true, "action": {"action":"search", "icon": "search", "text": "Search", "text_i18n": "global_dict.search_items"}, "add_label": false}},
"children": [{"type": "input", "direct": {"id": "product_search", "className": "translate"}, "attributes": {"type": "text", "data-theme": "slapos-white", "data-i18n": "[placeholder]global_dict.search_items" }, "logic": {"clear": true, "action": {"action":"search", "icon": "search", "text": "Search", "text_i18n": "global_dict.search_items"}, "add_label": false}},
{
"generate": "widget",
"type": "controlgroup",
......
{
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"property_dict": {
"title_i18n": "portal_type_dict.product_dict.text_dict.products",
"theme": "slapos-white"
},
"view_dict": {
"default": [
{"href": "product_overview"}
]
}
}
]
}
\ No newline at end of file
{
"portal_type_source": "Product",
"portal_type_title": "product",
"skip_total_records": true,
"initial_query": {"include_docs": true, "limit": [0,16], "select_list": ["currency", "_id", "brand", "description_short", "price", "default_image_path"]},
"property_dict": {
"link": true,
"link_identifier": "_id",
"link_core": "product_module",
"pagination": {
"class_list": "center",
"option_list": [
{"value": "8", "text": "8", "text_i18n":"global_dict.8"},
{"value": "16", "text": "16", "text_i18n":"global_dict.16"},
{"value": "32", "text": "32", "text_i18n":"global_dict.32"},
{"value": "64", "text": "64", "text_i18n":"global_dict.64"}
]
}
},
"scheme": [
{
"position": "left",
"field_list": [
{"field": "default_image_path", "type":"image"}
]
}, {
"position": "center",
"field_list": [
{"field": "brand", "type": "h3", "mergeText": "description_short"},
{"field": "price", "type": "p", "format": {"type": "integer", "digits": 2}, "mergeText": "currency"}
]
}
],
"children": [{
"generate": "widget",
"type": "listview",
"property_dict": {
"class_list": "responsive",
"filter": "true",
"input": "#product_search",
"theme": "slapos-white",
"map_children": "listItem",
"dynamic": true
},
"children":[]
}]
}
\ No newline at end of file
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