From 661a309cdd609d514abf4b8f8d9c98021b6b9759 Mon Sep 17 00:00:00 2001 From: Brandon Lo Date: Mon, 1 Jul 2019 15:29:07 -0400 Subject: Reduce forms to required content Change iframe to div and ajax as a workaround Add css and js to avoid errors in parent locations Change-Id: I22a17ad5e5e04ff7112bd4e6ed98ba63d150fc15 Signed-off-by: Brandon Lo --- src/templates/resource/steps/pod_definition.html | 64 ++++++++++++------------ src/templates/workflow/viewport-base.html | 27 +++++----- src/templates/workflow/viewport-element.html | 12 ++--- 3 files changed, 49 insertions(+), 54 deletions(-) (limited to 'src/templates') diff --git a/src/templates/resource/steps/pod_definition.html b/src/templates/resource/steps/pod_definition.html index 1558780..4c9aa83 100644 --- a/src/templates/resource/steps/pod_definition.html +++ b/src/templates/resource/steps/pod_definition.html @@ -41,43 +41,43 @@ {% csrf_token %} + + + network_step = new NetworkStep( + debug, + xml, + hosts, + added_hosts, + removed_host_ids, + document.getElementById('graphContainer'), + document.getElementById('outlineContainer'), + document.getElementById('toolbarContainer'), + document.getElementById('sidebarContainer') + ); + {% endblock content %} {% block onleave %} network_step.submitForm(); diff --git a/src/templates/workflow/viewport-base.html b/src/templates/workflow/viewport-base.html index d219386..ed367c7 100644 --- a/src/templates/workflow/viewport-base.html +++ b/src/templates/workflow/viewport-base.html @@ -80,14 +80,13 @@
- +
{% csrf_token %} - +
diff --git a/src/templates/workflow/viewport-element.html b/src/templates/workflow/viewport-element.html index b87013a..2c917e1 100644 --- a/src/templates/workflow/viewport-element.html +++ b/src/templates/workflow/viewport-element.html @@ -1,16 +1,10 @@ -{% extends "layout.html" %} {% load bootstrap4 %} {% load staticfiles %} {% block basecontent %} -
- -
- {% block content %} - {% endblock content %} -
-
+ {% block content %} + {% endblock content %} {% block vport_comm %}