Commit e26a858b authored by Sven Franck's avatar Sven Franck

added network remove logic

parent f59533cb
...@@ -8,7 +8,8 @@ ...@@ -8,7 +8,8 @@
"dynamic_children": [0], "dynamic_children": [0],
"requires_authentication": true, "requires_authentication": true,
"depends_on": "login_state", "depends_on": "login_state",
"wrap_gadget": 2 "wrap_gadget": 2,
"submit_to": "#networks::__id__"
}, },
"children": [{ "children": [{
"generate": "widget", "generate": "widget",
......
...@@ -9,7 +9,8 @@ ...@@ -9,7 +9,8 @@
"dynamic_children": [0], "dynamic_children": [0],
"requires_authentication": true, "requires_authentication": true,
"depends_on": "login_state", "depends_on": "login_state",
"wrap_gadget": 2 "wrap_gadget": 2,
"submit_to": "#networks"
}, },
"children": [{ "children": [{
"generate": "widget", "generate": "widget",
...@@ -21,7 +22,15 @@ ...@@ -21,7 +22,15 @@
"secret_hash": "foo", "secret_hash": "foo",
"public_key": "6Ldpb-oSAAAAAGwriKpk4ol1n4yjN_as6M4xv0zA" "public_key": "6Ldpb-oSAAAAAGwriKpk4ol1n4yjN_as6M4xv0zA"
}, },
"children": [], "children": [
{"type": "p", "direct": {}, "attributes": {}, "logic": {"text":"Foo"}},
{
"type": "a",
"direct": {"href": "#", "className": "action translate right error status ui-btn ui-btn-inline ui-shadow ui-corner-all ui-btn-icon-left ui-icon-trash"},
"attributes": {"data-i18n":"page_dict.network.delete", "data-action": "destroy"},
"logic": {"text":"Delete"}
}
],
"layout": [ "layout": [
{ {
"position": "left", "position": "left",
......
...@@ -49,13 +49,6 @@ ...@@ -49,13 +49,6 @@
} }
] ]
} }
}, {
"generate": "widget",
"type": "page",
"theme": "slapos-white",
"title": "Instance Configuration",
"title_i18n": "page_dict.servers.configuration",
"layout": {}
} }
] ]
} }
...@@ -70,7 +70,8 @@ ...@@ -70,7 +70,8 @@
"network": { "network": {
"add": "Add new network", "add": "Add new network",
"title": "Networks", "title": "Networks",
"subtitle": "Generated networks" "subtitle": "Generated networks",
"delete": "Delete"
}, },
"thanks": { "thanks": {
"title": "Thanks", "title": "Thanks",
...@@ -276,6 +277,10 @@ ...@@ -276,6 +277,10 @@
}, },
"computer_dict": { "computer_dict": {
"field_list": { "field_list": {
"network": {
"title": "Network",
"description": "The network this computer should be associated to."
},
"title": { "title": {
"title": "Computer", "title": "Computer",
"description": "The name of a computer." "description": "The name of a computer."
......
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