aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/config_bundle/steps/config_software.html
blob: 68417bcbbefc5fc19e866d3c165c1eaa32170aa2 (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
25
26
27
28
{% extends "workflow/viewport-element.html" %}
{% load staticfiles %}

{% load bootstrap4 %}

{% block content %}

<form action="/wf/workflow/" method="POST" id="software_config_form" class="form">
    {% csrf_token %}
    <p>Give it a name:</p>
    {% bootstrap_field form.name %}

    <p>And a description:</p>
    {% bootstrap_field form.description %}
</form>


{% endblock content %}

{% block onleave %}
var ajaxForm = $("#software_config_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 %}