Commit 6ab42332 authored by Sven Franck's avatar Sven Franck

updated networks to match SlapOS

parent 0d7d64c4
......@@ -22,15 +22,6 @@
"slot": 1,
"text": "Associated Servers",
"text_i18n": "portal_type_dict.network_dict.text_dict.associated_servers"
},
"pagination": {
"slot": 2,
"option_list": [
{"value": "8", "text": "8", "text_i18n":"portal_type_dict.network_dict.text_dict.8"},
{"value": "16", "text": "16", "text_i18n":"portal_type_dict.network_dict.text_dict.16"},
{"value": "32", "text": "32", "text_i18n":"portal_type_dict.network_dict.text_dict.32"},
{"value": "64", "text": "64", "text_i18n":"portal_type_dict.network_dict.text_dict.64"}
]
}
},
"scheme": [
......
......@@ -15,12 +15,8 @@
{
"position": "left",
"fieldlist": [
{"type": "input", "direct": {"name": "network_title", "id": "network_title", "className": "required"}, "attributes": {"data-enhanced": true, "type": "text"}, "logic": {"clear": true, "label": "Computer Title", "setValue": "network_", "label_i18n": "portal_type_dict.network_dict.text_dict.title", "skip": false}}
{"type": "input", "direct": {"name": "network_title", "id": "network_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}}
]
},
{
"position": "right",
"fieldlist": []
}
],
"children": [{
......@@ -41,7 +37,6 @@
"direction": "horizontal"
},
"children": [
{"type": "input", "direct": {"value": "Reset", "className": "translate"}, "attributes": {"type": "reset", "data-i18n":"[value]portal_type_dict.network_dict.text_dict.cancel"}},
{"type": "input", "direct": {"value": "Submit", "className": "action translate"}, "attributes": {"type": "submit", "data-action":"add_network", "data-icon":"save", "data-i18n":"[value]portal_type_dict.network_dict.text_dict.submit", "data-theme": "slapos-black"}}
]
}]
......
......@@ -7,7 +7,7 @@
"form": true,
"view": "FOO",
"property_dict": {
"dynamic_children": [1],
"dynamic_children": [0],
"requires_authentication": true,
"depends_on": "login_state",
"wrap_gadget": 2,
......@@ -18,23 +18,9 @@
"text": "Created Networks",
"text_i18n": "portal_type_dict.network_dict.text_dict.created_networks"
},
"pagination": {
"slot": 2,
"option_list": [
{"value": "8", "text": "8", "text_i18n":"portal_type_dict.network_dict.text_dict.8"},
{"value": "16", "text": "16", "text_i18n":"portal_type_dict.network_dict.text_dict.16"},
{"value": "32", "text": "32", "text_i18n":"portal_type_dict.network_dict.text_dict.32"},
{"value": "64", "text": "64", "text_i18n":"portal_type_dict.network_dict.text_dict.64"}
]
},
"no_items": {
"message": "No networks found.",
"message_i18n": "portal_type_dict.network_dict.text_dict.nonet"
},
"search": {
"text": "Search available networks",
"text_i18n": "portal_type_dict.network_dict.text_dict.search",
"info_list": ["records", "filter", "sorted"]
}
},
"scheme": [
......@@ -53,14 +39,6 @@
}
],
"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":"Add network"}
}, {
"generate": "widget",
"type": "table",
"class_list": "table-stroke ui-responsive",
......@@ -72,6 +50,14 @@
"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"}
}]
}
......@@ -13,8 +13,8 @@
"servers_subtitle":"Server instances being used",
"services": "Services",
"services_subtitle": "Administration of Installed Software",
"networks": "Networks",
"networks_subtitle":"Network Administration",
"networks": "My Networks",
"networks_subtitle":"Administration of your networks",
"monitoring": "Monitoring",
"monitoring_subtitle": "Server Status Reports",
"help": "Help",
......@@ -90,13 +90,13 @@
"portal_type_dict": {
"network_dict": {
"text_dict": {
"title": "Network Title",
"title": "Title",
"status": "Status",
"parse_error": "Parsing Error",
"networks": "Networks",
"network_instance": "Network Instance",
"nonet": "No networks found.",
"add": "Add network",
"nonet": "No result",
"add": "New network",
"created_networks": "Created Networks",
"8":"8",
"16": "16",
......@@ -104,7 +104,7 @@
"64": "64",
"search": "Search available networks",
"delete": "Delete",
"submit": "Submit",
"submit": "Add",
"cancel": "Cancel",
"nodata": "No servers associated with this network.",
"associated_servers": "Associated Servers"
......
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