Commit ecf7d9bf authored by Sven Franck's avatar Sven Franck

added network section (overview, create)

parent f027456c
{
"generate": "gadget",
"type": "pageIndex",
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"title": "Servers",
"title_i18n": "page_dict.servers.title",
"theme": "slapos-white",
"layout": {
"default": [
{
"generate": "gadget",
"type": "listbox",
"id": "computer_overview",
"href": "computer_overview"
}
]
}
}, {
"generate": "widget",
"type": "page",
"title": "Server Instance",
"title_i18n": "page_dict.servers.instance",
"theme": "slapos-white",
"layout": {
"default": [
{
"generate": "gadget",
"type": "fieldlist",
"id": "computer_status",
"href": "computer_status"
},
{
"generate": "gadget",
"type": "listbox",
"id": "software_status",
"href": "software_status"
}
],
"new": [
{
"generate": "gadget",
"type": "fieldlist",
"id": "computer_new",
"href": "computer_new"
}
]
}
}, {
"generate": "widget",
"type": "page",
"theme": "slapos-white",
"title": "Instance Configuration",
"title_i18n": "page_dict.servers.configuration",
"layout": {
"config": [
{
"generate": "gadget",
"type": "fieldlist",
"id": "computer_view",
"href": "computer_view"
}
],
"scope": [],
"ssl_on": [],
"ssl_off": []
}
}
]
}
{
"network_title": {
"type": "StringField",
"widget": {
"id": "network_title",
"title": "Title",
"title_i18n": "portal_type_dict.network_dict.field_list.title.title",
"description": "The name of your network.",
"description_i18n": "portal_type_dict.network_dict.field_list.title.description",
"alternate_name": "network_title",
"default_value": null,
"css_class": null,
"hidden": false,
"display_width": 30,
"maximum_input": null,
"extra": {"data-clear-btn":"true"}
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": null
},
"messages": {
"external_validator_failed": {
"message": "The input failed the external validator.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input is required but no input given.",
"i18n": "validation_dict.required"
},
"too_long": {
"message":"Too much input given.",
"i18n": "validation_dict.too_much_input"
}
}
},
"network_reference": {
"type": "StringField",
"widget": {
"id": "network_reference",
"title": "Reference",
"title_i18n": "portal_type_dict.network_dict.field_list.reference.title",
"description": "The reference identifire for this network.",
"description_i18n": "portal_type_dict.network_dict.field_list.reference.description",
"alternate_name": "network_reference",
"default_value": null,
"css_class": null,
"hidden": false,
"display_width": 30,
"maximum_input": null,
"extra": {"data-clear-btn":"true"}
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": null
},
"messages": {
"external_validator_failed": {
"message": "The input failed the external validator.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input is required but no input given.",
"i18n": "validation_dict.required"
},
"too_long": {
"message":"Too much input given.",
"i18n": "validation_dict.too_much_input"
}
}
}
}
\ No newline at end of file
{
"portal_type_source": "Network",
"portal_type_title": "network",
"portal_type_fields": "network_fieldlist",
"form": true,
"id": "network_new",
"property_dict": {
"dynamic_children": [0],
"requires_authentication": true,
"depends_on": "login_state",
"wrap_gadget": 2
},
"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": "Reset", "className": "translate"}, "attributes": {"type": "reset", "data-i18n":"[value]global_dict.common_dict.cancel"}},
{"type": "input", "direct": {"value": "Submit", "className": "action translate"}, "attributes": {"type": "submit", "data-action":"add", "data-icon":"save", "data-i18n":"[value]global_dict.common_dict.submit", "data-theme": "slapos-black"}}
]
}],
"layout": [
{
"position": "left",
"fieldlist": [
{"title": "network_title"}
]
}
]
}
],
"placeholder_dict": {
"no_auth": {
"text":"Requires authorization.",
"text_i18n":"validation_dict.requires_auth",
"children": [
{
"generate": "widget",
"type": "controlgroup",
"property_dict": {"direction": "horizontal"},
"children": [{
"type": "a",
"direct":{"className":"translate action", "href":"#global-popup"},
"attributes":{
"data-i18n":"global_dict.common_dict.login",
"data-action":"login",
"data-icon":"lock",
"data-rel": "popup"
},
"logic": {"text":"Login"}
}, {
"type": "a",
"direct": {"className":"translate ui-btn-slapos-black", "href": "#person::new"},
"attributes": {
"data-i18n": "global_dict.common_dict.register",
"data-icon": "edit"
},
"logic": {"text":"Register"}
}
]
}
]
}
}
}
{
"portal_type_source": "Network",
"portal_type_title": "network",
"portal_type_fields": "network_fieldlist",
"initial_query": {"include_docs": true, "limit":[]},
"form": true,
"id": "network_overview",
"property_dict": {
"initial_query_url_identifier": "reference_reference",
"dynamic_children": [1],
"requires_authentication": true,
"depends_on": "login_state",
"wrap_gadget": 2,
"layout": {
"header": [
[
{"column": "network_title", "show": true, "priority": 5},
{"column": "network_reference", "show": true, "priority": 5}
]
],
"body": [
{"column": "network_title", "show": true, "priority": 5},
{"column": "network_reference", "show": true, "priority": 5}
],
"footer": []
},
"feature_dict": {
"linkable": true,
"link_identifier": null,
"editable": null
}
},
"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": "page_dict.network.add",
"data-icon": "edit"
},
"logic": {"text":"Add server"}
},{
"generate": "widget",
"type": "table",
"class_list": "table-stroke ui-responsive",
"property_dict": {
"mode": "columntoggle",
"toggle_popup": false,
"wrap": "both",
"top_grid": 1,
"bottom_grid": 1
},
"children": []
}],
"placeholder_dict": {
"no_items": {
"text":"No items found.",
"text_i18n":"validation_dict.no_items_found",
"children": [{
"generate": "widget",
"type": "controlgroup",
"property_dict": {"direction": "horizontal"},
"children": [
{
"type": "a",
"direct": {
"href":"#",
"className": "translate "
},
"attributes": {
"data-icon":"chevron-sign-left",
"data-i18n":"global_dict.pagination_dict.back"
},
"logic": {"Text": "Back"}
}, {
"type": "a",
"direct": {"className":"translate ui-btn-slapos-black", "href": "#networks::new"},
"attributes": {
"data-i18n": "page_dict.network.add",
"data-icon": "edit"
},
"logic": {"text":"Add new network"}
}]
}]
},
"no_auth": {
"text":"Requires authorization.",
"text_i18n":"validation_dict.requires_auth",
"children": [
{
"generate": "widget",
"type": "controlgroup",
"property_dict": {"direction": "horizontal"},
"children": [{
"type": "a",
"direct":{"className":"translate action", "href":"#global-popup"},
"attributes":{
"data-i18n":"global_dict.common_dict.login",
"data-action":"login",
"data-icon":"lock",
"data-rel": "popup"
},
"logic": {"text":"Login"}
}, {
"type": "a",
"direct": {"className":"translate ui-btn-slapos-black", "href": "#person::new"},
"attributes": {
"data-i18n": "global_dict.common_dict.register",
"data-icon": "edit"
},
"logic": {"text":"Register"}
}
]
}
]
}
}
}
[]
\ No newline at end of file
......@@ -6,12 +6,50 @@
{
"generate": "widget",
"type": "page",
"title": "Networks",
"title_i18n": "page_dict.networks.title",
"title": "Servers",
"title_i18n": "page_dict.servers.title",
"theme": "slapos-white",
"layout": {
"default": []
"default": [
{
"generate": "gadget",
"type": "listbox",
"id": "network_overview",
"href": "network_overview"
}
]
}
}, {
"generate": "widget",
"type": "page",
"title": "Server Instance",
"title_i18n": "page_dict.servers.instance",
"theme": "slapos-white",
"layout": {
"default": [
{
"generate": "gadget",
"type": "fieldlist",
"id": "network_status",
"href": "network_status"
}
],
"new": [
{
"generate": "gadget",
"type": "fieldlist",
"id": "network_new",
"href": "network_new"
}
]
}
}, {
"generate": "widget",
"type": "page",
"theme": "slapos-white",
"title": "Instance Configuration",
"title_i18n": "page_dict.servers.configuration",
"layout": {}
}
]
}
......@@ -62,6 +62,11 @@
}
},
"page_dict": {
"network": {
"add": "Add new network",
"title": "Networks",
"subtitle": "Generated networks"
},
"thanks": {
"title": "Thanks",
"description": "Thanks for registering. You may now use the application."
......@@ -159,6 +164,18 @@
"english": "English"
},
"portal_type_dict": {
"network_dict": {
"field_list": {
"title": {
"title": "Title",
"description": "The title of this network."
},
"reference": {
"title": "Reference",
"description": "The reference identifier for this network."
}
}
},
"installation_dict": {
"field_list": {
"version": {
......
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