Merge "Add ability to clean up hosts and vlans"
[pharos-tools.git] / dashboard / src / templates / resource / steps / meta_info.html
1 {% extends "workflow/viewport-element.html" %}
2 {% load staticfiles %}
3
4 {% load bootstrap3 %}
5
6 {% block content %}
7
8 <style>
9 #resource_meta_form {
10     margin: 80px;
11     display: grid;
12 }
13
14 #resource_meta_form td > * {
15     width: 100%;
16     margin-bottom: 20px;
17     margin-top: 20px;
18 }
19
20 #resource_meta_form > table > tbody > tr {
21     border-bottom: 1px solid #cccccc;
22 }
23
24 #resource_meta_form > table > tbody > tr:last-child {
25     border-bottom: none;
26 }
27
28 </style>
29
30 <form id="resource_meta_form" method="post" action="/wf/workflow/">
31     {% csrf_token %}
32     <table>
33         {{form}}
34     </table>
35 </form>
36 {% endblock content %}
37
38 {% block onleave %}
39 var ajaxForm = $("#resource_meta_form");
40 var formData = ajaxForm.serialize();
41 req = new XMLHttpRequest();
42 req.open("POST", "/wf/workflow/", false);
43 req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
44 req.onerror = function() { alert("problem submitting form"); }
45 req.send(formData);
46 {% endblock %}