From e9fb1ec7d85a2d3d3e720af262f917b937c0f534 Mon Sep 17 00:00:00 2001 From: Kobe Date: Sun, 25 May 2025 13:47:22 +0200 Subject: [PATCH] separate modals from room template --- .../components/delete_confirm_modal.html | 30 ++++ templates/components/move_modal.html | 24 ++++ templates/components/new_folder_modal.html | 19 +++ .../components/overwrite_confirm_modal.html | 20 +++ templates/components/rename_modal.html | 19 +++ templates/rooms/room.html | 136 +----------------- 6 files changed, 118 insertions(+), 130 deletions(-) create mode 100644 templates/components/delete_confirm_modal.html create mode 100644 templates/components/move_modal.html create mode 100644 templates/components/new_folder_modal.html create mode 100644 templates/components/overwrite_confirm_modal.html create mode 100644 templates/components/rename_modal.html diff --git a/templates/components/delete_confirm_modal.html b/templates/components/delete_confirm_modal.html new file mode 100644 index 0000000..06ec4a4 --- /dev/null +++ b/templates/components/delete_confirm_modal.html @@ -0,0 +1,30 @@ + + \ No newline at end of file diff --git a/templates/components/move_modal.html b/templates/components/move_modal.html new file mode 100644 index 0000000..eb2f249 --- /dev/null +++ b/templates/components/move_modal.html @@ -0,0 +1,24 @@ + + \ No newline at end of file diff --git a/templates/components/new_folder_modal.html b/templates/components/new_folder_modal.html new file mode 100644 index 0000000..1ee17ed --- /dev/null +++ b/templates/components/new_folder_modal.html @@ -0,0 +1,19 @@ + + \ No newline at end of file diff --git a/templates/components/overwrite_confirm_modal.html b/templates/components/overwrite_confirm_modal.html new file mode 100644 index 0000000..c80d989 --- /dev/null +++ b/templates/components/overwrite_confirm_modal.html @@ -0,0 +1,20 @@ + + \ No newline at end of file diff --git a/templates/components/rename_modal.html b/templates/components/rename_modal.html new file mode 100644 index 0000000..ef36a22 --- /dev/null +++ b/templates/components/rename_modal.html @@ -0,0 +1,19 @@ + + \ No newline at end of file diff --git a/templates/rooms/room.html b/templates/rooms/room.html index bba89b0..f324e7e 100644 --- a/templates/rooms/room.html +++ b/templates/rooms/room.html @@ -88,136 +88,12 @@ - - - - - - - - - - - - - +{% include 'components/delete_confirm_modal.html' %} +{% include 'components/new_folder_modal.html' %} +{% include 'components/rename_modal.html' %} +{% include 'components/details_modal.html' %} +{% include 'components/overwrite_confirm_modal.html' %} +{% include 'components/move_modal.html' %}