summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/actions/delete_room.html
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp/templates/actions/delete_room.html')
-rw-r--r--ogcp/templates/actions/delete_room.html30
1 files changed, 30 insertions, 0 deletions
diff --git a/ogcp/templates/actions/delete_room.html b/ogcp/templates/actions/delete_room.html
index aa57368..3fa24cf 100644
--- a/ogcp/templates/actions/delete_room.html
+++ b/ogcp/templates/actions/delete_room.html
@@ -10,6 +10,36 @@
<h1 class="m-5">{{_('Delete room')}}</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,
action=url_for('action_room_delete'),
method='post',