From c3e3bfa33cad5851f55919ff2ccb36c48af14d22 Mon Sep 17 00:00:00 2001 From: Tiberiu Chibici Date: Mon, 15 Oct 2018 00:45:08 +0300 Subject: [PATCH] Worked on folder modals. --- .idea/workspace.xml | 629 +++++++++--------- YtManagerApp/management/folders.py | 5 +- .../migrations/0004_auto_20181014_1702.py | 18 + YtManagerApp/models.py | 13 +- .../static/YtManagerApp/css/style.css | 33 + .../static/YtManagerApp/css/style.css.map | 2 +- .../static/YtManagerApp/css/style.scss | 32 + .../controls/folder_create_dialog.html | 13 - .../controls/folder_create_modal.html | 21 + .../controls/folder_delete_modal.html | 21 + .../controls/folder_edit_dialog.html | 40 -- .../controls/folder_update_modal.html | 21 + .../templates/YtManagerApp/index.html | 17 +- .../templates/YtManagerApp/js/common.js | 133 +++- .../YtManagerApp/js/subscription_tree.js | 59 +- YtManagerApp/urls.py | 16 +- YtManagerApp/views/controls/modal.py | 21 +- YtManagerApp/views/index.py | 68 +- 18 files changed, 756 insertions(+), 406 deletions(-) create mode 100644 YtManagerApp/migrations/0004_auto_20181014_1702.py delete mode 100644 YtManagerApp/templates/YtManagerApp/controls/folder_create_dialog.html create mode 100644 YtManagerApp/templates/YtManagerApp/controls/folder_create_modal.html create mode 100644 YtManagerApp/templates/YtManagerApp/controls/folder_delete_modal.html delete mode 100644 YtManagerApp/templates/YtManagerApp/controls/folder_edit_dialog.html create mode 100644 YtManagerApp/templates/YtManagerApp/controls/folder_update_modal.html diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 5bb447b..4009c67 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,63 +2,24 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + - - - - - - - - - - - - - - - - + + + - - - - - - + + + @@ -114,9 +76,9 @@ - + - + @@ -125,27 +87,27 @@ - - + + - + - - - + + + - - + + - + - - - + + + @@ -155,82 +117,80 @@ - + - + - + - + - + - - + + - + - + - + - + - - + + - - - - - - - + + + + + + + + + + - + - - + + + + + + - + - - - - - - - - - - - + + @@ -238,21 +198,64 @@ - - - + + + - - + + + + + + + + + + + + + + + + + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -270,10 +273,6 @@ - lds - get_selected - url - delete_fo folder modal folderEditDialog @@ -298,6 +297,12 @@ dialog_ .find .show + videos_wrapper + videos_loading + submit + modal_edit_folder + modal_update_folder + modal_delete_folder loading @@ -308,6 +313,8 @@ = dj_settings modal_ + videos-wrapper + videos-loading @@ -316,11 +323,6 @@ @@ -382,10 +389,10 @@ - @@ -530,13 +537,6 @@ - - - - - - - + +{% endblock modal_footer %} \ No newline at end of file diff --git a/YtManagerApp/templates/YtManagerApp/controls/folder_delete_modal.html b/YtManagerApp/templates/YtManagerApp/controls/folder_delete_modal.html new file mode 100644 index 0000000..faeca72 --- /dev/null +++ b/YtManagerApp/templates/YtManagerApp/controls/folder_delete_modal.html @@ -0,0 +1,21 @@ +{% extends 'YtManagerApp/controls/modal.html' %} +{% load crispy_forms_tags %} + +{% block modal_title %} + Delete folder +{% endblock modal_title %} + +{% block modal_content %} +
+ {{ block.super }} +
+{% endblock %} + +{% block modal_body %} + {% crispy form %} +{% endblock modal_body %} + +{% block modal_footer %} + + +{% endblock modal_footer %} \ No newline at end of file diff --git a/YtManagerApp/templates/YtManagerApp/controls/folder_edit_dialog.html b/YtManagerApp/templates/YtManagerApp/controls/folder_edit_dialog.html deleted file mode 100644 index 8cefaa1..0000000 --- a/YtManagerApp/templates/YtManagerApp/controls/folder_edit_dialog.html +++ /dev/null @@ -1,40 +0,0 @@ - \ No newline at end of file diff --git a/YtManagerApp/templates/YtManagerApp/controls/folder_update_modal.html b/YtManagerApp/templates/YtManagerApp/controls/folder_update_modal.html new file mode 100644 index 0000000..a481a74 --- /dev/null +++ b/YtManagerApp/templates/YtManagerApp/controls/folder_update_modal.html @@ -0,0 +1,21 @@ +{% extends 'YtManagerApp/controls/modal.html' %} +{% load crispy_forms_tags %} + +{% block modal_title %} + Edit folder +{% endblock modal_title %} + +{% block modal_content %} +
+ {{ block.super }} +
+{% endblock %} + +{% block modal_body %} + {% crispy form %} +{% endblock modal_body %} + +{% block modal_footer %} + + +{% endblock modal_footer %} \ No newline at end of file diff --git a/YtManagerApp/templates/YtManagerApp/index.html b/YtManagerApp/templates/YtManagerApp/index.html index a73a571..56c83f9 100644 --- a/YtManagerApp/templates/YtManagerApp/index.html +++ b/YtManagerApp/templates/YtManagerApp/index.html @@ -11,14 +11,19 @@ - - {% include 'YtManagerApp/controls/folder_edit_dialog.html' %} - {% include 'YtManagerApp/controls/subscription_edit_dialog.html' %} - {% endblock %} {% block body %} + +
@@ -55,10 +60,10 @@ {% crispy filter_form %}
-
+
-