diff options
Diffstat (limited to 'ogcp/templates/actions/folder_delete.html')
-rw-r--r-- | ogcp/templates/actions/folder_delete.html | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/ogcp/templates/actions/folder_delete.html b/ogcp/templates/actions/folder_delete.html index 8d497e8..0f58026 100644 --- a/ogcp/templates/actions/folder_delete.html +++ b/ogcp/templates/actions/folder_delete.html @@ -10,12 +10,11 @@ <h1 class="m-5">{{_('Delete folder')}}</h1> -{% if children %} -<p class="text-left mx-5">The following items will be deleted</p> +<p class="text-left mx-5">The following folder and its content will be deleted</p> <table class="table table-hover mx-5"> <thead class="thead-light"> <tr> -<th> +<th colspan="2"> {% for x in ancestors %} {{x}} {% if not loop.last %} @@ -26,19 +25,22 @@ </tr> </thead> <tbody class="text-left"> -{% for c in children %} - <tr> - <td> - {% if c['type'] == 'folder' %} - 📁 - {% endif %} - {{c['name']}} - </td> - </tr> -{% endfor %} +{% 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 folder is empty</td></tr> +{% endif %} </tbody> </table> -{% endif %} {{ wtf.quick_form(form, method='post', |