Commit b78fc098 authored by Sven Franck's avatar Sven Franck

updated all JSON files to enable offline

parent 43b37318
...@@ -28,6 +28,9 @@ ...@@ -28,6 +28,9 @@
{"value": "32", "text": "32", "text_i18n":"portal_type_dict.computer_dict.text_dict.32"}, {"value": "32", "text": "32", "text_i18n":"portal_type_dict.computer_dict.text_dict.32"},
{"value": "64", "text": "64", "text_i18n":"portal_type_dict.computer_dict.text_dict.64"} {"value": "64", "text": "64", "text_i18n":"portal_type_dict.computer_dict.text_dict.64"}
] ]
},
"url_pointer": {
"jump": "current_computer"
} }
}, },
"scheme": [ "scheme": [
......
...@@ -44,7 +44,8 @@ ...@@ -44,7 +44,8 @@
{"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__/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__/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": "#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": "#", "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": "#", "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"}}
] ]
}] }]
} }
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
"dynamic_children": [0], "dynamic_children": [0],
"requires_authentication": true, "requires_authentication": true,
"wrap_gadget": 2, "wrap_gadget": 2,
"sortable": true,
"mergeable": true, "mergeable": true,
"action_menu": true, "action_menu": true,
"caption": { "caption": {
...@@ -31,28 +30,28 @@ ...@@ -31,28 +30,28 @@
] ]
}, },
"url_pointer": { "url_pointer": {
"jump": "current_invoices" "jump": "current_invoice"
} }
}, },
"scheme": [ "scheme": [
{ {
"position": "header", "position": "header",
"fieldlist": [ "fieldlist": [
{"field": "date", "show": true, "priority": 1, "sort":true}, {"field": "date", "show": true, "priority": 1},
{"field": "total_price", "show": true, "persist": true, "sort":false}, {"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"}, {"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}, {"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} {"custom": true, "text": "Download", "text_i18n": "portal_type_dict.invoice_dict.text_dict.download", "show": true, "persist": true}
] ]
}, },
{ {
"position": "body", "position": "body",
"fieldlist": [ "fieldlist": [
{"field": "date", "show": true, "priority": 1, "sort":true}, {"field": "date", "show": true, "priority": 1},
{"field": "total_price", "show": true, "persist": true, "sort":false}, {"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"},
{"field": "translated_simulation_state_title", "show":"true", "priority": 5}, {"field": "translated_simulation_state_title", "show":"true", "priority": 5},
{"custom": true, "show": true, "persist": true, "sort": false, "action_list": [{"class_list": "action translate", "action": "download", "icon":"file-alt", "text": "Download", "text_i18n":"portable_type_dict.invoice_dict.download"}]} {"custom": true, "show": true, "persist": true, "action_list": [{"class_list": "action translate", "action": "download", "icon":"file-alt", "text": "Download", "text_i18n":"portable_type_dict.invoice_dict.download"}]}
] ]
} }
], ],
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
"view": "web_view", "view": "web_view",
"property_dict": { "property_dict": {
"always_render": true, "always_render": true,
"initial_query_url_identifier": "_id",
"dynamic_children": [0], "dynamic_children": [0],
"requires_authentication": true, "requires_authentication": true,
"depends_on": "login_state", "depends_on": "login_state",
......
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
"portal_type_fields": "release_fieldlist", "portal_type_fields": "release_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,8]}, "initial_query": {"include_docs": true, "limit":[0,8]},
"form": true, "form": true,
"view": "FOO", "view": "web_view",
"property_dict": { "property_dict": {
"initial_query_url_identifier": "reference_id", "initial_query_url_identifier": "_id",
"dynamic_children": [0], "dynamic_children": [0],
"wrap_gadget": 2, "wrap_gadget": 2,
"link": true, "link": true,
...@@ -24,6 +24,9 @@ ...@@ -24,6 +24,9 @@
{"value": "32", "text": "32", "text_i18n":"portal_type_dict.release_dict.text_dict.32"}, {"value": "32", "text": "32", "text_i18n":"portal_type_dict.release_dict.text_dict.32"},
{"value": "64", "text": "64", "text_i18n":"portal_type_dict.release_dict.text_dict.64"} {"value": "64", "text": "64", "text_i18n":"portal_type_dict.release_dict.text_dict.64"}
] ]
},
"url_pointer": {
"jump": "related_software_release"
} }
}, },
"scheme": [ "scheme": [
......
...@@ -86,6 +86,43 @@ ...@@ -86,6 +86,43 @@
"type": "fieldlist", "type": "fieldlist",
"href": "computer_certificate" "href": "computer_certificate"
} }
],
"installation": [
{
"generate": "gadget",
"type": "listgrid",
"href": "software_overview"
}
]
}
}, {
"generate": "widget",
"type": "page",
"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"
}
]
}
}, {
"generate": "widget",
"type": "page",
"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"
}
] ]
} }
} }
......
...@@ -8,7 +8,12 @@ ...@@ -8,7 +8,12 @@
"initial_query_url_identifier": "_id", "initial_query_url_identifier": "_id",
"dynamic_children": [0], "dynamic_children": [0],
"requires_authentication": true, "requires_authentication": true,
"depends_on": "login_state" "depends_on": "login_state",
"url_pointer": {
"start": "start",
"stop": "stop",
"destroy": "destroy"
}
}, },
"scheme": [ "scheme": [
{ {
...@@ -41,9 +46,9 @@ ...@@ -41,9 +46,9 @@
{ {
"custom": true, "custom": true,
"action_list": [ "action_list": [
{"setters": ["data-method", "href"], "setValues":[["_actions", "destroy", "method"], ["_actions", "destroy", "href"]], "class_list": "action error status translate", "iconpos": "left", "action": "destroy_instance", "icon":"trash", "text": "Destroy", "text_i18n":"portal_type_dict.service_dict.text_dict.destroy"}, {"setters": ["data-method", "href"], "setValues":[["_actions", "destroy", "method"], ["_actions", "destroy", "href"]], "class_list": "action error status translate", "iconpos": "left", "action": "destroy", "icon":"trash", "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_instance", "icon":"ban-circle", "text": "Stop", "text_i18n":"portal_type_dict.service_dict.text_dict.stop"}, {"setters": ["data-method", "href"], "setValues":[["_actions", "stop", "method"], ["_actions", "stop", "href"]], "class_list": "action error status translate", "iconpos": "left", "action": "stop", "icon":"ban-circle", "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_instance", "icon":"cogs", "text": "Start", "text_i18n":"portal_type_dict.service_dict.text_dict.start"} {"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"}
] ]
} }
] ]
...@@ -67,9 +72,7 @@ ...@@ -67,9 +72,7 @@
"property_dict": { "property_dict": {
"direction": "horizontal" "direction": "horizontal"
}, },
"children": [ "children": []
{"type": "input", "direct": {"value": "Update", "className": "action translate"}, "attributes": {"type": "submit", "data-action":"add", "data-i18n":"[value]portal_type_dict.service_dict.text_dict.update", "data-icon": "ok", "data-theme": "slapos-black"}}
]
}] }]
} }
] ]
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"form": true, "form": true,
"view": "web_view", "view": "web_view",
"property_dict": { "property_dict": {
"initial_query_url_identifier": "reference_computer", "initial_query_url_identifier": "_id",
"dynamic_children": [1], "dynamic_children": [1],
"wrap_gadget": 2, "wrap_gadget": 2,
"link": true, "link": true,
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
] ]
}, },
"url_pointer": { "url_pointer": {
"jump": "current_hosting_subscriptions" "jump": "current_hosting_subscription"
} }
}, },
"scheme": [ "scheme": [
......
{
"portal_type_source": "Software Release",
"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__",
"url_pointer": {
"install": "request_installation"
}
},
"scheme": [],
"children": [
{
"generate": "widget",
"type": "form",
"class_list": "responsive",
"property_dict": {
"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": [{"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"}}
]
}]
}
]
}
...@@ -2,13 +2,22 @@ ...@@ -2,13 +2,22 @@
"portal_type_source": "Software Product", "portal_type_source": "Software Product",
"portal_type_title": "software", "portal_type_title": "software",
"portal_type_fields": "software_fieldlist", "portal_type_fields": "software_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,8]}, "initial_query": {"include_docs": true, "limit":[0,6]},
"form": true, "form": true,
"view": "web_view", "view": "web_view",
"property_dict": { "property_dict": {
"link": true, "link": true,
"link_identifier": "_relative_url", "link_identifier": "_id",
"dynamic_children": [0] "dynamic_children": [0],
"pagination": {
"class_list": "center",
"option_list": [
{"value": "8", "text": "8", "text_i18n":"portal_type_dict.computer_dict.text_dict.8"},
{"value": "16", "text": "16", "text_i18n":"portal_type_dict.computer_dict.text_dict.16"},
{"value": "32", "text": "32", "text_i18n":"portal_type_dict.computer_dict.text_dict.32"},
{"value": "64", "text": "64", "text_i18n":"portal_type_dict.computer_dict.text_dict.64"}
]
}
}, },
"scheme": [ "scheme": [
{ {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"form": true, "form": true,
"view": "web_view", "view": "web_view",
"property_dict": { "property_dict": {
"initial_query_url_identifier": "reference_computer", "initial_query_url_identifier": "_id",
"dynamic_children": [0], "dynamic_children": [0],
"wrap_gadget": 2, "wrap_gadget": 2,
"link": true, "link": true,
...@@ -16,14 +16,8 @@ ...@@ -16,14 +16,8 @@
"text": "Installed Services", "text": "Installed Services",
"text_i18n":"portal_type_dict.software_dict.text_dict.installed_services" "text_i18n":"portal_type_dict.software_dict.text_dict.installed_services"
}, },
"pagination": { "url_pointer": {
"slot": 2, "jump": "related_software_installation"
"option_list": [
{"value": "8", "text": "8", "text_i18n":"portal_type_dict.invoice_dict.text_dict.8"},
{"value": "16", "text": "16", "text_i18n":"portal_type_dict.invoice_dict.text_dict.16"},
{"value": "32", "text": "32", "text_i18n":"portal_type_dict.invoice_dict.text_dict.32"},
{"value": "64", "text": "64", "text_i18n":"portal_type_dict.invoice_dict.text_dict.64"}
]
} }
}, },
"scheme":[ "scheme":[
...@@ -60,6 +54,6 @@ ...@@ -60,6 +54,6 @@
"bottom_grid": 1 "bottom_grid": 1
}, },
"children": [] "children": []
}, {"type": "a", "direct": {"href": "#services/add", "className": "ui-btn-slapos-black ui-btn ui-shadow ui-btn-inline ui-corner-all"}, "attributes": {"data-i18n":"portal_type_dict.software_dict.text_dict.add_software"}, "logic": {"text":"Install New Software"}} }
] ]
} }
...@@ -11,12 +11,10 @@ ...@@ -11,12 +11,10 @@
"requires_authentication": true, "requires_authentication": true,
"depends_on": "login_state", "depends_on": "login_state",
"wrap_gadget": 2, "wrap_gadget": 2,
"link": true,
"link_identifier": "_id",
"editable": null, "editable": null,
"caption": { "caption": {
"slot": 1, "slot": 1,
"text": "Current Tickets", "text": "Current Messages",
"text_i18n": "portal_type_dict.ticket_dict.text_dict.current_tickets" "text_i18n": "portal_type_dict.ticket_dict.text_dict.current_tickets"
}, },
"pagination": { "pagination": {
...@@ -27,6 +25,9 @@ ...@@ -27,6 +25,9 @@
{"value": "32", "text": "32", "text_i18n":"portal_type_dict.ticket_dict.text_dict.32"}, {"value": "32", "text": "32", "text_i18n":"portal_type_dict.ticket_dict.text_dict.32"},
{"value": "64", "text": "64", "text_i18n":"portal_type_dict.ticket_dict.text_dict.64"} {"value": "64", "text": "64", "text_i18n":"portal_type_dict.ticket_dict.text_dict.64"}
] ]
},
"url_pointer": {
"jump": "related_event"
} }
}, },
"scheme": [ "scheme": [
......
...@@ -11,7 +11,10 @@ ...@@ -11,7 +11,10 @@
"requires_authentication": true, "requires_authentication": true,
"depends_on": "login_state", "depends_on": "login_state",
"wrap_gadget": 2, "wrap_gadget": 2,
"submit_to": "#help" "submit_to": "#help",
"url_pointer": {
"update_scope": "update"
}
}, },
"scheme": [ "scheme": [
{ {
...@@ -43,7 +46,7 @@ ...@@ -43,7 +46,7 @@
"direction": "horizontal" "direction": "horizontal"
}, },
"children": [ "children": [
{"type": "input", "direct": {"value": "Update", "className": "action translate"}, "attributes": {"type": "submit", "data-action":"update", "data-icon":"check", "data-i18n":"[value]portal_type_dict.ticket_dict.text_dict.update", "data-theme": "slapos-black"}} {"type": "input", "direct": {"value": "Update", "className": "action translate"}, "attributes": {"type": "submit", "data-action":"update_scope", "data-icon":"check", "data-i18n":"[value]portal_type_dict.ticket_dict.text_dict.update", "data-theme": "slapos-black"}}
] ]
}] }]
} }
......
{ {
"global_dict": { "global_dict": {
"classic_login": "Or use the default login form",
"classic_slapos": "Login/Password",
"connection_status": "Connection", "connection_status": "Connection",
"login_status": "Login", "login_status": "Login",
"sync_status": "Synchronization", "sync_status": "Synchronization",
...@@ -56,9 +58,12 @@ ...@@ -56,9 +58,12 @@
"find_out_more_details": "For additional information, please refer to the following sections:" "find_out_more_details": "For additional information, please refer to the following sections:"
}, },
"status_dict": { "status_dict": {
"requesting": "Requesting",
"timeout": "Request Timeout. Try again.",
"ssl_error": "Please revoke existing certificate first", "ssl_error": "Please revoke existing certificate first",
"ssl_no": "Certificate does not exist", "ssl_no": "Certificate does not exist",
"ssl_revoked": "Certificate revoked", "ssl_revoked": "Certificate revoked",
"ssl_generated": "Certificate generated",
"not_found": "Page not found", "not_found": "Page not found",
"uploading": "Uploading", "uploading": "Uploading",
"sync": "Synchronizing", "sync": "Synchronizing",
...@@ -242,7 +247,7 @@ ...@@ -242,7 +247,7 @@
"help": "Support", "help": "Support",
"support": "Support", "support": "Support",
"ticket": "Ticket", "ticket": "Ticket",
"current_tickets": "Current Tickets", "current_tickets": "Current Messages",
"8":"8", "8":"8",
"16": "16", "16": "16",
"32": "32", "32": "32",
...@@ -283,6 +288,9 @@ ...@@ -283,6 +288,9 @@
}, },
"computer_dict": { "computer_dict": {
"text_dict": { "text_dict": {
"select_release": "Select Release",
"add_software": "Install Software",
"release": "Release Installation",
"crt": "computer.crt", "crt": "computer.crt",
"key": "computer.key", "key": "computer.key",
"request_ssl": "Request SSL Certificate", "request_ssl": "Request SSL Certificate",
...@@ -850,7 +858,6 @@ ...@@ -850,7 +858,6 @@
"destroy": "Destroy", "destroy": "Destroy",
"release": "Release", "release": "Release",
"installed_services": "Installed Services", "installed_services": "Installed Services",
"add_software": "Install New Software",
"status": "Status", "status": "Status",
"search": "Search available software", "search": "Search available software",
"8":"8", "8":"8",
...@@ -901,6 +908,7 @@ ...@@ -901,6 +908,7 @@
}, },
"release_dict": { "release_dict": {
"text_dict": { "text_dict": {
"install": "Install",
"instance_title": "Instance Title", "instance_title": "Instance Title",
"software_release": "Software Release", "software_release": "Software Release",
"request": "Request", "request": "Request",
......
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