From cbb8c91e744e7a1dc0eff493ffc0ad57d4342596 Mon Sep 17 00:00:00 2001
From: Blondel MONDESIR <16546989+deldesir@users.noreply.github.com>
Date: Fri, 15 Sep 2023 11:04:27 -0400
Subject: [PATCH 1/5] Add modal macro
YouTube download modal used in layout.html visible when clicking on "Add YouTube videos" button.
---
cps/templates/modal_dialogs.html | 81 ++++++++++++++++++++++++++++++++
1 file changed, 81 insertions(+)
diff --git a/cps/templates/modal_dialogs.html b/cps/templates/modal_dialogs.html
index 3e0b5bf1..0353e89d 100644
--- a/cps/templates/modal_dialogs.html
+++ b/cps/templates/modal_dialogs.html
@@ -139,3 +139,84 @@
{% endmacro %}
+
+{% macro youtube_download_modal() %}
+
+
+{% endmacro %}
+
From 714e0e1eeda0774dd16afe98a162a964add1913c Mon Sep 17 00:00:00 2001
From: Blondel MONDESIR <16546989+deldesir@users.noreply.github.com>
Date: Fri, 15 Sep 2023 11:37:10 -0400
Subject: [PATCH 2/5] Add YouTube button
YouTube download button using the youtube modal dialog macro from modal_dialogs.html
---
cps/templates/layout.html | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/cps/templates/layout.html b/cps/templates/layout.html
index 1bee1c1d..47fb05d5 100644
--- a/cps/templates/layout.html
+++ b/cps/templates/layout.html
@@ -1,4 +1,4 @@
-{% from 'modal_dialogs.html' import restrict_modal, delete_book, filechooser_modal, delete_confirm_modal, change_confirm_modal %}
+{% from 'modal_dialogs.html' import restrict_modal, delete_book, filechooser_modal, delete_confirm_modal, change_confirm_modal, youtube_download_modal %}
{% import 'image.html' as image %}
@@ -83,6 +83,13 @@
+