summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/actions
diff options
context:
space:
mode:
authorJavier Hernandez <jhernandez@soleta.eu>2024-01-10 11:23:37 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-01-10 11:31:15 +0100
commit2509cacc005832b37e181f6a6a4795f5c7e1fff9 (patch)
treea8ccc3610fa773e4ea0d34a6af6cfc0be0483216 /ogcp/templates/actions
parent695fcfe6255fd53b19b416e8375b48d2dc5595e4 (diff)
views: Add delete folder
Add functionality to allow the user to delete a folder. Show a confirmation page to the user listing the content of the folder that is about to delete
Diffstat (limited to 'ogcp/templates/actions')
-rw-r--r--ogcp/templates/actions/folder_delete.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/ogcp/templates/actions/folder_delete.html b/ogcp/templates/actions/folder_delete.html
new file mode 100644
index 0000000..78fc136
--- /dev/null
+++ b/ogcp/templates/actions/folder_delete.html
@@ -0,0 +1,29 @@
+{% 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>
+
+<table class="table">
+ <tbody>
+ {% for content in folder_content %}
+ <tr>
+ <th scope="row">{{ content['type'] }}</th>
+ <td>{{ content['name'] }}</td>
+ </tr>
+ {% endfor %}
+ </tbody>
+</table>
+
+{{ wtf.quick_form(form,
+ method='post',
+ button_map={'submit': 'danger'},
+ extra_classes="mx-5") }}
+
+{% endblock %}