summaryrefslogtreecommitdiffstats
path: root/src/templates/resource/steps/meta_info.html
blob: 62230dc383d914e46500d783a34d7f45edeb844a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{% extends "workflow/viewport-element.html" %}
{% load staticfiles %}

{% load bootstrap4 %}

{% block content %}

<form id="resource_meta_form" method="post" action="/wf/workflow/">
    {% csrf_token %}
    <table class="px-4">
        {% bootstrap_form form field_class="px-4" label_class="px-4 mt-2" %}
    </table>
</form>
{% endblock content %}

{% block onleave %}
var ajaxForm = $("#resource_meta_form");
var formData = ajaxForm.serialize();
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 %}