<%inherit file="base.html" /> <%def name="headerIncludes()">
<%-- Changed inline onclick to a class and data attributes for JS handling --%> Force Check
<%def name="body()">

Wanted Albums

<%-- Added ID to the form --%>
<%-- Unique and descriptive ID, moved inline style to CSS --%> Mark selected albums as <%-- 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
Artist Album Name Release Date Type
alt="Cover art for ${album['AlbumTitle']}" loading="lazy"> ${album['ArtistName']} ${album['AlbumTitle']} ${album['ReleaseDate']} ${album['Type']}

Upcoming Albums

<%-- No changes here, but ensuring it gets DataTables init --%> %for album in upcoming: %endfor
Artist Album Name Release Date Type Status
alt="Cover art for ${album['AlbumTitle']}" loading="lazy"> ${album['ArtistName']} ${album['AlbumTitle']} ${album['ReleaseDate']} ${album['Type']} ${album['Status']}
<%def name="headIncludes()"> ${parent.headIncludes()} <%-- Ensure parent head includes are kept --%> <%def name="javascriptIncludes()"> ${parent.javascriptIncludes()} <%-- Ensure parent javascript includes are kept --%>