From 672c79cd794ed995c0296e98a04f70de1afa36b6 Mon Sep 17 00:00:00 2001 From: Paul <203217+uniquePWD@users.noreply.github.com> Date: Sun, 6 Jul 2025 15:25:02 +0100 Subject: [PATCH] Update upcoming.html Modern version --- data/interfaces/default/upcoming.html | 215 +++++++++++++++++++++----- 1 file changed, 177 insertions(+), 38 deletions(-) diff --git a/data/interfaces/default/upcoming.html b/data/interfaces/default/upcoming.html index 97046f1c..0834cc86 100644 --- a/data/interfaces/default/upcoming.html +++ b/data/interfaces/default/upcoming.html @@ -3,7 +3,10 @@ <%def name="headerIncludes()">
- Force Check + <%-- Changed inline onclick to a class and data attributes for JS handling --%> + + Force Check +
@@ -13,38 +16,44 @@

Wanted Albums

-
-
+ <%-- Added ID to the form --%> +
<%-- Unique and descriptive ID, moved inline style to CSS --%> Mark selected albums as - <%-- Added ID --%> - + <%-- Replaced hidden input with a visible button if desired, or handle submit via JS --%> + <%-- For now, keep the JS-driven approach as close as possible to original logic --%>
- - - - - - + <%-- Added ID for easier targeting --%> + + + + + %for album in wanted: - - - - - + <%-- Changed name to album_ids, added class --%> + + + + + %endfor @@ -56,26 +65,31 @@

Upcoming Albums

-
ArtistAlbum NameRelease DateTypeArtistAlbum NameRelease DateType
- ${album['ArtistName']}${album['AlbumTitle']}${album['ReleaseDate']}${album['Type']} + + alt="Cover art for ${album['AlbumTitle']}" loading="lazy"> + ${album['ArtistName']}${album['AlbumTitle']}${album['ReleaseDate']}${album['Type']}
+
<%-- No changes here, but ensuring it gets DataTables init --%> - - - - - - + + + + + + %for album in upcoming: - - - - - - + + + + + + %endfor @@ -84,29 +98,154 @@ <%def name="headIncludes()"> + ${parent.headIncludes()} <%-- Ensure parent head includes are kept --%> + <%def name="javascriptIncludes()"> + ${parent.javascriptIncludes()} <%-- Ensure parent javascript includes are kept --%>
ArtistAlbum NameRelease DateTypeStatusArtistAlbum NameRelease DateTypeStatus
${album['ArtistName']}${album['AlbumTitle']}${album['ReleaseDate']}${album['Type']}${album['Status']} + + alt="Cover art for ${album['AlbumTitle']}" loading="lazy"> + ${album['ArtistName']}${album['AlbumTitle']}${album['ReleaseDate']}${album['Type']}${album['Status']}