Commit 9402c085 authored by Sven Franck's avatar Sven Franck

harmonized gadget API for listbox

parent e01fe983
...@@ -9,33 +9,34 @@ ...@@ -9,33 +9,34 @@
"initial_query_url_identifier": "release_reference_id", "initial_query_url_identifier": "release_reference_id",
"dynamic_children": [5], "dynamic_children": [5],
"wrap_gadget": 2, "wrap_gadget": 2,
"layout": { "check": true,
"header": [ "radio": null,
[ "global_check": true,
{"column": "release_title", "show": true, "priority": 1, "sort":true}, "sortable": true,
{"column": "release_version", "show": true, "priority": 1, "sort":true}, "mergeable": true,
{"column": "release_description", "show": true, "priority": 5, "sort":true}, "link": true,
{"custom": true, "text": "Download", "text_i18n": "global_dict.export_dict.download", "show": true, "priority": 6, "sort": false} "link_identifier": null,
] "link_external": null,
], "link_source": null,
"body": [ "editable": null,
"action_menu": true
},
"scheme": {
"header": [
[
{"column": "release_title", "show": true, "priority": 1, "sort":true}, {"column": "release_title", "show": true, "priority": 1, "sort":true},
{"column": "release_version", "show": true, "priority": 1, "sort":true}, {"column": "release_version", "show": true, "priority": 1, "sort":true},
{"column": "release_description", "show": true, "priority": 5, "sort":true}, {"column": "release_description", "show": true, "priority": 5, "sort":true},
{"custom": "true", "show": true, "priority": 6, "action_list": [{"text": "Download", "class_list": "responsive", "text_i18n": "global_dict.export_dict.download", "action": "pdf", "icon": "file-alt"}]} {"custom": true, "text": "Download", "text_i18n": "global_dict.export_dict.download", "show": true, "priority": 6, "sort": false}
], ]
"footer": [] ],
}, "body": [
"feature_dict": { {"column": "release_title", "show": true, "priority": 1, "sort":true},
"check": true, {"column": "release_version", "show": true, "priority": 1, "sort":true},
"global_check": true, {"column": "release_description", "show": true, "priority": 5, "sort":true},
"sortable": true, {"custom": "true", "show": true, "priority": 6, "action_list": [{"text": "Download", "class_list": "responsive", "text_i18n": "global_dict.export_dict.download", "action": "pdf", "icon": "file-alt"}]}
"mergeable": true, ],
"linkable": true, "footer": []
"link_identifier": null,
"editable": null,
"action_menu": true
}
}, },
"children": [{ "children": [{
"generate": "widget", "generate": "widget",
......
{
"portal_type_source": "Software Product",
"portal_type_title": "software",
"portal_type_fields": "software_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,8]},
"form": true,
"id": "software_overview",
"property_dict": {
"link": true,
"link_identifier": "id",
"link_external": null,
"link_source": "item_url",
"ribbon": null,
"radio": null,
"check": null,
"dynamic_children": [0]
},
"scheme": [
{
"position": "left",
"fieldlist": [
{"field": "image_url", "type": "image"},
{"field": "title", "type": "alt"},
{"field": "some_translation_pointer", "type": "alt_i18n"},
{"custom": true, "type": "icon", "value": "baz"}
]
},
{
"position": "center",
"fieldlist": [
{"field": "title", "type": "h1"},
{"field": "description", "type": "p"},
{"field": "price", "type": "p", "aside": true},
{"field": "some_url", "type":"count"}
],
},
{
"position": "right",
"fieldlist": [
{"custom": true, "type": "icon", "value": "bar"},
{"field": "some_url", "type": "url", "external": true, "action": "baz", "title": null, "title_i18n": null}
]
}
],
"children": [{
"generate":"widget",
"type": "listview",
"class_list": "",
"theme": "slapos-white",
"property_dict": {
"alt_icon": null,
"numbered": false,
"inset": true,
"reveal": true,
"filter": true,
"input": "#foo",
"placeholder": null,
"filter_theme": null,
"divider_theme": "slapos-white",
"autodividers": true,
"count_theme": "slapos-white"
},
"children": []
}]
}
\ No newline at end of file
...@@ -11,29 +11,31 @@ ...@@ -11,29 +11,31 @@
"requires_authentication": true, "requires_authentication": true,
"depends_on": "login_state", "depends_on": "login_state",
"wrap_gadget": 2, "wrap_gadget": 2,
"layout": { "link": true,
"header": [ "link_identifier": "_id",
[ "editable": null,
{"custom": true, "text": "Status", "text_i18n": "portal_type_dict.computer_dict.text_dict.status", "show": true, "priority": 1}, "sortable": true
{"column": "title", "show": true, "priority": 1, "sort": true}, },
{"column": "reference", "show": true, "priority": 4}, "scheme": [
{"column": "translated_validation_state_title", "show": "true", "priority": 4} {
] "position": "header",
], "fieldlist": [
"body": [ {"custom": true, "text": "Status", "text_i18n": "portal_type_dict.computer_dict.text_dict.status", "show": true, "priority": 1},
{"custom": true, "show": true, "priority": 1, "status": true}, {"field": "title", "show": true, "priority": 1, "sort": true},
{"column": "title", "show": true, "priority": 1, "sort": true}, {"field": "reference", "show": true, "priority": 4},
{"column": "reference", "show": true, "priority": 4}, {"field": "translated_validation_state_title", "show": "true", "priority": 4}
{"column": "translated_validation_state_title", "show": "true", "priority": 4}], ]
"footer": []
}, },
"feature_dict": { {
"linkable": true, "position": "body",
"link_identifier": "id", "fieldlist": [
"editable": null, {"custom": true, "show": true, "priority": 1, "status": true},
"sortable": true {"field": "title", "show": true, "priority": 1, "sort": true},
{"field": "reference", "show": true, "priority": 4},
{"field": "translated_validation_state_title", "show": "true", "priority": 4}
]
} }
}, ],
"children": [ "children": [
{ {
"generate": "widget", "generate": "widget",
......
...@@ -13,30 +13,32 @@ ...@@ -13,30 +13,32 @@
"dynamic_children": [3], "dynamic_children": [3],
"requires_authentication": true, "requires_authentication": true,
"wrap_gadget": 2, "wrap_gadget": 2,
"layout": { "sortable": true,
"header": [ "mergeable": true,
[ "action_menu": true
{"column": "date", "show": true, "priority": 1, "sort":true}, },
{"column": "total_price", "show": true, "persist": true, "sort":false}, "scheme": [
{"column": "price_currency", "show": "true", "priority": 4, "merge": "total_price", "merger_text": "Total Price", "merger_i18n": "portal_type_dict.invoice_dict.fieldlist.total_price.title"}, {
{"column": "translated_simulation_state_title", "show":"true", "priority": 5}, "position": "header",
{"custom": true, "text": "Download", "text_i18n": "portal_type_dict.invoice_dict.text_dict.download", "show": true, "priority": 6, "sort": false} "fieldlist": [
] {"field": "date", "show": true, "priority": 1, "sort":true},
], {"field": "total_price", "show": true, "persist": true, "sort":false},
"body": [ {"field": "price_currency", "show": "true", "priority": 4, "merge": "total_price", "merger_text": "Total Price", "merger_i18n": "portal_type_dict.invoice_dict.fieldlist.total_price.title"},
{"column": "date", "show": true, "priority": 1, "sort":true}, {"field": "translated_simulation_state_title", "show":"true", "priority": 5},
{"column": "total_price", "show": true, "persist": true, "sort":false}, {"custom": true, "text": "Download", "text_i18n": "portal_type_dict.invoice_dict.text_dict.download", "show": true, "priority": 6, "sort": false}
{"column": "price_currency", "show": "true", "priority": 4, "merge": "total_price"}, ]
{"column": "translated_simulation_state_title", "show":"true", "priority": 5},
{"custom": true, "show": true, "persist": true, "action_list": [{"action": "download", "icon":"file-alt", "text": "Download", "text_i18n":"page_dict.invoices.download"}], "sort": false}
]
}, },
"feature_dict": { {
"sortable": true, "position": "body",
"mergeable": true, "fieldlist": [
"action_menu": true {"field": "date", "show": true, "priority": 1, "sort":true},
{"field": "total_price", "show": true, "persist": true, "sort":false},
{"field": "price_currency", "show": "true", "priority": 4, "merge": "total_price"},
{"field": "translated_simulation_state_title", "show":"true", "priority": 5},
{"custom": true, "show": true, "persist": true, "action_list": [{"action": "download", "icon":"file-alt", "text": "Download", "text_i18n":"page_dict.invoices.download"}], "sort": false}
]
} }
}, ],
"children": [ "children": [
{ {
"generate": "widget", "generate": "widget",
......
...@@ -15,28 +15,29 @@ ...@@ -15,28 +15,29 @@
"requires_authentication": true, "requires_authentication": true,
"depends_on": "login_state", "depends_on": "login_state",
"wrap_gadget": 2, "wrap_gadget": 2,
"layout": { "link": true,
"header": [ "link_identifier": "id"
[ },
{"custom": true, "text": "Status", "text_i18n": "portal_type_dict.network_dict.text_dict.status", "show": true, "priority": 6}, "scheme": [
{"column": "title", "show": true, "priority": 5}, {
{"column": "reference", "show": true, "priority": 5}, "position": "header",
{"column": "translated_validation_state_title", "show": "true", "priority": 3} "fieldlist": [
] {"custom": true, "text": "Status", "text_i18n": "portal_type_dict.network_dict.text_dict.status", "show": true, "priority": 6},
], {"field": "title", "show": true, "priority": 5},
"body": [ {"field": "reference", "show": true, "priority": 5},
{"custom": true, "show": true, "priority": 6, "status": true}, {"field": "translated_validation_state_title", "show": "true", "priority": 3}
{"column": "title", "show": true, "priority": 5}, ]
{"column": "reference", "show": true, "priority": 5},
{"column": "translated_validation_state_title", "show": "true", "priority": 3}],
"footer": []
}, },
"feature_dict": { {
"linkable": true, "position": "body",
"link_identifier": "id", "fieldlist": [
"editable": null {"custom": true, "show": true, "priority": 6, "status": true},
{"field": "title", "show": true, "priority": 5},
{"field": "reference", "show": true, "priority": 5},
{"field": "translated_validation_state_title", "show": "true", "priority": 3}
]
} }
}, ],
"children": [{ "children": [{
"generate": "widget", "generate": "widget",
"type": "table", "type": "table",
......
...@@ -14,24 +14,24 @@ ...@@ -14,24 +14,24 @@
"requires_authentication": true, "requires_authentication": true,
"depends_on": "login_state", "depends_on": "login_state",
"wrap_gadget": 2, "wrap_gadget": 2,
"layout": { "link": true,
"header": [ "link_identifier": "_id"
[
{"column": "title", "show": true, "priority": 5},
{"column": "reference", "show": true, "priority": 5}
]
],
"body": [
{"column": "title", "show": true, "priority": 5},
{"column": "reference", "show": true, "priority": 5}
],
"footer": []
},
"feature_dict": {
"linkable": true,
"link_identifier": "_id"
}
}, },
"scheme": [
{
"position": "header",
"fieldlist": [
{"field": "title", "show": true, "priority": 5},
{"field": "reference", "show": true, "priority": 5}
]
},{
"position": "body",
"fieldlist": [
{"field": "title", "show": true, "priority": 5},
{"field": "reference", "show": true, "priority": 5}
]
}
],
"children": [{ "children": [{
"type": "a", "type": "a",
"direct": {"className":"translate ui-btn ui-icon-edit ui-btn-icon-left ui-corner-all ui-btn-inline ui-btn-slapos-black ui-link", "href": "#networks::new"}, "direct": {"className":"translate ui-btn ui-icon-edit ui-btn-icon-left ui-corner-all ui-btn-inline ui-btn-slapos-black ui-link", "href": "#networks::new"},
......
...@@ -9,26 +9,27 @@ ...@@ -9,26 +9,27 @@
"initial_query_url_identifier": "reference_id", "initial_query_url_identifier": "reference_id",
"dynamic_children": [2], "dynamic_children": [2],
"wrap_gadget": 2, "wrap_gadget": 2,
"layout": { "link": true,
"header": [ "link_identifier": "_id"
[ },
{"column": "title", "show": true, "priority": 1}, "scheme": [
{"column": "version", "show": true, "priority": 1}, {
{"column": "description", "show": true, "priority": 5} "position": "header",
] "fieldlist": [
], {"field": "title", "show": true, "priority": 1},
"body": [ {"field": "version", "show": true, "priority": 1},
{"column": "title", "show": true, "priority": 1}, {"field": "description", "show": true, "priority": 5}
{"column": "version", "show": true, "priority": 1}, ]
{"column": "description", "show": true, "priority": 5}
],
"footer": []
}, },
"feature_dict": { {
"linkable": true, "position": "body",
"link_identifier": null "fieldlist": [
{"field": "title", "show": true, "priority": 1},
{"field": "version", "show": true, "priority": 1},
{"field": "description", "show": true, "priority": 5}
]
} }
}, ],
"children": [ "children": [
{ {
"generate": "widget", "generate": "widget",
......
...@@ -7,24 +7,26 @@ ...@@ -7,24 +7,26 @@
"property_dict": { "property_dict": {
"initial_query_url_identifier": "_id", "initial_query_url_identifier": "_id",
"dynamic_children": [1], "dynamic_children": [1],
"wrap_gadget": 2, "wrap_gadget": 2
"layout": {
"header": [
[
{"column": "connection_url", "show": true, "priority": 1},
{"column": "connection_backend_url", "show": true, "priority": 2},
{"column": "connection_password", "show": true, "priority": 6}
]
],
"body": [
{"column": "connection_url", "show": true, "priority": 1},
{"column": "connection_backend_url", "show": true, "priority": 2},
{"column": "connection_password", "show": true, "priority": 6}
],
"footer": []
},
"feature_dict": {}
}, },
"scheme": [
{
"position": "header",
"fieldlist": [
{"field": "connection_url", "show": true, "priority": 1},
{"field": "connection_backend_url", "show": true, "priority": 2},
{"field": "connection_password", "show": true, "priority": 6}
]
},
{
"position": "body",
"fieldlist": [
{"field": "connection_url", "show": true, "priority": 1},
{"field": "connection_backend_url", "show": true, "priority": 2},
{"field": "connection_password", "show": true, "priority": 6}
]
}
],
"children": [{ "children": [{
"generate": "widget", "generate": "widget",
"type": "controlbar", "type": "controlbar",
......
...@@ -9,28 +9,29 @@ ...@@ -9,28 +9,29 @@
"initial_query_url_identifier": "reference_computer", "initial_query_url_identifier": "reference_computer",
"dynamic_children": [4], "dynamic_children": [4],
"wrap_gadget": 2, "wrap_gadget": 2,
"layout": { "link": true,
"header": [ "link_identifier": "_id"
[ },
{"custom": true, "text": "Image", "text_i18n": "portal_type_dict.service_dict.text_dict.image_url", "show": true, "priority": 4}, "scheme": [
{"column": "title", "show": true, "priority": 1}, {
{"column": "version", "show": true, "priority": 1}, "position": "header",
{"column": "usage", "show": true, "priority": 5} "fieldlist": [
] {"custom": true, "text": "Image", "text_i18n": "portal_type_dict.service_dict.text_dict.image_url", "show": true, "priority": 4},
], {"field": "title", "show": true, "priority": 1},
"body": [ {"field": "version", "show": true, "priority": 1},
{"column": "image_url", "show": true, "priority": 4, "image": true}, {"field": "usage", "show": true, "priority": 5}
{"column": "title", "show": true, "priority": 1}, ]
{"column": "version", "show": true, "priority": 1},
{"column": "usage", "show": true, "priority": 5}
],
"footer": []
}, },
"feature_dict": { {
"linkable": true, "position": "body",
"link_identifier": "_id" "fieldlist": [
{"field": "image_url", "show": true, "priority": 4, "image": true},
{"field": "title", "show": true, "priority": 1},
{"field": "version", "show": true, "priority": 1},
{"field": "usage", "show": true, "priority": 5}
]
} }
}, ],
"children": [{ "children": [{
"type": "a", "type": "a",
"direct": {"className":"translate ui-btn ui-icon-edit ui-btn-icon-left ui-corner-all ui-btn-inline ui-btn-slapos-black ui-link", "href": "#services::add"}, "direct": {"className":"translate ui-btn ui-icon-edit ui-btn-icon-left ui-corner-all ui-btn-inline ui-btn-slapos-black ui-link", "href": "#services::add"},
......
...@@ -8,26 +8,28 @@ ...@@ -8,26 +8,28 @@
"initial_query_url_identifier": "_id", "initial_query_url_identifier": "_id",
"dynamic_children": [1], "dynamic_children": [1],
"wrap_gadget": 2, "wrap_gadget": 2,
"submit_to": "#services", "submit_to": "#services"
"layout": {
"header": [
[
{"column": "status", "show": true, "priority": 1},
{"column": "title", "show": true, "priority": 1},
{"column": "image_url", "show": true, "priority": 5},
{"column": "state", "show": true, "priority": 6}
]
],
"body": [
{"column": "status", "show": true, "priority": 1},
{"column": "title", "show": true, "priority": 1},
{"column": "image_url", "show": true, "priority": 5, "image": true},
{"column": "state", "show": true, "priority": 6}
],
"footer": []
},
"feature_dict": {}
}, },
"scheme": [
{
"position": "header",
"fieldlist": [
{"field": "status", "show": true, "priority": 1},
{"field": "title", "show": true, "priority": 1},
{"field": "image_url", "show": true, "priority": 5},
{"field": "state", "show": true, "priority": 6}
]
},
{
"position": "body",
"fieldlist": [
{"field": "status", "show": true, "priority": 1},
{"field": "title", "show": true, "priority": 1},
{"field": "image_url", "show": true, "priority": 5, "image": true},
{"field": "state", "show": true, "priority": 6}
]
}
],
"children": [{ "children": [{
"generate": "widget", "generate": "widget",
"type": "controlbar", "type": "controlbar",
......
...@@ -21,30 +21,31 @@ ...@@ -21,30 +21,31 @@
"initial_query_url_identifier": "reference_computer", "initial_query_url_identifier": "reference_computer",
"dynamic_children": [0], "dynamic_children": [0],
"wrap_gadget": 2, "wrap_gadget": 2,
"layout": { "linkable": true,
"header": [ "link_identifier": "id"
[ },
{"column": "image_url", "show": true, "priority": 4}, "scheme":[
{"column": "title", "show": true, "priority": 5}, {
{"column": "version", "show": true, "priority": 2}, "position": "header",
{"custom": true, "text": "Status", "text_i18n": "portal_type_dict.software_dict.text_dict.status", "show": true, "priority": 5}, "fieldlist": [
{"column": "usage", "show": true, "priority": 3} {"field": "image_url", "show": true, "priority": 4},
] {"field": "title", "show": true, "priority": 5},
], {"field": "version", "show": true, "priority": 2},
"body": [ {"custom": true, "text": "Status", "text_i18n": "portal_type_dict.software_dict.text_dict.status", "show": true, "priority": 5},
{"column": "image_url", "show": true, "priority": 4}, {"field": "usage", "show": true, "priority": 3}
{"column": "title", "show": true, "priority": 5}, ]
{"column": "version", "show": true, "priority": 2},
{"custom": true, "show": true, "priority": 5, "status": true},
{"custom": "usage", "show": true, "priority": 3}
],
"footer": []
}, },
"feature_dict": { {
"linkable": true, "position": "body",
"link_identifier": "id" "fieldlist": [
{"field": "image_url", "show": true, "priority": 4},
{"field": "title", "show": true, "priority": 5},
{"field": "version", "show": true, "priority": 2},
{"field": true, "show": true, "priority": 5, "status": true},
{"custom": "usage", "show": true, "priority": 3}
]
} }
}, ],
"children": [{ "children": [{
"generate": "widget", "generate": "widget",
"type": "table", "type": "table",
......
This diff is collapsed.
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