summaryrefslogtreecommitdiffstats
path: root/src/templates/workflow/confirm.html
blob: 2f99a4104544589de35b86c061d425f6c68aed79 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{% extends "workflow/viewport-element.html" %}
{% load staticfiles %}

{% load bootstrap4 %}

{% block content %}

<div class="text-center">
    <h3>Confirm  Session</h3>
</div>
<div class="container">
    <div class="row justify-content-center">
        <div class="col-auto">
            <pre>{{confirmation_info|escape}}</pre>
        </div>
    </div>
    <div class="row">
        <div class="col">
            <div id="form_div" class="text-center p-4">
                <form id="step_form" action="/workflow/manager/" method="post">
                    {% csrf_token %}
                    <div class="d-none">
                    {{form|default:"<p> No Form Loaded</p>"}}
                    </div>
                </form>
                <div class="cform_buttons mx-auto">
                    <button id="confirm_button" class="btn btn-success" onclick="formconfirm()">Confirm</button>
                    <button id="cancel_button" class="btn btn-danger" onclick="formcancel()">Cancel</button>
                </div>
                <div class="d-none">
                    <form id="manager_delete_form" action="/workflow/finish/" method="post">
                        {% csrf_token %}
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    var select = document.getElementById("id_confirm");

    function formconfirm()
    {
        select.value = "True";
        submitStepForm();
    }
    function formcancel()
    {
        select.value = "False";
        submitStepForm();
    }

    var confirmed = {{confirm_succeeded|default:"false"}};
    if( confirmed )
    {
        pop_workflow();
    }
</script>
{% block element_messages %}

{% endblock element_messages %}
{% endblock content %}