1 {% extends "workflow/viewport-element.html" %}
3 <link href="/static/css/graph_common.css" rel="stylesheet">
4 <title>Pod Definition Prototype</title>
6 <!-- Loads and initializes the library -->
8 var mxLoadStylesheets = false;
10 <script type="text/javascript" src="/static/js/mxClient.min.js" ></script>
11 <script type="text/javascript" src="/static/js/dashboard.js" ></script>
12 {% endblock extrahead %}
14 <!-- Calls the main function after the page has loaded. Container is dynamically created. -->
17 style="position:absolute;overflow:hidden;top:0px;bottom:0px;width:75%;left:0px;">
18 <div id="graphContainer"
19 style="position:relative;overflow:hidden;top:36px;bottom:0px;left:0px;right:0px;background-image:url('/static/img/mxgraph/grid.gif');cursor:default;">
23 <!-- Creates a container for the sidebar -->
24 <div id="toolbarContainer"
25 style="position:absolute;white-space:nowrap;overflow:hidden;top:0px;left:0px;right:0px;padding:6px;">
28 <!-- Creates a container for the outline -->
29 <div id="outlineContainer"
30 style="position:absolute;overflow:hidden;top:36px;right:0px;width:200px;height:140px;background:transparent;border-style:solid;border-color:black;">
62 vertical-align: middle;
66 list-style-type: none;
73 display: inline-block;
74 vertical-align: middle;
77 display: inline-block;
79 vertical-align: middle;
88 <div id="network_select" style="position:absolute;top:0px;bottom:0px;width:25%;right:0px;left:auto;">
89 <div id="toolbar_extension">
90 <button id="btn_add_network" type="button" class="btn btn-primary" onclick="network_step.newNetworkWindow();">Add Network</button>
92 <ul id="network_list">
94 <button type="button" style="display: none" onclick="network_step.submitForm();">Submit</button>
96 <form id="xml_form" method="post" action="/wf/workflow/">
98 <input type="hidden" id="hidden_xml_input" name="xml" />
102 //gather context data
110 xml = '{{xml|safe}}';
114 {% for host in hosts %}
115 hosts.push({{host|safe}});
118 let added_hosts = [];
119 {% for host in added_hosts %}
120 added_hosts.push({{host|safe}});
123 let removed_host_ids = {{removed_hosts|safe}};
125 network_step = new NetworkStep(
131 document.getElementById('graphContainer'),
132 document.getElementById('outlineContainer'),
133 document.getElementById('toolbarContainer'),
134 document.getElementById('sidebarContainer')
137 {% endblock content %}
139 network_step.submitForm();