X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Ftemplates%2Fslice-tab-cloud.html;h=c92b416bfbe833904716c6d545bd39b7b77a38af;hb=fe521345ce5e1c8ca2f3d9d7f20bb4c910390f9a;hp=913b6ddcbb0337eeb209a5fd2de2946593a624e5;hpb=4a034c2a5701c9fbb38da8670d25d7ebe8f339ac;p=myslice.git diff --git a/portal/templates/slice-tab-cloud.html b/portal/templates/slice-tab-cloud.html index 913b6ddc..c92b416b 100644 --- a/portal/templates/slice-tab-cloud.html +++ b/portal/templates/slice-tab-cloud.html @@ -1,37 +1,81 @@ {% extends "layout_wide.html" %} +{% load portal_filters %} {% block head %} + {% endblock %} @@ -200,44 +555,52 @@ $(document).ready(function() { {{post_values}} {% for platform in platforms %} {% if platform in cloud_platforms %} -
+ + +

{{ platform }}

-
- {% csrf_token %} -
-
- -
-
-
- -
-
// display only if VMs already in slice -
- {% csrf_token %} -
+

VMs in slice {{slicename}}

+ - -
- // display only pending changes +
+ {% for key, value in result.items %} + {% if key == platform %} + {% if value.parsed.rspec.node|get_type == 'list' %} + {% for node in value.parsed.rspec.node %} + {% for k,node_urn in node.items %} + {% if k == '@component_id' %} + {% widget '_widget-cloud-node.html' %} + {% endif %} + {% endfor %} + {% endfor %} + {% else %} + {% for k,node_urn in value.parsed.rspec.node.items %} + {% if k == '@component_id' %} + {% widget '_widget-cloud-node.html' %} + {% endif %} + {% endfor %} + {% endif %} + {% endif %} + {% endfor %} +

-
- {% csrf_token %} -
- - - -
+
{% endif %} {% endfor %}