Commit e26a858b authored by Sven Franck's avatar Sven Franck

added network remove logic

parent f59533cb
......@@ -8,7 +8,8 @@
"dynamic_children": [0],
"requires_authentication": true,
"depends_on": "login_state",
"wrap_gadget": 2
"wrap_gadget": 2,
"submit_to": "#networks::__id__"
},
"children": [{
"generate": "widget",
......
......@@ -9,7 +9,8 @@
"dynamic_children": [0],
"requires_authentication": true,
"depends_on": "login_state",
"wrap_gadget": 2
"wrap_gadget": 2,
"submit_to": "#networks"
},
"children": [{
"generate": "widget",
......@@ -21,7 +22,15 @@
"secret_hash": "foo",
"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": [
{
"position": "left",
......
......@@ -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 @@
"network": {
"add": "Add new network",
"title": "Networks",
"subtitle": "Generated networks"
"subtitle": "Generated networks",
"delete": "Delete"
},
"thanks": {
"title": "Thanks",
......@@ -276,6 +277,10 @@
},
"computer_dict": {
"field_list": {
"network": {
"title": "Network",
"description": "The network this computer should be associated to."
},
"title": {
"title": "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