Commit 48ffb7ed authored by Sven Franck's avatar Sven Franck

updated JSON to new API (fully async, widget, no state for now)

parent 42bc5427
{
"generate": "gadget",
"type": "pageIndex",
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"title": "Software",
"title_i18n": "portal_type_dict.software_dict.text_dict.software",
"theme": "slapos-white",
"property_dict": {
"title": "Software",
"title_i18n": "portal_type_dict.software_dict.text_dict.software",
"theme": "slapos-white"
},
"view_dict": {
"default": [
{
"generate": "gadget",
"type": "listgrid",
"href": "software_overview"
}
],
"new": [
{
"generate": "gadget",
"type": "listgrid",
"href": "software_overview"
}
]
......@@ -28,14 +24,14 @@
}, {
"generate": "widget",
"type": "page",
"title": "Software",
"title_i18n": "portal_type_dict.software_dict.text_dict.software",
"theme": "slapos-white",
"property_dict": {
"title": "Software",
"title_i18n": "portal_type_dict.software_dict.text_dict.software",
"theme": "slapos-white"
},
"view_dict": {
"default": [
{
"generate": "gadget",
"type": "listbox",
"href": "release_overview"
}
]
......@@ -43,15 +39,15 @@
}, {
"generate": "widget",
"type": "page",
"title": "Release",
"title_i18n": "portal_type_dict.software_dict.text_dict.release",
"theme": "slapos-white",
"property_dict": {
"title": "Release",
"title_i18n": "portal_type_dict.software_dict.text_dict.release",
"theme": "slapos-white"
},
"view_dict": {
"default": [],
"install": [
{
"generate": "gadget",
"type": "listbox",
"href": "release_install"
}
]
......
......@@ -3,13 +3,11 @@
"portal_type_title": "software",
"portal_type_fields": "software_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,8]},
"form": true,
"view": "FOO",
"view": "web_view",
"property_dict": {
"link": true,
"link_identifier": "id",
"link_to_view": "install",
"dynamic_children": [0],
"pagination": {
"class_list": "responsive",
"option_list": [
......@@ -28,14 +26,14 @@
"scheme": [
{
"position": "left",
"fieldlist": [
"field_list": [
{"field": "image_url", "type": "image"},
{"field": "title", "type": "alt"}
]
},
{
"position": "center",
"fieldlist": [
"field_list": [
{"field": "title", "type": "h1"},
{"field": "description", "type": "p"}
]
......@@ -44,9 +42,10 @@
"children": [{
"generate":"widget",
"type": "listview",
"class_list": "",
"theme": "slapos-white",
"property_dict": {
"theme": "slapos-white",
"map_children": "listItem",
"dynamic": true,
"inset":"true"
},
"children": []
......
......@@ -3,12 +3,10 @@
"portal_type_title": "release",
"portal_type_fields": "release_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,1]},
"form": true,
"view": "web_view",
"property_dict": {
"always_render": true,
"initial_query_url_identifier": "_id",
"dynamic_children": [0],
"requires_authentication": true,
"depends_on": "login_state",
"submit_to": "#services/__id__",
......@@ -21,8 +19,10 @@
{
"generate": "widget",
"type": "form",
"class_list": "responsive",
"property_dict": {
"class_list": "responsive",
"map_children": "formItem",
"dynamic": true,
"editable": true,
"secure": "default",
"secret_hash": "foo",
......@@ -31,8 +31,8 @@
"children": [{
"generate": "widget",
"type": "controlgroup",
"class_list": "center",
"property_dict": {
"class_list": "center",
"direction": "horizontal"
},
"children": [{"type": "input", "direct": {"value": "Install", "className": "action translate"}, "attributes": {"type": "submit", "data-action":"install", "data-icon":"check", "data-i18n":"[value]portal_type_dict.release_dict.text_dict.install", "data-theme": "slapos-black"}}
......
{
"portal_type_source": "Service",
"portal_type_title": "service",
"portal_type_fields": "service_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,1]},
"view": "web_view",
"property_dict": {
"always_render": true,
"initial_query_url_identifier": "_id",
"requires_authentication": true,
"depends_on": "login_state",
"submit_to": "#servers/__id__"
},
"scheme": [
{
"position": "center",
"field_list": [
{"field": "url_string", "overrides": {"properties":{"editable":false, "required": false}}}
]
},
{
"position": "left",
"field_list": [
{
"custom": true,
"action_list": [
{"setters": ["data-method", "href"], "setValues":[["_actions", "destroy", "method"], ["_actions", "destroy", "href"]], "class_list": "action error status translate", "iconpos": "left", "action": "destroy_installation", "icon":"trash", "text": "Destroy", "text_i18n":"portal_type_dict.service_dict.text_dict.destroy"}
]
}
]
}
],
"children": [{
"generate": "widget",
"type": "form",
"property_dict": {
"class_list": "responsive",
"map_children": "formItem",
"dynamic": true,
"editable": true,
"secure": "default",
"secret_hash": "foo",
"public_key": "6Ldpb-oSAAAAAGwriKpk4ol1n4yjN_as6M4xv0zA"
},
"children": []
}]
}
{
"generate": "gadget",
"type": "pageIndex",
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"title": "About",
"title_i18n": "global_dict.about",
"theme": "slapos-white",
"property_dict": {
"title": "About",
"title_i18n": "global_dict.about",
"theme": "slapos-white"
},
"view_dict": {
"default": [
{
"generate": "gadget",
"type": "content",
"href": "content_overview"
}
]
......
{
"generate": "gadget",
"type": "pageIndex",
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"title": "Blog",
"title_i18n": "global_dict.blog",
"theme": "slapos-white",
"property_dict": {
"title": "Blog",
"title_i18n": "global_dict.blog",
"theme": "slapos-white"
},
"view_dict": {
"default": []
}
......
......@@ -4,34 +4,32 @@
"portal_type_fields": "computer_fieldlist",
"portal_type_mapper": "servers",
"initial_query": {"include_docs": true, "limit":[0,1]},
"form": true,
"view": "web_view",
"property_dict": {
"initial_query_url_identifier": "_id",
"dynamic_children": [0],
"requires_authentication": true,
"depends_on": "login_state"
"initial_query_url_identifier": "_id"
},
"scheme": [
{
"position": "left",
"fieldlist": [
"field_list": [
{"field": "title", "overrides": {"properties": {"editable": false, "required": false}}},
{"field": "reference", "overrides": {"properties": {"editable": false, "required": false}}}
]
},{
"position": "center",
"fieldlist": [
{"type": "textarea", "direct": {"name": "certificate", "id": "certificate", "className": ""}, "attributes": {"data-enhanced":"true"}, "logic": {"setFlux": "certificate", "label":"computer.crt", "label_i18n":"portal_type_dict.computer_dict.text_dict.crt", "skip":false}},
{"type": "textarea", "direct": {"name": "key", "id": "key", "className": ""}, "attributes": {"data-enhanced":"true"}, "logic": {"setFlux": "key", "label":"computer.key", "label_i18n":"portal_type_dict.computer_dict.text_dict.key", "skip":false}}
"field_list": [
{"type": "textarea", "direct": {"name": "certificate", "id": "certificate", "className": ""}, "attributes": {"data-enhanced":"true"}, "logic": {"setFlux": "certificate", "label":"computer.crt", "label_i18n":"portal_type_dict.computer_dict.text_dict.crt", "noFlux": "Certificate is still active, please revoke existing one.", "skip":false}},
{"type": "textarea", "direct": {"name": "key", "id": "key", "className": ""}, "attributes": {"data-enhanced":"true"}, "logic": {"setFlux": "key", "label":"computer.key", "label_i18n":"portal_type_dict.computer_dict.text_dict.key", "noFlux": "Certificate is still active, please revoke existing one.", "skip":false}}
]
}
],
"children": [{
"generate": "widget",
"type": "form",
"class_list": "responsive",
"property_dict": {
"class_list": "responsive",
"dynamic": true,
"map_children":"formItem",
"editable": true,
"secure": "default",
"secret_hash": "foo",
......
{
"generate": "gadget",
"type": "pageIndex",
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"title": "Servers",
"title_i18n": "portal_type_dict.computer_dict.text_dict.servers",
"theme": "slapos-white",
"property_dict": {
"title": "Servers",
"title_i18n": "portal_type_dict.computer_dict.text_dict.servers",
"theme": "slapos-white"
},
"view_dict": {
"default": [
{
"generate": "gadget",
"type": "listbox",
"href": "computer_overview"
} ,{
"generate": "widget",
"type": "panel",
"id": "cedric",
"theme": "slapos-white",
"property_dict": {
"close": null
},
"children": [{
"type": "p",
"direct": {},
"attributes": {},
"logic": {"text": "Hello Cedric"}
}]
}],
}
],
"new": [
{
"generate": "gadget",
"type": "fieldlist",
"href": "computer_new"
}
]
......@@ -41,19 +24,17 @@
}, {
"generate": "widget",
"type": "page",
"title": "Server Instance",
"title_i18n": "portal_type_dict.computer_dict.text_dict.server_instance",
"theme": "slapos-white",
"property_dict": {
"title": "Server Instance",
"title_i18n": "portal_type_dict.computer_dict.text_dict.server_instance",
"theme": "slapos-white"
},
"view_dict": {
"default": [
{
"generate": "gadget",
"type": "fieldlist",
"href": "computer_status"
},
{
"generate": "gadget",
"type": "listbox",
"href": "software_status"
}
]
......@@ -61,49 +42,39 @@
}, {
"generate": "widget",
"type": "page",
"theme": "slapos-white",
"title": "Server Configuration",
"title_i18n": "portal_type_dict.computer_dict.text_dict.instance_configuration",
"property_dict": {
"theme": "slapos-white",
"title": "Server Configuration",
"title_i18n": "portal_type_dict.computer_dict.text_dict.instance_configuration"
},
"view_dict": {
"default": [
{
"generate": "gadget",
"type": "fieldlist",
"href": "software_installation_status"
}
],
"config": [
{
"generate": "gadget",
"type": "fieldlist",
"href": "computer_view"
}
],
"scope": [
{
"generate": "gadget",
"type": "fieldlist",
"href": "computer_users"
}
],
"ssl_on": [
{
"generate": "gadget",
"type": "fieldlist",
"href": "computer_ssl_request"
}
],
"ssl": [
{
"generate": "gadget",
"type": "fieldlist",
"href": "computer_certificate"
}
],
"installation": [
{
"generate": "gadget",
"type": "listgrid",
"href": "software_overview"
}
]
......@@ -111,14 +82,14 @@
}, {
"generate": "widget",
"type": "page",
"title": "Select Release",
"title_i18n": "portal_type_dict.computer_dict.text_dict.release",
"theme": "slapos-white",
"property_dict": {
"title": "Select Release",
"title_i18n": "portal_type_dict.computer_dict.text_dict.release",
"theme": "slapos-white"
},
"view_dict": {
"installation": [
{
"generate": "gadget",
"type": "listbox",
"href": "release_overview"
}
]
......@@ -126,14 +97,14 @@
}, {
"generate": "widget",
"type": "page",
"title": "Install Release",
"title_i18n": "portal_type_dict.service_dict.text_dict.install_release",
"theme": "slapos-white",
"property_dict": {
"title": "Install Release",
"title_i18n": "portal_type_dict.service_dict.text_dict.install_release",
"theme": "slapos-white"
},
"view_dict": {
"installation": [
{
"generate": "gadget",
"type": "fieldlist",
"href": "software_installation"
}
]
......
......@@ -6,10 +6,8 @@
"view": "web_view",
"property_dict": {
"dynamic_children": [0],
"requires_authentication": true,
"depends_on": "login_state",
"wrap_gadget": 2,
"submit_to": "#servers/__id__",
"submit_to": "#computer_module/__id__",
"url_pointer": {
"new": "request_computer"
}
......@@ -17,20 +15,18 @@
"scheme": [
{
"position": "left",
"fieldlist": [
{"type": "input", "direct": {"name": "computer_title", "id": "computer_title", "className": "required"}, "attributes": {"data-enhanced": true, "type": "text"}, "logic": {"clear": true, "label": "Computer Title", "setValue": "computer_", "label_i18n": "portal_type_dict.computer_dict.text_dict.title", "skip": false}}
"field_list": [
{"custom": true, "wrap": true, "type": "input", "direct": {"name": "computer_title", "id": "computer_title", "className": "required"}, "attributes": {"data-enhanced": true, "type": "text"}, "logic": {"clear": true, "label": "Computer Title", "label_i18n": "portal_type_dict.computer_dict.text_dict.title", "skip": false}}
]
},
{
"position": "right",
"fieldlist": []
}
],
"children": [{
"generate": "widget",
"type": "form",
"class_list": "responsive",
"property_dict": {
"class_list": "responsive",
"dynamic": true,
"map_children": "formItem",
"editable": true,
"secure": "default",
"secret_hash": "foo",
......@@ -39,8 +35,8 @@
"children": [{
"generate": "widget",
"type": "controlgroup",
"class_list": "center",
"property_dict": {
"class_list": "center",
"direction": "horizontal"
},
"children": [{"type": "input", "direct": {"value": "Submit", "className": "action translate"}, "attributes": {"type": "submit", "data-action":"new", "data-icon":"save", "data-i18n":"[value]portal_type_dict.computer_dict.text_dict.submit", "data-theme": "slapos-black"}}
......
......@@ -4,13 +4,9 @@
"portal_type_fields": "computer_fieldlist",
"portal_type_mapper": "servers",
"initial_query": {"include_docs": true, "limit":[0,8]},
"form": true,
"view": "web_view",
"property_dict": {
"initial_query_url_identifier": "_id",
"dynamic_children": [2],
"requires_authentication": true,
"depends_on": "login_state",
"wrap_gadget": 2,
"link": true,
"link_identifier": "_id",
......@@ -36,7 +32,7 @@
"scheme": [
{
"position": "header",
"fieldlist": [
"field_list": [
{"custom": true, "text": "Status", "text_i18n": "portal_type_dict.computer_dict.text_dict.status", "show": true, "priority": 1},
{"field": "title", "show": true, "priority": 1},
{"field": "reference", "show": true, "priority": 4},
......@@ -45,7 +41,7 @@
},
{
"position": "body",
"fieldlist": [
"field_list": [
{"custom": true, "show": true, "priority": 1, "status": true},
{"field": "title", "show": true, "priority": 1},
{"field": "reference", "show": true, "priority": 4},
......@@ -55,7 +51,7 @@
],
"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": "#servers/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": "#computer_module/new"},
"attributes": {
"data-i18n": "portal_type_dict.computer_dict.text_dict.add",
"data-icon": "edit"
......@@ -64,13 +60,17 @@
}, {
"generate": "widget",
"type": "controlbar",
"property_dict": {"slot": 1},
"property_dict": {
"slot": 1
},
"children": [{"type": "a", "direct": {"className": "ui-btn ui-btn-icon-left action ui-icon-sitemap ui-shadow ui-corner-all","href":"#cedric"},"attributes": {"data-action": "show_tree", "data-rel":"panel"},"logic": {"text":"Group"}}]
}, {
"generate": "widget",
"type": "table",
"class_list": "table-stroke ui-responsive",
"property_dict": {
"dynamic": true,
"class_list": "table-stroke ui-responsive",
"map_children": "tableItem",
"mode": "columntoggle",
"toggle_popup": false,
"wrap": "both",
......
This diff is collapsed.
......@@ -3,15 +3,11 @@
"portal_type_title": "computer",
"portal_type_fields": "computer_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,1]},
"form": true,
"view": "web_view",
"property_dict": {
"initial_query_url_identifier": "_id",
"dynamic_children": [1],
"requires_authentication": true,
"depends_on": "login_state",
"wrap_gadget": 2,
"submit_to": "#servers/__id__/ssl",
"submit_to": "#computer_module/__id__/ssl",
"url_pointer": {
"request_ssl": "generate_certificate"
}
......@@ -25,8 +21,10 @@
},{
"generate": "widget",
"type": "form",
"class_list": "responsive",
"property_dict": {
"dynamic": true,
"class_list": "responsive",
"map_children": "formItem",
"editable": true,
"secure": "default",
"secret_hash": "foo",
......@@ -35,8 +33,8 @@
"children": [{
"generate": "widget",
"type": "controlgroup",
"class_list": "center",
"property_dict": {
"class_list": "center",
"direction": "horizontal"
},
"children": [
......
......@@ -3,15 +3,11 @@
"portal_type_title": "computer",
"portal_type_fields": "computer_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,1]},
"form": true,
"view": "web_view",
"property_dict": {
"initial_query_url_identifier": "_id",
"dynamic_children": [0],
"requires_authentication": true,
"depends_on": "login_state",
"wrap_gadget": 2,
"submit_to": "#servers",
"submit_to": "#computer_module",
"url_pointer": {
"revoke_ssl": "revoke_certificate"
}
......@@ -19,7 +15,7 @@
"scheme": [
{
"position": "left",
"fieldlist": [
"field_list": [
{"field": "title", "overrides": {"properties":{"editable":false, "required": false}}},
{"field": "reference", "overrides": {"properties":{"editable":false, "required": false}}}
]
......@@ -28,8 +24,10 @@
"children": [{
"generate": "widget",
"type": "form",
"class_list": "responsive",
"property_dict": {
"class_list": "responsive",
"dynamic": true,
"map_children": "formItem",
"editable": true,
"secure": "default",
"secret_hash": "foo",
......@@ -38,14 +36,16 @@
"children": [{
"generate": "widget",
"type": "controlgroup",
"class_list": "center inline",
"property_dict": {},
"property_dict": {
"wrap": 1,
"class_list": "center inline"
},
"children": [
{"type": "a", "direct": {"href": "#servers/__id__/scope", "className": "ui-btn-slapos-black"}, "attributes": {"data-i18n":"portal_type_dict.computer_dict.text_dict.scope", "data-icon":"globe"}, "logic": {"text":"Set Server Scope"}},
{"type": "a", "direct": {"href": "#servers/__id__/config", "className": "ui-btn-slapos-black"}, "attributes": {"data-i18n":"portal_type_dict.computer_dict.text_dict.config", "data-icon":"cogs"}, "logic": {"text":"Set Configuration"}},
{"type": "a", "direct": {"href": "#servers/__id__/ssl_on", "className": "ui-btn-slapos-black"}, "attributes": {"data-i18n":"portal_type_dict.computer_dict.text_dict.ssl_on", "data-icon":"lock"}, "logic": {"text":"Request SSL"}},
{"type": "a", "direct": {"href": "#computer_module/__id__/scope", "className": "ui-btn-slapos-black"}, "attributes": {"data-i18n":"portal_type_dict.computer_dict.text_dict.scope", "data-icon":"globe"}, "logic": {"text":"Set Server Scope"}},
{"type": "a", "direct": {"href": "#computer_module/__id__/config", "className": "ui-btn-slapos-black"}, "attributes": {"data-i18n":"portal_type_dict.computer_dict.text_dict.config", "data-icon":"cogs"}, "logic": {"text":"Set Configuration"}},
{"type": "a", "direct": {"href": "#computer_module/__id__/ssl_on", "className": "ui-btn-slapos-black"}, "attributes": {"data-i18n":"portal_type_dict.computer_dict.text_dict.ssl_on", "data-icon":"lock"}, "logic": {"text":"Request SSL"}},
{"type": "a", "direct": {"href": "#", "className": "action ui-btn-slapos-black"}, "attributes": {"data-i18n":"portal_type_dict.computer_dict.text_dict.ssl_off", "data-icon":"unlock", "data-action":"revoke_ssl"}, "logic": {"text":"Revoke SSL"}},
{"type": "a", "direct": {"href": "#servers/__id__/installation", "className": "ui-btn-slapos-black"}, "attributes": {"data-i18n":"portal_type_dict.computer_dict.text_dict.add_software", "data-icon": "plus"}, "logic": {"text":"Install Software"}}
{"type": "a", "direct": {"href": "#computer_module/__id__/installation", "className": "ui-btn-slapos-black"}, "attributes": {"data-i18n":"portal_type_dict.computer_dict.text_dict.add_software", "data-icon": "plus"}, "logic": {"text":"Install Software"}}
]
}]
}
......
......@@ -3,15 +3,11 @@
"portal_type_title": "computer",
"portal_type_fields": "computer_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,1]},
"form": true,
"view": "web_view",
"property_dict": {
"initial_query_url_identifier": "_id",
"dynamic_children": [0],
"requires_authentication": true,
"depends_on": "login_state",
"wrap_gadget": 2,
"submit_to": "#servers/__id__",
"submit_to": "#computer_module/__id__",
"url_pointer": {
"update_scope": "update_allocation_scope"
}
......@@ -19,21 +15,19 @@
"scheme": [
{
"position": "left",
"fieldlist": [
"field_list": [
{"field": "allocation_scope"},
{"field": "subject_list"}
]
},
{
"position": "right",
"fieldlist": []
}
],
"children": [{
"generate": "widget",
"type": "form",
"class_list": "responsive",
"property_dict": {
"class_list": "responsive",
"dynamic": true,
"map_children": "formItem",
"editable": true,
"secure": "default",
"secret_hash": "foo",
......@@ -42,8 +36,8 @@
"children": [{
"generate": "widget",
"type": "controlgroup",
"class_list": "center",
"property_dict": {
"class_list": "center",
"direction": "horizontal"
},
"children": [
......
......@@ -3,21 +3,15 @@
"portal_type_title": "computer",
"portal_type_fields": "computer_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,1]},
"form": true,
"view": "web_view_category",
"property_dict": {
"submit_to": "#servers/__id__",
"initial_query_url_identifier": "_id",
"dynamic_children": [0],
"requires_authentication": true,
"depends_on": "login_state",
"url_pointer": {},
"submit_to": "#servers/__id__"
"submit_to": "#computer_module/__id__",
"initial_query_url_identifier": "_id"
},
"scheme": [
{
"position": "left",
"fieldlist": [
"field_list": [
{"field": "title", "overrides": {"properties": {"editable": false}}},
{"field": "reference", "overrides": {"properties": {"editable": false}}},
{"field": "url_string"},
......@@ -26,7 +20,7 @@
]
},{
"position": "right",
"fieldlist": [
"field_list": [
{"field": "cpu_frequency"},
{"field": "cpu_type"},
{"field": "memory_size"},
......@@ -34,14 +28,14 @@
]
}, {
"position": "left",
"fieldlist": [
"field_list": [
{"field": "storage_capacity"},
{"field": "storage_interface"},
{"field": "storage_redundancy"}
]
},{
"position": "right",
"fieldlist": [
"field_list": [
{"field": "local_area_network_type"}
]
}
......@@ -49,8 +43,10 @@
"children": [{
"generate": "widget",
"type": "form",
"class_list": "responsive",
"property_dict": {
"class_list": "responsive",
"dynamic": true,
"map_children": "formItem",
"editable": true,
"secure": "default",
"secret_hash": "foo",
......@@ -59,8 +55,8 @@
"children": [{
"generate": "widget",
"type": "controlgroup",
"class_list": "center",
"property_dict": {
"class_list": "center",
"direction": "horizontal"
},
"children": [
......
......@@ -10,17 +10,16 @@
{
"generate": "widget",
"type": "listview",
"class_list": null,
"theme": "slapos-black",
"form": null,
"property_dict": {
"map_children": "listItem",
"theme": "slapos-black",
"inset": true
},
"children": [
{"type": "item", "href": "http://community.slapos.org/wiki", "external": true, "left": {"icon":"book"}, "center": {"text": [{"type": "h1", "text": "Documentation", "text_i18n":"global_dict.documentation"}]}},
{"type": "item", "href": "http://community.slapos.org/download", "external": true, "left": {"icon":"download"}, "center": {"text": [{"type": "h1", "text": "Download", "text_i18n":"global_dict.download"}]}},
{"type": "item", "href": "http://community.slapos.org/forum", "external": true, "left": {"icon":"comments-alt"}, "center": {"text": [{"type": "h1", "text": "Forum", "text_i18n":"global_dict.forum"}]}},
{"type": "item", "href": "http://community.slapos.org/blog", "external": true, "left": {"icon":"rss-sign"}, "center": {"text": [{"type": "h1", "text": "Blog", "text_i18n":"global_dict.blog"}]}},
{"type": "item", "href": "http://community.slapos.org/forum", "external": true, "left": {"icon":"comments-o"}, "center": {"text": [{"type": "h1", "text": "Forum", "text_i18n":"global_dict.forum"}]}},
{"type": "item", "href": "http://community.slapos.org/blog", "external": true, "left": {"icon":"rss"}, "center": {"text": [{"type": "h1", "text": "Blog", "text_i18n":"global_dict.blog"}]}},
{"type": "item", "href": "http://www.vifib.com/vifib-Pricing", "external": true, "left": {"icon":"dollar"}, "center": {"text": [{"type": "h1", "text": "Pricing", "text_i18n":"global_dict.pricing"}]}}
]
}
......
{
"generate": "gadget",
"type": "pageIndex",
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"title": "SlapOS",
"title_i18n": "global_dict.slapos",
"theme": "slapos-white",
"property_dict": {
"title": "SlapOS",
"title_i18n": "global_dict.slapos",
"theme": "slapos-white"
},
"view_dict": {
"default": []
}
......
{
"generate": "gadget",
"type": "pageIndex",
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"title": "Documentation",
"title_i18n": "global_dict.documentation",
"theme": "slapos-white",
"property_dict": {
"title": "Documentation",
"title_i18n": "global_dict.documentation",
"theme": "slapos-white"
},
"view_dict": {
"default": []
}
......
{
"generate": "gadget",
"type": "pageIndex",
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"title": "Download",
"title_i18n": "global_dict.download",
"theme": "slapos-white",
"property_dict": {
"title": "Download",
"title_i18n": "global_dict.download",
"theme": "slapos-white"
},
"view_dict": {
"default": []
}
......
{
"generate": "gadget",
"type": "pageIndex",
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"title": "Forum",
"title_i18n": "global_dict.forum",
"theme": "slapos-white",
"property_dict": {
"title": "Forum",
"title_i18n": "global_dict.forum",
"theme": "slapos-white"
},
"view_dict": {
"default": []
}
......
......@@ -95,39 +95,48 @@
}
},
{
"generate": "widget",
"type": "controlbar",
"property_dict": {
"wrap": "fragment",
"target": "document"
},
"children": [{
"generate": "widget",
"type": "panel",
"theme": "slapos-black",
"property_dict": {
"close": null
"theme": "slapos-black",
"close": true
},
"children": [{
"generate": "widget",
"type": "listview",
"class_list": null,
"theme": "slapos-black",
"form": null,
"property_dict": {
"class_list": null,
"theme": "slapos-black",
"filter":"true",
"input": "#global-search"
"input": "#global-search",
"map_children": "listItem"
},
"children": [
{"type": "item", "href": "#dashboard", "left": {"icon": "home"}, "center": {"text": [{"type": "h1", "text": "Home", "text_i18n": "global_dict.home"}, {"type": "p", "text": "Your Dashboard", "text_i18n": "global_dict.dashboard"}]}},
{"type": "item", "href": "#person", "left": {"icon":"user"}, "center": {"text": [{"type": "h1", "text": "My Account", "text_i18n": "global_dict.person"}, {"type": "p", "text": "Administration of your personal info", "text_i18n": "global_dict.person_subtitle"}]}},
{"type": "item", "href": "#invoices", "left": {"icon":"file-text"}, "center": {"text": [{"type":"h1", "text": "My Invoices", "text_i18n": "global_dict.invoices"}, {"type": "p", "text": "Administration of your invoices", "text_i18n":"global_dict.invoices_subtitle"}]}},
{"type": "item", "href": "#servers", "left": {"icon":"hdd-o"}, "center": {"text": [{"type":"h1", "text": "My Servers", "text_i18n": "global_dict.servers"}, {"type":"p", "text": "Administration of your Servers", "text_i18n": "global_dict.servers_subtitle"}]}},
{"type": "item", "href": "#services", "left": {"icon":"cogs"}, "center": {"text": [{"type": "h1","text": "My Services", "text_i18n":"global_dict.services"},{"type": "p", "text": "Administration of your Services", "text_i18n":"global_dict.services_subtitle"}]}},
{"type": "item", "href": "#networks", "left": {"icon":"sitemap"}, "center": {"text":[{"type": "h1", "text": "My Networks", "text_i18n": "global_dict.networks"},{"type": "p", "text":"Administration of your networks", "text_i18n":"global_dict.networks_subtitle"}]}},
{"type": "item", "href": "#person_module", "left": {"icon":"user"}, "center": {"text": [{"type": "h1", "text": "My Account", "text_i18n": "global_dict.person"}, {"type": "p", "text": "Administration of your personal info", "text_i18n": "global_dict.person_subtitle"}]}},
{"type": "item", "href": "#invoice_module", "left": {"icon":"file-text"}, "center": {"text": [{"type":"h1", "text": "My Invoices", "text_i18n": "global_dict.invoices"}, {"type": "p", "text": "Administration of your invoices", "text_i18n":"global_dict.invoices_subtitle"}]}},
{"type": "item", "href": "#computer_module", "left": {"icon":"hdd-o"}, "center": {"text": [{"type":"h1", "text": "My Servers", "text_i18n": "global_dict.servers"}, {"type":"p", "text": "Administration of your Servers", "text_i18n": "global_dict.servers_subtitle"}]}},
{"type": "item", "href": "#service_module", "left": {"icon":"cogs"}, "center": {"text": [{"type": "h1","text": "My Services", "text_i18n":"global_dict.services"},{"type": "p", "text": "Administration of your Services", "text_i18n":"global_dict.services_subtitle"}]}},
{"type": "item", "href": "#network_module", "left": {"icon":"sitemap"}, "center": {"text":[{"type": "h1", "text": "My Networks", "text_i18n": "global_dict.networks"},{"type": "p", "text":"Administration of your networks", "text_i18n":"global_dict.networks_subtitle"}]}},
{"type": "item", "href": "#monitoring", "left": {"icon":"bar-chart-o"}, "center": {"text":[{"type":"h1", "text": "Monitoring", "text_i18n":"global_dict.monitoring"},{"type":"p", "text": "Server Status Reports", "text_i18n": "global_dict.monitoring_subtitle"}]}},
{"type": "item", "href": "#help", "left": {"icon":"question"}, "center": {"text": [{"type": "h1", "text": "Help", "text_i18n": "global_dict.help"},{"type": "p", "text": "Contact Customer Support", "text_i18n": "global_dict.help_subtitle"}]}},
{"type": "item", "href": "#ticket_module", "left": {"icon":"question"}, "center": {"text": [{"type": "h1", "text": "Help", "text_i18n": "global_dict.help"},{"type": "p", "text": "Contact Customer Support", "text_i18n": "global_dict.help_subtitle"}]}},
{"type": "item", "href": "#about", "left": {"icon": "book"}, "center": {"text": [{"type": "h1", "text": "About", "text_i18n": "global_dict.about"}, {"type": "p", "text": "Request further information", "text_i18n": "global_dict.about_subtitle"}]}}
]
}, {
"generate": "widget",
"type": "listview",
"class_list": null,
"theme": "slapos-black",
"property_dict": {
"class_list": null,
"theme": "slapos-black",
"map_children": "listItem"
},
"children": [
{"type": "divider", "center": {"text": [{"type": "h1", "text": "Development", "text_i18n":"global_dict.dev"}]}}
]
......@@ -145,18 +154,14 @@
"children": [{
"generate": "widget",
"type": "listview",
"class_list": null,
"theme": "slapos-black",
"form": null,
"property_dict": {},
"property_dict": {
"class_list": null,
"theme": "slapos-black",
"map_children": "listItem"
},
"children": [
{"type": "item", "href": "#", "left": {"icon": "video-camera"}, "center": {"text": [{"type": "h1", "text": "Cases", "text_i18n": "global_dict.cases"}, {"type": "p", "text": "<<nothing to see here>>", "text_i18n": "global_dict.test_cases"}]}},
{"type": "item", "href": "#", "left": {"icon": "code-fork"}, "center": {"text": [{"type": "h1", "text": "Nodes", "text_i18n": "global_dict.nodes"}, {"type": "p", "text": "<<nothing to see here>>", "text_i18n": "global_dict.test_nodes"}]}},
{"type": "item", "href": "#test_page_module", "left": {"icon": "file-o"}, "center": {"text": [{"type": "h1", "text": "Pages", "text_i18n": "global_dict.pages"}, {"type": "p", "text": "Create and run test pages locally", "text_i18n": "global_dict.test_pages"}]}},
{"type": "item", "href": "#", "left": {"icon": "folder-o"}, "center": {"text": [{"type": "h1", "text": "Reports", "text_i18n": "global_dict.reports"}, {"type": "p", "text": "<<nothing to see here>>", "text_i18n": "global_dict.test_results"}]}},
{"type": "item", "href": "#", "left": {"icon": "signal"}, "center": {"text": [{"type": "h1", "text": "Results", "text_i18n": "global_dict.results"}, {"type": "p", "text": "<<nothing to see here>>", "text_i18n": "global_dict.test_reports"}]}},
{"type": "item", "href": "#", "left": {"icon": "cog"}, "center": {"text": [{"type": "h1", "text": "Suites", "text_i18n": "global_dict.suites"}, {"type": "p", "text": "<<nothing to see here>>", "text_i18n": "global_dict.test_suites"}]}}
]
{"type": "item", "href": "#test_page_module", "left": {"icon": "file-o"}, "center": {"text": [{"type": "h1", "text": "Pages", "text_i18n": "global_dict.pages"}, {"type": "p", "text": "Create and run test pages locally", "text_i18n": "global_dict.test_pages"}]}}
]
}]
}, {
"type": "a",
......@@ -167,17 +172,17 @@
}, {
"generate": "widget",
"type": "popup",
"class_list": "popup single ui-content",
"theme": "slapos-white",
"property_dict":{
"class_list": "popup single ui-content",
"theme": "slapos-white",
"shadow": true,
"overlay_theme": "slapos-black"
}
}, {
"generate": "widget",
"type": "header",
"theme": "slapos-white",
"property_dict": {
"theme": "slapos-white",
"fixed": true,
"title": "",
"title_i18n": "global_dict.slapos"
......
......@@ -2,18 +2,14 @@
"portal_type_source": "Hosting Subscription",
"portal_type_title": "service",
"portal_type_fields": "service_fieldlist",
"form": true,
"view": "web_view",
"property_dict": {
"initial_query_url_identifier": "_id",
"dynamic_children": [0],
"requires_authentication": true,
"depends_on": "login_state"
"initial_query_url_identifier": "_id"
},
"scheme": [
{
"position": "left",
"fieldlist": [
"field_list": [
{"field": "reference", "overrides": {"properties": {"editable": false}}},
{"field": "title", "overrides": {"properties": {"editable": false}}},
{"field": "source_reference", "overrides": {"properties": {"editable": false}}},
......@@ -22,7 +18,7 @@
},
{
"position": "center",
"fieldlist": [
"field_list": [
{"type": "a", "direct": {}, "attributes": {"data-external":true}, "logic":{"setters": ["href", "text"], "setValue":"url_string"}},
{"field": "text_content", "overrides": {"widget": {"title": "Instance XML Recipe", "title_i18n": "portal_type_dict.service_dict.text_dict.recipe"}}}
]
......@@ -32,8 +28,10 @@
{
"generate": "widget",
"type": "form",
"class_list": "responsive",
"property_dict": {
"class_list": "responsive",
"dynamic": true,
"map_children": "formItem",
"editable": true,
"secure": "default",
"secret_hash": "foo",
......
......@@ -2,11 +2,9 @@
"portal_type_source": "Hosting Subscription",
"portal_type_title": "service",
"portal_type_fields": "service_fieldlist",
"form": true,
"view": "web_view",
"property_dict": {
"initial_query_url_identifier": "_id",
"dynamic_children": [1],
"wrap_gadget": 2,
"caption": {
"slot": 1,
......@@ -17,7 +15,7 @@
"scheme": [
{
"position": "header",
"fieldlist": [
"field_list": [
{"field": "connection_url", "show": true, "priority": 1},
{"field": "connection_backend_url", "show": true, "priority": 2},
{"field": "connection_password", "show": true, "priority": 6}
......@@ -25,7 +23,7 @@
},
{
"position": "body",
"fieldlist": [
"field_list": [
{"field": "connection_url", "show": true, "priority": 1},
{"field": "connection_backend_url", "show": true, "priority": 2},
{"field": "connection_password", "show": true, "priority": 6}
......@@ -35,8 +33,10 @@
"children": [{
"generate": "widget",
"type": "table",
"class_list": "table-stroke ui-responsive",
"property_dict": {
"class_list": "table-stroke ui-responsive",
"dynamic": true,
"map_children": "tableItem",
"mode": "columntoggle",
"toggle_popup": false,
"wrap": "both",
......
{
"generate": "gadget",
"type": "pageIndex",
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"title": "My Invoices",
"title_i18n": "portal_type_dict.invoice_dict.text_dict.title",
"theme": "slapos-white",
"property_dict": {
"title": "My Invoices",
"title_i18n": "portal_type_dict.invoice_dict.text_dict.title",
"theme": "slapos-white"
},
"view_dict": {
"default": [
{
"generate": "gadget",
"type": "listbox",
"href": "invoice_overview"
}
]
......
......@@ -3,15 +3,12 @@
"portal_type_title": "invoice",
"portal_type_fields": "invoice_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,8]},
"form": true,
"view": "web_view",
"property_dict": {
"no_items": {
"message":"No invoices found",
"message_i18n":"portal_type_dict.invoice_dict.text_dict.nodata"
},
"dynamic_children": [0],
"requires_authentication": true,
"wrap_gadget": 2,
"mergeable": true,
"action_menu": true,
......@@ -36,7 +33,7 @@
"scheme": [
{
"position": "header",
"fieldlist": [
"field_list": [
{"field": "date", "show": true, "priority": 1},
{"field": "total_price", "show": true, "persist": true},
{"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"},
......@@ -46,20 +43,22 @@
},
{
"position": "body",
"fieldlist": [
"field_list": [
{"field": "date", "show": true, "priority": 1},
{"field": "total_price", "show": true, "persist": true},
{"field": "price_currency", "show": "true", "priority": 4, "merge": "total_price"},
{"field": "price_currency", "show": "true", "priority": 4, "merge": "total_price", "crop": "currency_module/"},
{"field": "translated_simulation_state_title", "show":"true", "priority": 5},
{"custom": true, "show": true, "persist": true, "action_list": [{"class_list": "action translate", "action": "download", "icon":"file-text-o", "text": "Download", "text_i18n":"portable_type_dict.invoice_dict.download"}]}
{"custom": true, "show": true, "persist": true, "action_list": [{"href": "", "class_list": "action", "action": "download", "icon":"file-text-o", "text": "Download", "text_i18n":"portable_type_dict.invoice_dict.download"}]}
]
}
],
"children": [{
"generate": "widget",
"type": "table",
"class_list": "table-stroke ui-responsive",
"property_dict": {
"class_list": "table-stroke ui-responsive",
"dynamic": true,
"map_children": "tableItem",
"mode": "columntoggle",
"toggle_popup": false,
"wrap": "both",
......
[
{
"translated_simulation_state_title": "Cancelled",
"price_currency": "EUR",
"total_price": 850.4,
"date": "2013/10/03",
"id": "0",
"reference_portal_type": "Person",
"reference_id": "123"
},
{
"translated_simulation_state_title": "Cancelled",
"price_currency": "EUR",
"total_price": 82.8,
"date": "2013/09/03",
"id": "1",
"reference_portal_type": "Person",
"reference_id": "123"
},
{
"translated_simulation_state_title": "Paid",
"price_currency": "EUR",
"total_price": 671.3,
"date": "2013/07/05",
"id": "3",
"reference_portal_type": "Person",
"reference_id": "123"
}
]
\ No newline at end of file
{
"property_dict": {
"dynamic_children": [3]
},
"property_dict": {},
"children": [
{
"type": "div",
......
{
"generate": "gadget",
"type": "pageIndex",
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"title": "Monitoring",
"title_i18n": "global_dict.monitoring",
"theme": "slapos-white",
"property_dict": {
"title": "Monitoring",
"title_i18n": "global_dict.monitoring",
"theme": "slapos-white"
},
"view_dict": {
"default": []
}
......
......@@ -3,7 +3,6 @@
"portal_type_title": "computer",
"portal_type_fields": "computer_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,8]},
"form": true,
"view": "web_view",
"property_dict": {
"no_items": {
......@@ -11,9 +10,6 @@
"message_i18n":"portal_type_dict.network_dict.text_dict.nodata"
},
"initial_query_url_identifier": "group",
"dynamic_children": [0],
"requires_authentication": true,
"depends_on": "login_state",
"wrap_gadget": 2,
"link": true,
"link_identifier": "id",
......@@ -26,7 +22,7 @@
"scheme": [
{
"position": "header",
"fieldlist": [
"field_list": [
{"custom": true, "text": "Status", "text_i18n": "portal_type_dict.network_dict.text_dict.status", "show": true, "priority": 6},
{"field": "title", "show": true, "priority": 5},
{"field": "reference", "show": true, "priority": 5},
......@@ -35,7 +31,7 @@
},
{
"position": "body",
"fieldlist": [
"field_list": [
{"custom": true, "show": true, "priority": 6, "status": true},
{"field": "title", "show": true, "priority": 5},
{"field": "reference", "show": true, "priority": 5},
......@@ -46,8 +42,10 @@
"children": [{
"generate": "widget",
"type": "table",
"class_list": "table-stroke ui-responsive",
"property_dict": {
"dynamic": true,
"class_list": "table-stroke ui-responsive",
"map_children": "tableItem",
"mode": "columntoggle",
"toggle_popup": false,
"wrap": "both",
......
{
"generate": "gadget",
"type": "pageIndex",
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"title": "Servers",
"title_i18n": "portal_type_dict.network_dict.text_dict.networks",
"theme": "slapos-white",
"property_dict": {
"title": "Servers",
"title_i18n": "portal_type_dict.network_dict.text_dict.networks",
"theme": "slapos-white"
},
"view_dict": {
"default": [
{
"generate": "gadget",
"type": "listbox",
"href": "network_overview"
}
],
"new": [
{
"generate": "gadget",
"type": "fieldlist",
"href": "network_new"
}
]
......@@ -28,19 +24,17 @@
}, {
"generate": "widget",
"type": "page",
"title": "Network Instance",
"title_i18n": "portal_type_dict.network_dict.text_dict.network_instance",
"theme": "slapos-white",
"property_dict": {
"title": "Network Instance",
"title_i18n": "portal_type_dict.network_dict.text_dict.network_instance",
"theme": "slapos-white"
},
"view_dict": {
"default": [
{
"generate": "gadget",
"type": "fieldlist",
"href": "network_status"
},
{
"generate": "gadget",
"type": "listbox",
"href": "network_assigned_computers"
}
]
......
......@@ -2,14 +2,10 @@
"portal_type_source": "Network",
"portal_type_title": "network",
"portal_type_fields": "network_fieldlist",
"form": true,
"view": "FOO",
"view": "web_view",
"property_dict": {
"dynamic_children": [0],
"requires_authentication": true,
"depends_on": "login_state",
"wrap_gadget": 2,
"submit_to": "#networks/__id__",
"submit_to": "#network_module/__id__",
"url_pointer": {
"new": "request_computer_network"
}
......@@ -17,16 +13,18 @@
"scheme": [
{
"position": "left",
"fieldlist": [
{"type": "input", "direct": {"name": "title", "id": "title", "className": "required"}, "attributes": {"data-enhanced": true, "type": "text"}, "logic": {"clear": true, "label": "Title", "setValue": "network_", "label_i18n": "portal_type_dict.network_dict.text_dict.title", "skip": false}}
"field_list": [
{"field": "title"}
]
}
],
"children": [{
"generate": "widget",
"type": "form",
"class_list": "responsive",
"property_dict": {
"class_list": "responsive",
"dynamic": true,
"map_children": "formItem",
"editable": true,
"secure": "default",
"secret_hash": "foo",
......@@ -35,8 +33,8 @@
"children": [{
"generate": "widget",
"type": "controlgroup",
"class_list": "center",
"property_dict": {
"class_list": "center",
"direction": "horizontal"
},
"children": [
......
......@@ -3,12 +3,8 @@
"portal_type_title": "network",
"portal_type_fields": "network_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,8]},
"form": true,
"view": "FOO",
"view": "web_view",
"property_dict": {
"dynamic_children": [0],
"requires_authentication": true,
"depends_on": "login_state",
"wrap_gadget": 2,
"link": true,
"link_identifier": "_id",
......@@ -28,23 +24,33 @@
"scheme": [
{
"position": "header",
"fieldlist": [
"field_list": [
{"field": "title", "show": true, "priority": 5},
{"field": "reference", "show": true, "priority": 5}
]
},{
"position": "body",
"fieldlist": [
"field_list": [
{"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": "#network_module/new"},
"attributes": {
"data-i18n": "portal_type_dict.network_dict.text_dict.add",
"data-icon": "edit"
},
"logic": {"text":"New network"}
}, {
"generate": "widget",
"type": "table",
"class_list": "table-stroke ui-responsive",
"property_dict": {
"dynamic": true,
"map_children": "tableItem",
"class_list": "table-stroke ui-responsive",
"mode": "columntoggle",
"toggle_popup": false,
"wrap": "both",
......@@ -52,14 +58,6 @@
"bottom_grid": 1
},
"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"},
"attributes": {
"data-i18n": "portal_type_dict.network_dict.text_dict.add",
"data-icon": "edit"
},
"logic": {"text":"New network"}
}]
}
[
{
"title":"Foo-Net",
"reference": "NET-123"
},
{
"title":"Bar-Net",
"reference": "NET-456"
},
{
"title":"Lawn",
"reference": "NET-111"
}
]
\ No newline at end of file
......@@ -3,20 +3,16 @@
"portal_type_title": "network",
"portal_type_fields": "network_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,1]},
"form": true,
"view": "web_view",
"property_dict": {
"initial_query_url_identifier": "_id",
"dynamic_children": [0],
"requires_authentication": true,
"depends_on": "login_state",
"wrap_gadget": 2,
"submit_to": "#networks"
"submit_to": "#network_module"
},
"scheme": [
{
"position": "left",
"fieldlist": [
"field_list": [
{"field": "title", "overrides": {"properties":{"editable":false, "required": false}}},
{"field": "reference", "overrides": {"properties":{"editable":false, "required": false}}}
]
......@@ -25,8 +21,10 @@
"children": [{
"generate": "widget",
"type": "form",
"class_list": "responsive",
"property_dict": {
"class_list": "responsive",
"dynamic": true,
"map_children": "formItem",
"editable": false,
"secure": "default",
"secret_hash": "foo",
......
......@@ -725,7 +725,7 @@
"css_class": null,
"alternate_name": "gender",
"hidden": null,
"items": null,
"items": "getGender",
"size": null,
"extra": null,
"extra_per_item": null
......
{
"generate": "gadget",
"type": "pageIndex",
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"title": "Account",
"title_i18n": "portal_type_dict.person_dict.text_dict.account",
"theme": "slapos-white",
"property_dict": {
"title": "Account",
"title_i18n": "portal_type_dict.person_dict.text_dict.account",
"theme": "slapos-white"
},
"view_dict": {
"default": [
{
"generate": "gadget",
"type": "listbox",
"href": "person_overview"
}],
"new": [
{
"generate": "gadget",
"type": "fieldlist",
"href": "person_view"
}
]
......@@ -28,14 +24,14 @@
{
"generate": "widget",
"type": "page",
"title": "Register",
"title_i18n": "portal_type_dict.person_dict.text_dict.register",
"theme":"slapos-white",
"property_dict": {
"title": "Register",
"title_i18n": "portal_type_dict.person_dict.text_dict.register",
"theme":"slapos-white"
},
"view_dict": {
"default": [
{
"generate": "gadget",
"type": "fieldlist",
"href": "person_view"
}
]
......
......@@ -3,12 +3,8 @@
"portal_type_title": "person",
"portal_type_fields": "person_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,1]},
"form": true,
"view": "web_view",
"property_dict": {
"dynamic_children": [0],
"requires_authentication": true,
"depends_on": "login_state",
"wrap_gadget": 2,
"link": true,
"link_identifier": "_id",
......@@ -40,7 +36,7 @@
"scheme": [
{
"position": "header",
"fieldlist": [
"field_list": [
{"field": "gender", "show": true, "priority": 7},
{"field": "first_name", "show": true, "persist": true},
{"field": "last_name", "show": true, "persist": true},
......@@ -55,7 +51,7 @@
]
},{
"position": "body",
"fieldlist": [
"field_list": [
{"field": "gender", "show": true, "priority": 7},
{"field": "first_name", "show": true, "persist": true},
{"field": "last_name", "show": true, "persist": true},
......@@ -70,19 +66,21 @@
]
}
],
"children": [{
"children": [
{
"generate": "widget",
"type": "table",
"class_list": "table-stroke ui-responsive",
"property_dict": {
"class_list": "table-stroke ui-responsive",
"map_children": "tableItem",
"dynamic": true,
"mode": "columntoggle",
"toggle_popup": false,
"wrap": "both",
"top_grid": 1,
"bottom_grid": 1
},
"children": [
{"type": "input", "direct": {"value": "Update My Credentials", "className": "action translate"}, "attributes": {"type": "submit", "data-action":"add", "data-i18n":"[value]portal_type_dict.person_dict.text_dict.submit", "data-theme": "slapos-black"}}
]
}]
"children": []
}
]
}
[
{
"gender": "male",
"first_name": "Sven",
"last_name": "Franck",
"default_address_street_address": "86, Avenue des Muy\nAppt. 33\n3ieme Etage",
"default_address_city": "Lille",
"default_address_region": "France",
"default_address_zip_code": "59800",
"default_telephone_text": "+49123456789",
"default_mobile_telephone_text": "+49123456789",
"default_fax_text": "+45123300012",
"default_email_text": "svenfranck@hoo.com",
"nationality": "German",
"corporate_name": null,
"role_list": null,
"date_of_birth": null,
"description": "Test account",
"activity_list": null,
"reference": null,
"password": null,
"confirm_password": null,
"default_credential_question_question": null,
"default_credential_question_question_free_text": null,
"default_credential_question_answer": null,
"skill_list": null,
"site": null,
"work_function": null
}
]
\ No newline at end of file
......@@ -3,7 +3,6 @@
"portal_type_title": "person",
"portal_type_fields": "person_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,1]},
"form": true,
"view": "web_view",
"property_dict": {
"initial_query_url_identifier": "_id",
......@@ -12,24 +11,19 @@
"message_i18n": "portal_type_dict.person_dict.text_dict.nodata",
"children": [
{
"href": "#person/new",
"href": "#person_module/new",
"text": "Create person",
"text_i18n": "page_dict.person.create",
"class_list": "translate ui-btn-slapos-black",
"icon": "edit"
}
]
},
"dynamic_children": [0],
"requires_authentication": true,
"depends_on": "login_state",
"reset": "login_state",
"allow_new": true
}
},
"scheme": [
{
"position": "left",
"fieldlist": [
"field_list": [
{"field": "gender"},
{"field": "first_name"},
{"field": "last_name"},
......@@ -39,7 +33,7 @@
]
}, {
"position": "right",
"fieldlist": [
"field_list": [
{"field": "default_address_street_address"},
{"field": "default_address_city"},
{"field": "default_address_zip_code"},
......@@ -51,8 +45,10 @@
"children": [{
"generate": "widget",
"type": "form",
"class_list": "responsive",
"property_dict": {
"class_list": "responsive",
"dynamic": true,
"map_children": "formItem",
"editable": true,
"secure": "default",
"secret_hash": "foo",
......@@ -61,8 +57,8 @@
"children": [{
"generate": "widget",
"type": "controlgroup",
"class_list": "center",
"property_dict": {
"class_list": "center",
"direction": "horizontal"
},
"children": [
......
{
"generate": "gadget",
"type": "pageIndex",
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"title": "Pricing",
"title_i18n": "global_dict.pricing",
"theme": "slapos-white",
"property_dict": {
"title": "Pricing",
"title_i18n": "global_dict.pricing",
"theme": "slapos-white"
},
"view_dict": {
"default": []
}
......
......@@ -3,14 +3,11 @@
"portal_type_title": "release",
"portal_type_fields": "release_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,1]},
"form": true,
"view": "web_view",
"property_dict": {
"always_render": true,
"dynamic_children": [0],
"requires_authentication": true,
"depends_on": "login_state",
"submit_to": "#services/__id__",
"initial_query_url_identifier": "_id",
"submit_to": "#service_module/__id__",
"block_identifier": true,
"url_pointer": {
"new": "request"
}
......@@ -18,25 +15,21 @@
"scheme": [
{
"position": "center",
"fieldlist": [
"field_list": [
{"type": "input", "direct": {"className":"progress_notifier", "name": "status", "id": "status", "value": "Preparing instance..."}, "attributes": {"data-i18n":"[value]portal_type_dict.release_dict.text_dict.prepare_instance"}, "logic":{"disabled": "disabled"}}
]
},
{
"position": "left",
"fieldlist": [
{"type": "input", "direct": {"id":"software_release_show", "className": "required"}, "attributes": {"data-enhanced": "true", "type": "text", "readonly": "readonly"}, "logic": {"setValue": "_relative_url", "label": "Software Release", "label_i18n": "portal_type_dict.release_dict.text_dict.software_release", "skip":false}},
{"type": "input", "direct": {"name": "software_release", "id":"software_release", "className": "required"}, "attributes": {"data-enhanced": "true", "type": "hidden"}, "logic": {"setValue": "_relative_url", "skip":false}},
{"type": "input", "direct": {"name": "software_title", "id": "software_title", "className": "required"}, "attributes": {"data-enhanced": true, "type": "text"}, "logic": {"clear": true, "label": "Instance Title", "setValue": "instance_", "label_i18n": "portal_type_dict.release_dict.text_dict.instance_title", "skip": false}}
"field_list": [
{"type": "input", "direct": {"id":"software_release_show", "className": "required"}, "attributes": {"data-enhanced": "true", "type": "text", "readonly": "readonly"}, "logic": {"setValue": "_id", "label": "Software Release", "label_i18n": "portal_type_dict.release_dict.text_dict.software_release", "skip":false}},
{"type": "input", "direct": {"name": "software_release", "id":"software_release", "className": "required"}, "attributes": {"data-enhanced": "true", "type": "hidden"}, "logic": {"setValue": "_id", "skip":false}},
{"type": "input", "direct": {"name": "software_title", "id": "software_title", "className": "required"}, "attributes": {"data-enhanced": true, "type": "text"}, "logic": {"clear": true, "label": "Instance Title", "label_i18n": "portal_type_dict.release_dict.text_dict.instance_title", "skip": false}}
]
},
{
"position": "right",
"fieldlist": []
},
{
"position": "center",
"fieldlist": [
"field_list": [
{"type": "textarea", "direct": {"name": "instance_xml", "id": "instance_xml", "className": "required", "value": "<?xml version='1.0' encoding='utf-8'?>\n<instance>\n</instance>"}, "attributes": {"data-enhanced":"true"}, "logic": {"label":"Instance Configuration", "label_i18n":"portal_type_dict.release_dict.text_dict.instance_recipe"}},
{"type": "input", "direct": {"name": "sla_xml", "id": "sla_xml", "className": "required", "value": "<?xml version='1.0' encoding='utf-8'?>\n<instance>\n</instance>"}, "attributes": {"data-enhanced":"true", "type": "hidden"}, "logic": {}},
{"type": "input", "direct": {"name": "shared", "id": "shared", "className": "required", "value": 0}, "attributes": {"data-enhanced":"true", "type": "hidden"}, "logic": {}},
......@@ -49,8 +42,10 @@
{
"generate": "widget",
"type": "form",
"class_list": "responsive",
"property_dict": {
"class_list": "responsive",
"dynamic": true,
"map_children": "formItem",
"editable": true,
"secure": "default",
"secret_hash": "foo",
......@@ -59,8 +54,8 @@
"children": [{
"generate": "widget",
"type": "controlgroup",
"class_list": "center",
"property_dict": {
"class_list": "center",
"direction": "horizontal"
},
"children": [{"type": "input", "direct": {"value": "Request", "className": "action translate"}, "attributes": {"type": "submit", "data-action":"new", "data-icon":"check", "data-i18n":"[value]portal_type_dict.release_dict.text_dict.request", "data-theme": "slapos-black"}}
......
......@@ -3,11 +3,9 @@
"portal_type_title": "release",
"portal_type_fields": "release_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,8]},
"form": true,
"view": "web_view",
"property_dict": {
"initial_query_url_identifier": "_id",
"dynamic_children": [0],
"wrap_gadget": 2,
"link": true,
"link_identifier": "_id",
......@@ -32,7 +30,7 @@
"scheme": [
{
"position": "header",
"fieldlist": [
"field_list": [
{"field": "title", "show": true, "priority": 1},
{"field": "version", "show": true, "priority": 1},
{"field": "description", "show": true, "priority": 5}
......@@ -40,7 +38,7 @@
},
{
"position": "body",
"fieldlist": [
"field_list": [
{"field": "title", "show": true, "priority": 1},
{"field": "version", "show": true, "priority": 1},
{"field": "description", "show": true, "priority": 5}
......@@ -50,8 +48,10 @@
"children": [{
"generate": "widget",
"type": "table",
"class_list": "table-stroke ui-responsive",
"property_dict": {
"class_list": "table-stroke ui-responsive",
"dynamic": true,
"map_children": "tableItem",
"mode": "columntoggle",
"toggle_popup": false,
"wrap": "both",
......
This diff is collapsed.
......@@ -2,11 +2,9 @@
"portal_type_source": "Service",
"portal_type_title": "service",
"portal_type_fields": "service_fieldlist",
"form": true,
"view": "web_view",
"property_dict": {
"initial_query_url_identifier": "_id",
"dynamic_children": [1],
"wrap_gadget": 2,
"caption": {
"slot": 1,
......@@ -17,7 +15,7 @@
"scheme": [
{
"position": "header",
"fieldlist": [
"field_list": [
{"field": "connection_url", "show": true, "priority": 1},
{"field": "connection_backend_url", "show": true, "priority": 2},
{"field": "connection_password", "show": true, "priority": 6}
......@@ -25,7 +23,7 @@
},
{
"position": "body",
"fieldlist": [
"field_list": [
{"field": "connection_url", "show": true, "priority": 1},
{"field": "connection_backend_url", "show": true, "priority": 2},
{"field": "connection_password", "show": true, "priority": 6}
......@@ -35,8 +33,10 @@
"children": [{
"generate": "widget",
"type": "table",
"class_list": "table-stroke ui-responsive",
"property_dict": {
"class_list": "table-stroke ui-responsive",
"dynamic": true,
"map_children": "tableItem",
"mode": "columntoggle",
"toggle_popup": false,
"wrap": "both",
......
......@@ -2,13 +2,10 @@
"portal_type_source": "Hosting Subscription",
"portal_type_title": "service",
"portal_type_fields": "service_fieldlist",
"form": true,
"view": "web_view",
"property_dict": {
"initial_query_url_identifier": "_id",
"dynamic_children": [0],
"requires_authentication": true,
"depends_on": "login_state",
"submit_to": "#service_module",
"url_pointer": {
"start": "start",
"stop": "stop",
......@@ -18,62 +15,40 @@
"scheme": [
{
"position": "left",
"fieldlist": [
{"field": "title", "overrides": {"widget": {"title": "Partitions Installed For:", "title_i18n": "portal_type_dict.service_dict.text_dict.partitions_installed_for"}, "properties": {"editable":false}}}
]
},
{
"position": "center",
"fieldlist": [
{"type": "a", "direct": {}, "attributes": {"data-external":true}, "logic":{"setters": ["href", "text"], "setValue":"url_string"}}
]
},
{
"position": "left",
"fieldlist": [
"field_list": [
{"field": "title", "overrides": {"widget": {"title": "Partitions Installed For:", "title_i18n": "portal_type_dict.service_dict.text_dict.partitions_installed_for"}, "properties": {"editable":false}}},
{"type": "a", "direct": {}, "attributes": {"data-external":true}, "logic":{"route": "force_form_element", "label": "URL String", "plain_link": true, "setters": ["href", "text"], "setValue":"url_string"}},
{"field": "source_reference", "overrides": {"properties": {"editable": false}}}
]
}, {
"position": "right",
"field_list": [
{"type": "a", "direct": {"className": "inline action error status translate"}, "attributes": {"data-i18n": "portal_type_dict.service_dict.text_dict.destroy", "data-action": "destroy", "data-icon": "trash-o"}, "logic":{"setReference": true, "setters": ["data-method", "href"], "lookupValue":[["_actions", "destroy", "method"], ["_actions", "destroy", "href"]], "text": "Destroy"}},
{"type": "a", "direct": {"className": "inline action error status translate"}, "attributes": {"data-i18n": "portal_type_dict.service_dict.text_dict.stop", "data-action": "stop", "data-icon": "ban"}, "logic":{"setReference": true, "setters": ["data-method", "href"], "lookupValue":[["_actions", "stop", "method"], ["_actions", "stop", "href"]], "text": "Stop"}},
{"type": "a", "direct": {"className": "inline ui-shadow action ui-btn-slapos-black translate"}, "attributes": {"data-i18n": "portal_type_dict.service_dict.text_dict.start", "data-action": "start", "data-icon": "cogs"}, "logic":{"setReference": true, "setters": ["data-method", "href"], "lookupValue":[["_actions", "start", "method"], ["_actions", "start", "href"]], "text": "Start"}}
]
},
{
"position": "center",
"fieldlist": [
"field_list": [
{"field": "text_content", "overrides": {"widget": {"title": "Instance XML Recipe", "title_i18n": "portal_type_dict.service_dict.text_dict.recipe"}}}
]
},
{
"position": "left",
"fieldlist": [
{
"custom": true,
"action_list": [
{"setters": ["data-method", "href"], "setValues":[["_actions", "destroy", "method"], ["_actions", "destroy", "href"]], "class_list": "action error status translate", "iconpos": "left", "action": "destroy", "icon":"trash-o", "text": "Destroy", "text_i18n":"portal_type_dict.service_dict.text_dict.destroy"},
{"setters": ["data-method", "href"], "setValues":[["_actions", "stop", "method"], ["_actions", "stop", "href"]], "class_list": "action error status translate", "iconpos": "left", "action": "stop", "icon":"ban", "text": "Stop", "text_i18n":"portal_type_dict.service_dict.text_dict.stop"},
{"setters": ["data-method", "href"], "setValues":[["_actions", "start", "method"], ["_actions", "start", "href"]], "class_list": "action ui-btn-slapos-black translate", "iconpos": "left", "action": "start", "icon":"cogs", "text": "Start", "text_i18n":"portal_type_dict.service_dict.text_dict.start"}
]
}
]
}
],
"children": [
{
"generate": "widget",
"type": "form",
"class_list": "responsive",
"property_dict": {
"class_list": "",
"dynamic": true,
"map_children": "formItem",
"editable": true,
"secure": "default",
"secret_hash": "foo",
"public_key": "6Ldpb-oSAAAAAGwriKpk4ol1n4yjN_as6M4xv0zA"
},
"children": [{
"generate": "widget",
"type": "controlgroup",
"class_list": "center",
"property_dict": {
"direction": "horizontal"
},
"children": []
}]
"children": []
}
]
}
{
"generate": "gadget",
"type": "pageIndex",
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"title": "Services",
"title_i18n": "portal_type_dict.service_dict.text_dict.services",
"theme": "slapos-white",
"property_dict": {
"title": "Services",
"title_i18n": "portal_type_dict.service_dict.text_dict.services",
"theme": "slapos-white"
},
"view_dict": {
"default": [
{
"generate": "gadget",
"type": "listbox",
"href": "service_overview"
}
]
......@@ -21,31 +19,25 @@
}, {
"generate": "widget",
"type": "page",
"title": "Service Configuration",
"title_i18n": "portal_type_dict.service_dict.text_dict.service_configuration",
"theme": "slapos-white",
"property_dict": {
"title": "Service Configuration",
"title_i18n": "portal_type_dict.service_dict.text_dict.service_configuration",
"theme": "slapos-white"
},
"view_dict": {
"default": [
{
"generate": "gadget",
"type": "fieldlist",
"href": "service_instance_status"
},
{
"generate": "gadget",
"type": "listbox",
"href": "service_connection"
},
{
"generate": "gadget",
"type": "listbox",
"href": "service_statusbox"
}
],
"add": [
{
"generate": "gadget",
"type": "listgrid",
"href": "software_overview"
}
]
......@@ -53,26 +45,22 @@
}, {
"generate": "widget",
"type": "page",
"title": "Select Release",
"title_i18n": "portal_type_dict.service_dict.text_dict.select_release",
"theme": "slapos-white",
"property_dict": {
"title": "Select Release",
"title_i18n": "portal_type_dict.service_dict.text_dict.select_release",
"theme": "slapos-white"
},
"view_dict": {
"default": [
{
"generate": "gadget",
"type": "fieldlist",
"href": "instance_configuration"
},
{
"generate": "gadget",
"type": "listbox",
"href": "instance_connection"
}
],
"add": [
{
"generate": "gadget",
"type": "listbox",
"href": "release_overview"
}
]
......@@ -80,14 +68,14 @@
}, {
"generate": "widget",
"type": "page",
"title": "Install Release",
"title_i18n": "portal_type_dict.service_dict.text_dict.install_release",
"theme": "slapos-white",
"property_dict": {
"title": "Install Release",
"title_i18n": "portal_type_dict.service_dict.text_dict.install_release",
"theme": "slapos-white"
},
"view_dict": {
"add": [
{
"generate": "gadget",
"type": "fieldlist",
"href": "release_install"
}
]
......
......@@ -2,12 +2,10 @@
"portal_type_source": "Hosting Subscription",
"portal_type_title": "service",
"portal_type_fields": "service_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,16]},
"form": true,
"initial_query": {"include_docs": true, "limit":[0, 8]},
"view": "web_view",
"property_dict": {
"initial_query_url_identifier": "_id",
"dynamic_children": [1],
"wrap_gadget": 2,
"link": true,
"link_identifier": "_id",
......@@ -32,7 +30,7 @@
"scheme": [
{
"position": "header",
"fieldlist": [
"field_list": [
{"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},
{"field": "version", "show": true, "priority": 1},
......@@ -41,7 +39,7 @@
},
{
"position": "body",
"fieldlist": [
"field_list": [
{"field": "image_url", "show": true, "priority": 4, "image": true},
{"field": "title", "show": true, "priority": 1},
{"field": "version", "show": true, "priority": 1},
......@@ -51,7 +49,7 @@
],
"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"},
"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": "#service_module/add"},
"attributes": {
"data-i18n": "portal_type_dict.service_dict.text_dict.add",
"data-icon": "edit"
......@@ -60,8 +58,10 @@
}, {
"generate": "widget",
"type": "table",
"class_list": "table-stroke ui-responsive",
"property_dict": {
"class_list": "table-stroke ui-responsive",
"dynamic": true,
"map_children": "tableItem",
"mode": "columntoggle",
"toggle_popup": false,
"wrap": "both",
......
[
{
"version":"slapos-0.92",
"title": "[EXPERIMENTAL] KVM",
"image_type": "image",
"image_url":"https://www.slapos.org/software_product_module/2/default_image?quality=75&amp;display=thumbnail",
"status": "",
"usage": "",
"id": "",
"timestamp": "2013/12/24",
"reference_release": "2845497",
"reference_computer": "",
"xml_recipe": "<?xml version='1.0' encoding='utf-8'?>\n<instance>\n</instance>"
},
{
"version":"[EXPERIMENTAL] SlapOS Web Runner",
"title": "SlapOS Web Runner (Master Development)",
"image_type": "image",
"image_url":"https://www.slapos.org/software_product_module/20110316-88D7/default_image?quality=75&amp;display=thumbnail",
"status": "",
"usage": "",
"id": "",
"timestamp": "2013/12/23",
"reference_release": "1657159",
"reference_computer": "",
"xml_recipe": "<?xml version='1.0' encoding='utf-8'?>\n<instance>\n</instance>"
},
{
"version":"slapos-0.141",
"title": "Kumofs Branch Development",
"image_type": "image",
"image_url":"https://www.slapos.org/software_product_module/20110615-176F8/default_image?quality=75&amp;display=thumbnail",
"status": "",
"usage": "",
"id": "",
"timestamp": "2013/12/22",
"reference_release": "8516098",
"reference_computer": "",
"xml_recipe": "<?xml version='1.0' encoding='utf-8'?>\n<instance>\n</instance>"
},
{
"version":"slapos-0.96",
"title": "Zabbix Agent",
"image_type": "image",
"image_url":"https://www.slapos.org/software_product_module/20110613-107B5/default_image?quality=75&amp;display=thumbnail",
"status": "",
"usage": "",
"id": "",
"timestamp": "2013/12/22",
"reference_release": "3105599",
"reference_computer": "",
"xml_recipe": "<?xml version='1.0' encoding='utf-8'?>\n<instance>\n</instance>"
}
]
\ No newline at end of file
......@@ -3,15 +3,13 @@
"portal_type_title": "service",
"portal_type_fields": "service_fieldlist",
"initial_query": {"limit": [0,8]},
"form": true,
"view": "web_view",
"property_dict": {
"initial_query_url_identifier": "_id",
"dynamic_children": [0,1],
"link": true,
"link_identifier": "_id",
"wrap_gadget": 2,
"submit_to": "#services",
"submit_to": "#service_module",
"caption": {
"slot": 1,
"text": "Installations",
......@@ -30,7 +28,7 @@
"scheme": [
{
"position": "header",
"fieldlist": [
"field_list": [
{"field": "status", "show": true, "priority": 1},
{"field": "title", "show": true, "priority": 1},
{"field": "image_url", "show": true, "priority": 5},
......@@ -39,7 +37,7 @@
},
{
"position": "body",
"fieldlist": [
"field_list": [
{"field": "status", "show": true, "priority": 1},
{"field": "title", "show": true, "priority": 1},
{"field": "image_url", "show": true, "priority": 5, "image": true},
......@@ -50,8 +48,10 @@
"children": [{
"generate": "widget",
"type": "table",
"class_list": "table-stroke ui-responsive",
"property_dict": {
"class_list": "table-stroke ui-responsive",
"dynamic": true,
"map_children": "tableItem",
"mode": "columntoggle",
"toggle_popup": false,
"wrap": "both",
......
......@@ -3,12 +3,10 @@
"portal_type_title": "software",
"portal_type_fields": "software_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,6]},
"form": true,
"view": "web_view",
"property_dict": {
"link": true,
"link_identifier": "_id",
"dynamic_children": [0],
"pagination": {
"class_list": "center",
"option_list": [
......@@ -22,7 +20,7 @@
"scheme": [
{
"position": "left",
"fieldlist": [
"field_list": [
{"field": "id", "type": "hidden"},
{"field": "image_url", "type": "image"},
{"field": "title", "type": "alt"}
......@@ -30,7 +28,7 @@
},
{
"position": "center",
"fieldlist": [
"field_list": [
{"field": "title", "type": "h1"},
{"field": "description", "type": "p"}
]
......@@ -39,10 +37,11 @@
"children": [{
"generate":"widget",
"type": "listview",
"class_list": "",
"theme": "slapos-white",
"property_dict": {
"inset":"true"
"theme": "slapos-white",
"inset":"true",
"map_children": "listItem",
"dynamic": true
},
"children": []
}]
......
[
{
"id": "2",
"title": "[EXPERIMENTAL] KVM",
"description": "",
"image_type": "image",
"image_url": "https://www.slapos.org/software_product_module/2/default_image?quality=75&amp;display=thumbnail",
"title_i18n":"portal_type_dict.software_dict.data_dict.kvm.title",
"description_i18n":"portal_type_dict.software_dict.data_dict.kvm.description",
"price": "1",
"currency": "Euro",
"period": "Month"
},
{
"id": "20110316-88D7",
"title": "[EXPERIMENTAL] SlapOS Web Runner",
"description": "",
"image_type": "image",
"image_url": "https://www.slapos.org/software_product_module/20110316-88D7/default_image?quality=75&amp;display=thumbnail",
"title_i18n":"portal_type_dict.software_dict.data_dict.slapos_runner.title",
"description_i18n":"portal_type_dict.software_dict.data_dict.slapos_runner.description",
"price": "1",
"currency": "Euro",
"period": "Month"
},
{
"id": "20110615-176F8",
"title": "[EXPERIMENTAL] Kumofs",
"description": "",
"image_type": "image",
"image_url": "https://www.slapos.org/software_product_module/20110615-176F8/default_image?quality=75&amp;display=thumbnail",
"title_i18n":"portal_type_dict.software_dict.data_dict.kumofs.title",
"description_i18n":"portal_type_dict.software_dict.data_dict.kumofs.description",
"price": "1",
"currency": "Euro",
"period": "Month"
},
{
"id": "20110613-107B5",
"title": "[EXPERIMENTAL] Zabbix Agent",
"description": "",
"image_type": "image",
"image_url": "https://www.slapos.org/software_product_module/20110613-107B5/default_image?quality=75&amp;display=thumbnail",
"title_i18n":"portal_type_dict.software_dict.data_dict.zabbix.title",
"description_i18n":"portal_type_dict.software_dict.data_dict.zabbix.description",
"price": "1",
"currency": "Euro",
"period": "Month"
},
{
"id": "20110620-F42E",
"title": "[EXPERIMENTAL] ERP5 Test Node",
"description": "",
"image_type": "image",
"image_url": "https://www.slapos.org/software_product_module/20110620-F42E/default_image?quality=75&amp;display=thumbnail",
"title_i18n":"portal_type_dict.software_dict.data_dict.erp5_testnode.title",
"description_i18n":"portal_type_dict.software_dict.data_dict.erp5_testnode.description",
"price": "1",
"currency": "Euro",
"period": "Month"
},
{
"id": "20120412-853D9",
"title": "[EXPERIMENTAL] HTML5 Application Server",
"description": "",
"image_type": "image",
"image_url": "https://www.slapos.org/software_product_module/20120412-853D9/default_image?quality=75&amp;display=thumbnail",
"title_i18n":"portal_type_dict.software_dict.data_dict.html5_app_server.title",
"description_i18n":"portal_type_dict.software_dict.data_dict.html5_app_server.description",
"price": "1",
"currency": "Euro",
"period": "Month"
},
{
"id": "20120911-A661D",
"title": "[EXPERIMENTAL] BOINC Client",
"description": "",
"image_type": "image",
"image_url": "https://www.slapos.org/software_product_module/20120911-A661D/default_image?quality=75&amp;display=thumbnail",
"title_i18n":"portal_type_dict.software_dict.data_dict.boinc_client.title",
"description_i18n":"portal_type_dict.software_dict.data_dict.boinc_client.description",
"price": "1",
"currency": "Euro",
"period": "Month"
},
{
"id": "20120911-5F9C9",
"title": "[EXPERIMENTAL] BOINC Server",
"description": "",
"image_type": "image",
"image_url": "https://www.slapos.org/software_product_module/20120911-5F9C9/default_image?quality=75&amp;display=thumbnail",
"title_i18n":"portal_type_dict.software_dict.data_dict.boinc_server.title",
"description_i18n":"portal_type_dict.software_dict.data_dict.boinc_server.description",
"price": "1",
"currency": "Euro",
"period": "Month"
}
]
\ No newline at end of file
This diff is collapsed.
......@@ -3,11 +3,9 @@
"portal_type_title": "service",
"portal_type_fields": "service_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,8]},
"form": true,
"view": "web_view",
"property_dict": {
"initial_query_url_identifier": "_id",
"dynamic_children": [0],
"wrap_gadget": 2,
"link": true,
"link_identifier": "_id",
......@@ -23,7 +21,7 @@
"scheme":[
{
"position": "header",
"fieldlist": [
"field_list": [
{"field": "image_url", "show": true, "priority": 4},
{"field": "title", "show": true, "priority": 5},
{"field": "version", "show": true, "priority": 2},
......@@ -33,7 +31,7 @@
},
{
"position": "body",
"fieldlist": [
"field_list": [
{"field": "image_url", "show": true, "priority": 4},
{"field": "title", "show": true, "priority": 5},
{"field": "version", "show": true, "priority": 2},
......@@ -45,8 +43,10 @@
"children": [{
"generate": "widget",
"type": "table",
"class_list": "table-stroke ui-responsive",
"property_dict": {
"class_list": "table-stroke ui-responsive",
"dynamic": true,
"map_children": "tableItem",
"mode": "columntoggle",
"toggle_popup": false,
"wrap": "both",
......
......@@ -450,7 +450,6 @@
"alternate_name": "content_type",
"css_class": null,
"hidden": null,
"size": 1,
"items": "getContentFormat",
"select_first_item": true,
"extra_per_item": null,
......
{
"generate": "gadget",
"type": "pageIndex",
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"title": "Test Page Module",
"title_i18n": "portal_type_dict.test_page_dict.text_dict.title",
"theme": "slapos-white",
"property_dict": {
"title": "Test Page Module",
"title_i18n": "portal_type_dict.test_page_dict.text_dict.title",
"theme": "slapos-white"
},
"view_dict": {
"default": [{
"generate": "gadget",
"type": "listbox",
"href": "test_page_overview"
}, {
"generate": "widget",
"type": "panel",
"id": "test_page_detail_search",
"theme": "slapos-white",
"property_dict": {
"close": null,
"local": true
"id": "test_page_detail_search",
"theme": "slapos-white",
"close": true
},
"children": []
}
],
"new": [{
"generate": "gadget",
"type": "fieldlist",
"href": "test_page_new"
}]
}
}, {
"generate": "widget",
"type": "page",
"title": "Test Page",
"title_i18n": "portal_type_dict.test_page_dict.text_dict.page",
"theme": "slapos-white",
"property_dict": {
"title": "Test Page",
"title_i18n": "portal_type_dict.test_page_dict.text_dict.page",
"theme": "slapos-white"
},
"view_dict": {
"default": [{
"generate": "widget",
......
......@@ -3,25 +3,21 @@
"portal_type_title": "test",
"portal_type_fields": "test_page_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,1]},
"form": true,
"view": "web_view",
"property_dict": {
"dynamic_children": [0],
"requires_authentication": true,
"depends_on": "login_state",
"wrap_gadget": 2,
"submit_to": "#test_page_module/__id__"
},
"scheme": [
{
"position": "left",
"fieldlist": [
"field_list": [
{"field": "title"},
{"field": "short_title"}
]
}, {
"position": "right",
"fieldlist": [
"field_list": [
{"field": "description"}
]
}
......@@ -29,8 +25,10 @@
"children": [{
"generate": "widget",
"type": "form",
"class_list": "responsive",
"property_dict": {
"class_list": "responsive",
"map_children": "formItem",
"dynamic": true,
"editable": true,
"secure": "default",
"secret_hash": "foo",
......@@ -39,8 +37,8 @@
"children": [{
"generate": "widget",
"type": "controlgroup",
"class_list": "center",
"property_dict": {
"class_list": "center",
"direction": "horizontal"
},
"children": [
......
......@@ -3,12 +3,8 @@
"portal_type_title": "test",
"portal_type_fields": "test_page_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,8]},
"form": true,
"view": "web_view",
"property_dict": {
"dynamic_children": [2],
"requires_authentication": true,
"depends_on": "login_state",
"wrap_gadget": 2,
"link": true,
"link_identifier": "_id",
......@@ -27,7 +23,7 @@
]
},
"no_items": {
"message": "No person found.",
"message": "No Test Page found.",
"message_i18n": "portal_type_dict.test_page_dict.text_dict.empty"
},
"search": {
......@@ -40,7 +36,8 @@
"scheme": [
{
"position": "header",
"fieldlist": [
"field_list": [
{"field": "_id", "show": true, "priority": 7},
{"field": "reference", "show": true, "priority": 6},
{"field": "short_title", "show": true, "priority": 6},
{"field": "title", "custom": true, "show": true, "persist": true, "text": "Long Title", "text_i18n":"portal_type_dict.test_page_dict.text_dict.long_title" },
......@@ -52,7 +49,8 @@
]
},{
"position": "body",
"fieldlist": [
"field_list": [
{"field": "_id", "show": true, "priority": 7},
{"field": "reference", "show": true, "priority": 6},
{"field": "short_title", "show": true, "priority": 6},
{"field": "title", "show": true, "persist": true},
......@@ -75,19 +73,21 @@
}, {
"generate": "widget",
"type": "controlgroup",
"class_list": "right",
"property_dict": {
"class_list": "right",
"direction": "horizontal"
},
"children": [
{"type": "a", "direct": {"href": "#test_page_detail_search", "className": "translate ui-btn ui-icon-sitemap ui-btn-icon-notext action"}, "attributes": {"data-action": "group", "data-rel":"panel", "data-i18n":"portal_type_dict.test_page_dict.text_dict.group"}, "logic": {"text":"Group Record Filter"}},
{"type": "a", "direct": {"href": "#test_page_detail_search", "className": "translate ui-btn ui-icon-filter ui-btn-icon-notext action"}, "attributes": {"data-action": "filter", "data-rel":"panel", "data-i18n":"portal_type_dict.test_page_dict.text_dict.filter"}, "logic": {"text":"Detail Search"}}
{"type": "a", "direct": {"href": "#test_page_detail_search", "className": "translate ui-btn ui-icon-sitemap ui-btn-icon-notext"}, "attributes": {"data-rel":"panel", "data-i18n":"portal_type_dict.test_page_dict.text_dict.group"}, "logic": {"text":"Group Record Filter"}},
{"type": "a", "direct": {"href": "#test_page_detail_search", "className": "translate ui-btn ui-icon-filter ui-btn-icon-notext"}, "attributes": {"data-rel":"panel", "data-i18n":"portal_type_dict.test_page_dict.text_dict.filter"}, "logic": {"text":"Detail Search"}}
]
}, {
"generate": "widget",
"type": "table",
"class_list": "table-stroke ui-responsive",
"property_dict": {
"dynamic": true,
"class_list": "table-stroke ui-responsive",
"map_children": "tableItem",
"mode": "columntoggle",
"toggle_popup": false,
"wrap": "both",
......
[
{
"_id": "foo",
"short_title": "bar",
"portal_type": "Test Page"
},
{
"_id": "baz",
"short_title": "bam",
"portal_type": "Test Page"
}
]
\ No newline at end of file
......@@ -3,18 +3,15 @@
"portal_type_title": "test",
"portal_type_fields": "test_page_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,1]},
"form": true,
"view": "web_view",
"property_dict": {
"dynamic_children": [0],
"requires_authentication": true,
"depends_on": "login_state",
"wrap_gadget": 2
"wrap_gadget": 2,
"submit_to": "#test_page_module"
},
"scheme": [
{
"position": "left",
"fieldlist": [
"field_list": [
{"field": "_id", "overrides": {"properties":{"editable": false}}},
{"field": "reference"},
{"field": "title"},
......@@ -22,7 +19,7 @@
]
}, {
"position": "right",
"fieldlist": [
"field_list": [
{"field": "version"},
{"field": "language"},
{"field": "index"},
......@@ -31,7 +28,7 @@
]
}, {
"position": "center",
"fieldlist": [
"field_list": [
{"field": "description"}
]
}
......@@ -39,8 +36,10 @@
"children": [{
"generate": "widget",
"type": "form",
"class_list": "responsive",
"property_dict": {
"class_list": "responsive",
"dynamic": true,
"map_children": "formItem",
"editable": true,
"secure": "default",
"secret_hash": "foo",
......@@ -49,8 +48,8 @@
"children": [{
"generate": "widget",
"type": "controlgroup",
"class_list": "center",
"property_dict": {
"class_list": "center",
"direction": "horizontal"
},
"children": [
......
{
"generate": "gadget",
"type": "pageIndex",
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"title": "Support",
"title_i18n": "portal_type_dict.ticket_dict.text_dict.help",
"theme": "slapos-white",
"property_dict": {
"title": "Support",
"title_i18n": "portal_type_dict.ticket_dict.text_dict.help",
"theme": "slapos-white"
},
"view_dict": {
"default": [
{
"generate":"gadget",
"type": "listbox",
"href": "ticket_overview"
}
],
"new": [
{
"generate": "gadget",
"type": "fieldlist",
"href": "ticket_new"
}
]
......@@ -28,19 +24,17 @@
}, {
"generate": "widget",
"type": "page",
"title": "Ticket",
"title_i18n": "portal_type_dict.ticket_dict.text_dict.ticket",
"theme": "slapos-white",
"property_dict": {
"title": "Ticket",
"title_i18n": "portal_type_dict.ticket_dict.text_dict.ticket",
"theme": "slapos-white"
},
"view_dict": {
"default": [
{
"generate": "gadget",
"type": "listbox",
"href": "ticket_status"
},
{
"generate": "gadget",
"type": "fieldlist",
"href": "ticket_update"
}
]
......
......@@ -2,14 +2,10 @@
"portal_type_source": "Ticket",
"portal_type_title": "ticket",
"portal_type_fields": "ticket_fieldlist",
"form": true,
"view": "web_view",
"property_dict": {
"dynamic_children": [0],
"requires_authentication": true,
"depends_on": "login_state",
"wrap_gadget": 2,
"submit_to": "#help",
"submit_to": "#ticket_module",
"url_pointer": {
"new": "request_ticket"
}
......@@ -17,22 +13,20 @@
"scheme": [
{
"position": "left",
"fieldlist": [
"field_list": [
{"field": "title"},
{"field": "resource"},
{"field": "description"}
]
},
{
"position": "right",
"fieldlist": []
}
],
"children": [{
"generate": "widget",
"type": "form",
"class_list": "responsive",
"property_dict": {
"class_list": "responsive",
"map_children": "formItem",
"dynamic": true,
"editable": true,
"secure": "default",
"secret_hash": "foo",
......@@ -41,8 +35,8 @@
"children": [{
"generate": "widget",
"type": "controlgroup",
"class_list": "center",
"property_dict": {
"class_list": "center",
"direction": "horizontal"
},
"children": [
......
......@@ -3,13 +3,9 @@
"portal_type_title": "ticket",
"portal_type_fields": "ticket_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,8]},
"form": true,
"view": "web_view",
"property_dict": {
"initial_query_url_identifier": "_id",
"dynamic_children": [1],
"requires_authentication": true,
"depends_on": "login_state",
"wrap_gadget": 2,
"link": true,
"link_identifier": "_id",
......@@ -36,7 +32,7 @@
"scheme": [
{
"position": "header",
"fieldlist": [
"field_list": [
{"field": "reference", "show": true, "priority": 1},
{"field": "title", "show": true, "persist": true, "sort": true},
{"field": "translated_validation_state_title", "show": "true", "priority": 5}
......@@ -44,7 +40,7 @@
},
{
"position": "body",
"fieldlist": [
"field_list": [
{"field": "reference", "show": true, "priority": 1},
{"field": "title", "show": true, "persist": true, "sort": true},
{"field": "translated_validation_state_title", "show": "true", "priority": 5}
......@@ -53,7 +49,7 @@
],
"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": "#help/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": "#ticket_module/new"},
"attributes": {
"data-i18n": "portal_type_dict.ticket_dict.text_dict.add",
"data-icon": "edit"
......@@ -62,8 +58,10 @@
}, {
"generate": "widget",
"type": "table",
"class_list": "table-stroke ui-responsive",
"property_dict": {
"class_list": "table-stroke ui-responsive",
"dynamic": true,
"map_children": "tableItem",
"mode": "columntoggle",
"toggle_popup": false,
"wrap": "both",
......
......@@ -3,13 +3,9 @@
"portal_type_title": "ticket",
"portal_type_fields": "ticket_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,8]},
"form": true,
"view": "web_view",
"property_dict": {
"initial_query_url_identifier": "_id",
"dynamic_children": [0],
"requires_authentication": true,
"depends_on": "login_state",
"wrap_gadget": 2,
"editable": null,
"caption": {
......@@ -33,7 +29,7 @@
"scheme": [
{
"position": "header",
"fieldlist": [
"field_list": [
{"field": "user", "show": true, "priority": 4},
{"field": "date", "show": true, "priority": 1},
{"field": "text_content", "show": "true", "priority": 1}
......@@ -41,7 +37,7 @@
},
{
"position": "body",
"fieldlist": [
"field_list": [
{"field": "user", "show": true, "priority": 4},
{"field": "date", "show": true, "priority": 1},
{"field": "text_content", "show": "true", "priority": 1}
......@@ -51,8 +47,10 @@
"children": [{
"generate": "widget",
"type": "table",
"class_list": "table-stroke ui-responsive",
"property_dict": {
"class_list": "table-stroke ui-responsive",
"dynamic": true,
"map_children": "tableItem",
"mode": "columntoggle",
"toggle_popup": false,
"wrap": "both",
......
......@@ -3,15 +3,11 @@
"portal_type_title": "ticket",
"portal_type_fields": "ticket_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,1]},
"form": true,
"view": "web_view",
"property_dict": {
"initial_query_url_identifier": "_id",
"dynamic_children": [0],
"requires_authentication": true,
"depends_on": "login_state",
"wrap_gadget": 2,
"submit_to": "#help",
"submit_to": "#ticket_module",
"url_pointer": {
"update_scope": "update"
}
......@@ -19,20 +15,18 @@
"scheme": [
{
"position": "left",
"fieldlist": [
"field_list": [
{"field": "description"}
]
},
{
"position": "right",
"fieldlist": []
}
],
"children": [{
"generate": "widget",
"type": "form",
"class_list": "responsive",
"property_dict": {
"class_list": "responsive",
"dynamic": true,
"map_children": "formItem",
"editable": true,
"secure": "default",
"secret_hash": "foo",
......@@ -41,8 +35,8 @@
"children": [{
"generate": "widget",
"type": "controlgroup",
"class_list": "center",
"property_dict": {
"class_list": "center",
"direction": "horizontal"
},
"children": [
......
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