{% extends "workflow/viewport-element.html" %} {% load staticfiles %} {% load bootstrap3 %} {% block content %} {% if error %}

{{error}}

{% else %}
{% csrf_token %} {% for form in formset %} {% for field in form %} {% endfor %} {% endfor %}
Type Name
{{field}}
{{formset.management_form}}
{% 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 %}