{% extends "workflow/viewport-element.html" %} {% load staticfiles %} {% load bootstrap3 %} {% block content %}
{% csrf_token %} {{ form|default:"

no form loaded

" }} {% buttons %} {% endbuttons %}

OR

{% endblock content %} {% block onleave %} var form = $("#resource_select_form"); var formData = 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("problem with form submission"); } req.send(formData); {% endblock %}