From aa31701ac88fc428eeeef04c4d7b23fac86956a7 Mon Sep 17 00:00:00 2001 From: Brock H Caldwell Date: Sun, 8 Jun 2025 15:46:34 -0500 Subject: [PATCH] feat: speedbump for deleting monitors --- .../components/DownloadListRow.html.twig | 4 +- templates/components/Modal.html.twig | 4 +- templates/components/MonitorListRow.html.twig | 43 ++++++++++++++++--- 3 files changed, 40 insertions(+), 11 deletions(-) diff --git a/templates/components/DownloadListRow.html.twig b/templates/components/DownloadListRow.html.twig index 2bf132d..ee8a647 100644 --- a/templates/components/DownloadListRow.html.twig +++ b/templates/components/DownloadListRow.html.twig @@ -33,8 +33,8 @@ {% endif %} - {% set cancel_button = component('ux:icon', {name: 'ic:twotone-cancel', width: '18px', class: 'rounded-full align-middle text-red-600' }) %} - + {% set delete_button = component('ux:icon', {name: 'ic:twotone-cancel', width: '18px', class: 'rounded-full align-middle text-red-600' }) %} + Are you sure you want to delete {{ download.filename }}? diff --git a/templates/components/Modal.html.twig b/templates/components/Modal.html.twig index 9d6fda3..2847967 100644 --- a/templates/components/Modal.html.twig +++ b/templates/components/Modal.html.twig @@ -9,12 +9,12 @@ {% if show_cancel is defined or show_submit is defined %}
{% if show_cancel is defined %} - {% endif %} {% if show_submit is defined %} - {% endif %} diff --git a/templates/components/MonitorListRow.html.twig b/templates/components/MonitorListRow.html.twig index 716bdc9..e3b4ad9 100644 --- a/templates/components/MonitorListRow.html.twig +++ b/templates/components/MonitorListRow.html.twig @@ -33,12 +33,41 @@ {% endif %} - + {% set delete_button = component('ux:icon', {name: 'ic:twotone-cancel', width: '18px', class: 'rounded-full align-middle text-red-600' }) %} + + Are you sure you want to delete this monitor?
+
+ + + + {% if monitor|monitor_media_id != "-" %} + + {% endif %} + + + +
+ {{ monitor.title }} + + {{ monitor|monitor_media_id }} + + {% if monitor.monitorType == "tvshow" %} + + {% elseif monitor.monitorType == "tvseason" %} + + {% else %} + + {% endif %} + + {% if monitor.status == "New" %} + + {% elseif monitor.status == "In Progress" or monitor.status == "Active" %} + + {% else %} + + {% endif %} +
+
+