summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/actions/folder_delete.html
blob: 8d497e846d8f9c65be5c9a0f75da8894a10db1c5 (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
{% extends 'scopes.html' %}
{% import "bootstrap/wtf.html" as wtf %}

{% set sidebar_state = 'disabled' %}
{% set btn_back = true %}

{% block nav_folder %} active{% endblock %}
{% block nav_folder_delete %} active{% endblock %}
{% block content %}

<h1 class="m-5">{{_('Delete folder')}}</h1>

{% if children %}
<p class="text-left mx-5">The following items will be deleted</p>
<table class="table table-hover mx-5">
<thead class="thead-light">
<tr>
<th>
{% for x in ancestors %}
    {{x}}
    {% if not loop.last %}
     >
    {% endif %}
{% endfor %}
</th>
</tr>
</thead>
<tbody class="text-left">
{% for c in children %}
    <tr>
        <td>
            {% if c['type'] == 'folder' %}
            &#x1F4C1;
            {% endif %}
            {{c['name']}}
        </td>
    </tr>
{% endfor %}
</tbody>
</table>
{% endif %}

{{ wtf.quick_form(form,
                  method='post',
                  button_map={'submit': 'danger'},
                  extra_classes="mx-5") }}

{% endblock %}