Lab as a Service 2.0
[laas.git] / src / templates / snapshot_workflow / steps / meta.html
1 {% extends "workflow/viewport-element.html" %}
2 {% load staticfiles %}
3
4 {% load bootstrap3 %}
5
6 {% block content %}
7
8
9 <style>
10 </style>
11
12 {% bootstrap_form_errors form type='non_fields' %}
13 <form id="meta_form" action="/wf/workflow/" method="POST" class="form">
14 {% csrf_token %}
15 {{form}}
16 </form>
17 {% endblock content %}
18
19 {% block onleave %}
20 var ajaxForm = $("#meta_form");
21 var formData = ajaxForm.serialize();
22 req = new XMLHttpRequest();
23 req.open("POST", "/wf/workflow/", false);
24 req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
25 req.onerror = function() { alert("problem submitting form"); }
26 req.send(formData);
27 {% endblock %}