Commit 6637257e authored by Sven Franck's avatar Sven Franck

updated gadgets API

parent 9f6a9077
......@@ -2,8 +2,9 @@
"portal_type_source": "Computer",
"portal_type_title": "computer",
"portal_type_fields": "computer_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,1]},
"form": true,
"id": "computer_new",
"id": "computer_status",
"property_dict": {
"dynamic_children": [0],
"requires_authentication": true,
......
......@@ -32,6 +32,12 @@
"type": "fieldlist",
"id": "computer_status",
"href": "computer_status"
},
{
"generate": "gadget",
"type": "listbox",
"id": "software_status",
"href": "software_status"
}
],
"new": [
......
......@@ -33,6 +33,14 @@
"id": "release_overview",
"href": "release_overview"
}
],
"add": [
{
"generate": "gadget",
"type": "listgrid",
"id": "subscription_overview",
"href": "subscription_overview"
}
]
}
}, {
......
{
"portal_type_source": "Software Installation",
"portal_type_title": "installation",
"portal_type_fields": "subscription_fieldlist",
"portal_type_fields": "installation_fieldlist",
"form": true,
"id": "computer_new",
"id": "installation_overview",
"property_dict": {
"dynamic_children": [0],
"requires_authentication": true,
"depends_on": "login_state",
"wrap_gadget": 2,
"submit_to": "#servers::__id__"
"layout": {
"header": [
[
{"column": "installation_image", "show": true, "priority": 4},
{"column": "installation_title", "show": true, "priority": 5},
{"column": "installation_version", "show": true, "priority": 2},
{"custom": true, "text": "Status", "text_i18n": "global_dict.common_dict.status", "show": true, "priority": 5},
{"column": "installation_usage", "show": true, "priority": 3}
]
],
"body": [
{"column": "installation_image", "show": true, "priority": 4},
{"column": "installation_title", "show": true, "priority": 5},
{"column": "installation_version", "show": true, "priority": 2},
{"custom": true, "show": true, "priority": 5, "status": true},
{"custom": "installation_usage", "show": true, "priority": 3}
],
"footer": []
},
"feature_dict": {
"linkable": true,
"link_identifier": "installation_id"
}
},
"children": [],
"placeholder_dict": {
"children": [{
"generate": "widget",
"type": "table",
"class_list": "table-stroke ui-responsive",
"property_dict": {
"mode": "columntoggle",
"toggle_popup": false,
"wrap": "both",
"top_grid": 1,
"bottom_grid": 1
},
"children": [{
"generate": "widget",
"type": "controlgroup",
"class_list": "center inline",
"property_dict": {},
"children": [
{"type": "a", "direct": {"href": "#software::add", "className": "ui-btn-slapos-black"}, "attributes": {"data-i18n":"page_dict.servers.add_software"}, "logic": {"text":"Install Software"}}
]
}]
}],
"placeholder_dict": {
"no_auth": {
"text":"Requires authorization.",
"text_i18n":"validation_dict.requires_auth",
......@@ -43,6 +83,26 @@
]
}
]
},
"no_items": {
"text":"No Software installed.",
"text_i18n":"page_dict.servers.no_software",
"children": [
{
"generate": "widget",
"type": "controlgroup",
"property_dict": {"direction": "horizontal"},
"children": [{
"type": "a",
"direct": {"className":"translate ui-btn-slapos-black", "href": "#software"},
"attributes": {
"data-i18n": "page_dict.servers.add_software"
},
"logic": {"text":"Add Software"}
}
]
}
]
}
}
}
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