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

harmonized gadget API for listbox

parent e01fe983
......@@ -9,7 +9,19 @@
"initial_query_url_identifier": "release_reference_id",
"dynamic_children": [5],
"wrap_gadget": 2,
"layout": {
"check": true,
"radio": null,
"global_check": true,
"sortable": true,
"mergeable": true,
"link": true,
"link_identifier": null,
"link_external": null,
"link_source": null,
"editable": null,
"action_menu": true
},
"scheme": {
"header": [
[
{"column": "release_title", "show": true, "priority": 1, "sort":true},
......@@ -26,17 +38,6 @@
],
"footer": []
},
"feature_dict": {
"check": true,
"global_check": true,
"sortable": true,
"mergeable": true,
"linkable": true,
"link_identifier": null,
"editable": null,
"action_menu": true
}
},
"children": [{
"generate": "widget",
"type": "controlbar",
......
{
"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 @@
"requires_authentication": true,
"depends_on": "login_state",
"wrap_gadget": 2,
"layout": {
"header": [
[
"link": true,
"link_identifier": "_id",
"editable": null,
"sortable": true
},
"scheme": [
{
"position": "header",
"fieldlist": [
{"custom": true, "text": "Status", "text_i18n": "portal_type_dict.computer_dict.text_dict.status", "show": true, "priority": 1},
{"column": "title", "show": true, "priority": 1, "sort": true},
{"column": "reference", "show": true, "priority": 4},
{"column": "translated_validation_state_title", "show": "true", "priority": 4}
{"field": "title", "show": true, "priority": 1, "sort": true},
{"field": "reference", "show": true, "priority": 4},
{"field": "translated_validation_state_title", "show": "true", "priority": 4}
]
],
"body": [
{"custom": true, "show": true, "priority": 1, "status": true},
{"column": "title", "show": true, "priority": 1, "sort": true},
{"column": "reference", "show": true, "priority": 4},
{"column": "translated_validation_state_title", "show": "true", "priority": 4}],
"footer": []
},
"feature_dict": {
"linkable": true,
"link_identifier": "id",
"editable": null,
"sortable": true
{
"position": "body",
"fieldlist": [
{"custom": true, "show": true, "priority": 1, "status": 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": [
{
"generate": "widget",
......
......@@ -13,30 +13,32 @@
"dynamic_children": [3],
"requires_authentication": true,
"wrap_gadget": 2,
"layout": {
"header": [
[
{"column": "date", "show": true, "priority": 1, "sort":true},
{"column": "total_price", "show": true, "persist": true, "sort":false},
{"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},
"sortable": true,
"mergeable": true,
"action_menu": true
},
"scheme": [
{
"position": "header",
"fieldlist": [
{"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", "merger_text": "Total Price", "merger_i18n": "portal_type_dict.invoice_dict.fieldlist.total_price.title"},
{"field": "translated_simulation_state_title", "show":"true", "priority": 5},
{"custom": true, "text": "Download", "text_i18n": "portal_type_dict.invoice_dict.text_dict.download", "show": true, "priority": 6, "sort": false}
]
],
"body": [
{"column": "date", "show": true, "priority": 1, "sort":true},
{"column": "total_price", "show": true, "persist": true, "sort":false},
{"column": "price_currency", "show": "true", "priority": 4, "merge": "total_price"},
{"column": "translated_simulation_state_title", "show":"true", "priority": 5},
},
{
"position": "body",
"fieldlist": [
{"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}
]
},
"feature_dict": {
"sortable": true,
"mergeable": true,
"action_menu": true
}
},
],
"children": [
{
"generate": "widget",
......
......@@ -15,28 +15,29 @@
"requires_authentication": true,
"depends_on": "login_state",
"wrap_gadget": 2,
"layout": {
"header": [
[
"link": true,
"link_identifier": "id"
},
"scheme": [
{
"position": "header",
"fieldlist": [
{"custom": true, "text": "Status", "text_i18n": "portal_type_dict.network_dict.text_dict.status", "show": true, "priority": 6},
{"column": "title", "show": true, "priority": 5},
{"column": "reference", "show": true, "priority": 5},
{"column": "translated_validation_state_title", "show": "true", "priority": 3}
{"field": "title", "show": true, "priority": 5},
{"field": "reference", "show": true, "priority": 5},
{"field": "translated_validation_state_title", "show": "true", "priority": 3}
]
],
"body": [
{"custom": true, "show": true, "priority": 6, "status": true},
{"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,
"link_identifier": "id",
"editable": null
{
"position": "body",
"fieldlist": [
{"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": [{
"generate": "widget",
"type": "table",
......
......@@ -14,24 +14,24 @@
"requires_authentication": true,
"depends_on": "login_state",
"wrap_gadget": 2,
"layout": {
"header": [
[
{"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": 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": [{
"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"},
......
......@@ -9,26 +9,27 @@
"initial_query_url_identifier": "reference_id",
"dynamic_children": [2],
"wrap_gadget": 2,
"layout": {
"header": [
[
{"column": "title", "show": true, "priority": 1},
{"column": "version", "show": true, "priority": 1},
{"column": "description", "show": true, "priority": 5}
"link": true,
"link_identifier": "_id"
},
"scheme": [
{
"position": "header",
"fieldlist": [
{"field": "title", "show": true, "priority": 1},
{"field": "version", "show": true, "priority": 1},
{"field": "description", "show": true, "priority": 5}
]
],
"body": [
{"column": "title", "show": true, "priority": 1},
{"column": "version", "show": true, "priority": 1},
{"column": "description", "show": true, "priority": 5}
],
"footer": []
},
"feature_dict": {
"linkable": true,
"link_identifier": null
{
"position": "body",
"fieldlist": [
{"field": "title", "show": true, "priority": 1},
{"field": "version", "show": true, "priority": 1},
{"field": "description", "show": true, "priority": 5}
]
}
},
],
"children": [
{
"generate": "widget",
......
......@@ -7,24 +7,26 @@
"property_dict": {
"initial_query_url_identifier": "_id",
"dynamic_children": [1],
"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": []
"wrap_gadget": 2
},
"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": [{
"generate": "widget",
"type": "controlbar",
......
......@@ -9,28 +9,29 @@
"initial_query_url_identifier": "reference_computer",
"dynamic_children": [4],
"wrap_gadget": 2,
"layout": {
"header": [
[
"link": true,
"link_identifier": "_id"
},
"scheme": [
{
"position": "header",
"fieldlist": [
{"custom": true, "text": "Image", "text_i18n": "portal_type_dict.service_dict.text_dict.image_url", "show": true, "priority": 4},
{"column": "title", "show": true, "priority": 1},
{"column": "version", "show": true, "priority": 1},
{"column": "usage", "show": true, "priority": 5}
{"field": "title", "show": true, "priority": 1},
{"field": "version", "show": true, "priority": 1},
{"field": "usage", "show": true, "priority": 5}
]
],
"body": [
{"column": "image_url", "show": true, "priority": 4, "image": true},
{"column": "title", "show": true, "priority": 1},
{"column": "version", "show": true, "priority": 1},
{"column": "usage", "show": true, "priority": 5}
],
"footer": []
},
"feature_dict": {
"linkable": true,
"link_identifier": "_id"
{
"position": "body",
"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": [{
"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"},
......
......@@ -8,26 +8,28 @@
"initial_query_url_identifier": "_id",
"dynamic_children": [1],
"wrap_gadget": 2,
"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": []
"submit_to": "#services"
},
"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": [{
"generate": "widget",
"type": "controlbar",
......
......@@ -21,30 +21,31 @@
"initial_query_url_identifier": "reference_computer",
"dynamic_children": [0],
"wrap_gadget": 2,
"layout": {
"header": [
[
{"column": "image_url", "show": true, "priority": 4},
{"column": "title", "show": true, "priority": 5},
{"column": "version", "show": true, "priority": 2},
"linkable": true,
"link_identifier": "id"
},
"scheme":[
{
"position": "header",
"fieldlist": [
{"field": "image_url", "show": true, "priority": 4},
{"field": "title", "show": true, "priority": 5},
{"field": "version", "show": true, "priority": 2},
{"custom": true, "text": "Status", "text_i18n": "portal_type_dict.software_dict.text_dict.status", "show": true, "priority": 5},
{"column": "usage", "show": true, "priority": 3}
{"field": "usage", "show": true, "priority": 3}
]
],
"body": [
{"column": "image_url", "show": true, "priority": 4},
{"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,
"link_identifier": "id"
{
"position": "body",
"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": [{
"generate": "widget",
"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