diff options
Diffstat (limited to 'ogcp/templates/actions/folder_delete.html')
-rw-r--r-- | ogcp/templates/actions/folder_delete.html | 33 |
1 files changed, 26 insertions, 7 deletions
diff --git a/ogcp/templates/actions/folder_delete.html b/ogcp/templates/actions/folder_delete.html index 78fc136..8d497e8 100644 --- a/ogcp/templates/actions/folder_delete.html +++ b/ogcp/templates/actions/folder_delete.html @@ -10,16 +10,35 @@ <h1 class="m-5">{{_('Delete folder')}}</h1> -<table class="table"> - <tbody> - {% for content in folder_content %} +{% 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> - <th scope="row">{{ content['type'] }}</th> - <td>{{ content['name'] }}</td> + <td> + {% if c['type'] == 'folder' %} + 📁 + {% endif %} + {{c['name']}} + </td> </tr> - {% endfor %} - </tbody> +{% endfor %} +</tbody> </table> +{% endif %} {{ wtf.quick_form(form, method='post', |