{% extends "workflow/viewport-element.html" %} {% load staticfiles %} {% load bootstrap3 %} {% block content %} {% if error %}
{{error}}
{% else %} {% endif %} {% endblock content %} {% block onleave %} var formData = $("#host_meta_form").serialize(); var req = new XMLHttpRequest(); req.open("POST", "/wf/workflow/", false); req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); req.onerror = function() { alert("There was a problem submitting the form"); } req.send(formData); {% endblock %}