1 {% extends "workflow/viewport-element.html" %}
16 display: inline-block;
19 text-align: center; /*centers child div*/
27 <div style="text-align:center;">
28 <h3>Confirm Session</h3>
30 <div id="vlan_warning"></div>
31 <form id="vlan_form" action="/wf/workflow/" method="post">
33 <input id="vlan_input" name="vlan_input" type="hidden"/>
35 <div id="text_wrapper">
36 <div id="text_display">
37 <pre>{{confirmation_info|escape}}</pre>
41 <form id="confirmation_form" action="/wf/workflow/" method="post">
43 <div style="display: none;">
44 {{form|default:"<p> No Form Loaded</p>"}}
47 <div class="cform_buttons">
48 <button id="confirm_button" class="btn btn-success" onclick="formconfirm()">Confirm</button>
49 <button id="cancel_button" class="btn btn-danger" onclick="formcancel()">Cancel</button>
52 <div style="display: none;">
53 <form id="manager_delete_form" action="/wf/workflow/finish/" method="post">
59 var select = document.getElementById("id_confirm");
61 function delete_manager()
63 var form = $("#manager_delete_form");
64 var formData = form.serialize();
65 var req = new XMLHttpRequest();
66 req.open("POST", "/wf/workflow/finish/", false);
67 req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
68 req.onerror = function() { alert("problem with cleaning up session"); }
69 req.onreadystatechange = function() { if(req.readyState === 4 ) { parent.redirect_root(); } }
73 function formconfirm()
75 select.value = "True";
76 document.getElementById("confirmation_form").submit();
80 select.value = "False";
81 document.getElementById("confirmation_form").submit();
84 var confirmed = {{bypassed|default:"false"}};
93 document.getElementById("vlan_input").value = "True";
94 document.getElementById("vlan_form").submit();
96 var problem = {{vlan_warning|default:'false'}};
98 var d = document.getElementById("vlan_warning");
99 var h3 = document.createElement("h3");
100 h3.innerHTML = "WARNING: Vlans not available";
101 var h4 = document.createElement("h4");
102 h4.innerHTML = "The vlans you selected are not currently available. Would you like to automatically change them?";
103 var button1 = document.createElement("button");
104 button1.innerHTML = "Correct Vlans For Me";
105 button1.onclick = function() { fixVlans(); }
107 var button2 = document.createElement("button");
108 button2.innerHTML = "Cancel. I will change my vlans";
109 button2.onclick = function() { formcancel(); }
112 d.appendChild(button1);
113 d.appendChild(button2);
114 document.getElementById("confirm_button").disabled = true;
115 document.getElementById("cancel_button").disabled = true;
119 {% block element_messages %}
121 {% endblock element_messages %}
122 {% endblock content %}
124 //document.getElementById("confirmation_form").submit();