{% extends "workflow/viewport-element.html" %} {% load staticfiles %} {% load bootstrap3 %} {% block content %} {% bootstrap_form_errors form type='non_fields' %}
{% endblock content %} {% block onleave %} var ajaxForm = $("#booking_meta_form"); var formData = ajaxForm.serialize(); console.log(formData); req = new XMLHttpRequest(); req.open("POST", "/wf/workflow/", false); req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); req.onerror = function() { alert("problem submitting form"); } req.send(formData); {% endblock %}