mirror of https://git.48k.eu/ogcp
52 lines
1.2 KiB
HTML
52 lines
1.2 KiB
HTML
{% extends 'scopes.html' %}
|
|
{% import "bootstrap/wtf.html" as wtf %}
|
|
|
|
{% set sidebar_state = 'disabled' %}
|
|
{% set btn_back = true %}
|
|
|
|
{% block nav_center %} active{% endblock %}
|
|
{% block nav_center_delete %} active{% endblock %}
|
|
{% block content %}
|
|
|
|
<h2 class="mx-5 subhead-heading">{{_('Delete center')}}</h2>
|
|
<p class="text-left mx-5">The following center and its content will be deleted</p>
|
|
<table class="table table-hover mx-5">
|
|
<thead class="thead-light">
|
|
<tr>
|
|
<th colspan="2">
|
|
{% for x in ancestors %}
|
|
{{x}}
|
|
{% if not loop.last %}
|
|
>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="text-left">
|
|
{% if children %}
|
|
{% for type, elements in children.items() %}
|
|
<tr>
|
|
<th>{{ type }}</th>
|
|
<td>
|
|
{% for e in elements %}
|
|
{{e}}
|
|
{% endfor %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
{% else %}
|
|
<tr><td>This center is empty</td></tr>
|
|
{% endif %}
|
|
</tbody>
|
|
</table>
|
|
|
|
{{ wtf.quick_form(form,
|
|
action=url_for('action_center_delete'),
|
|
method='post',
|
|
button_map={'submit': 'primary'},
|
|
extra_classes="mx-5") }}
|
|
|
|
{% endblock %}
|
|
|