%inherit file="base.html" />
<%!
import headphones
# Removed direct DB imports/interactions here, as data should be pre-fetched server-side.
# from headphones import db, helpers
# myDB = db.DBConnection() # This should not be in the template
%>
<%def name="headerIncludes()">
<% count_albums=0 %> <%-- Keeping count_albums for potential unique element IDs if still absolutely necessary, though aiming for generic approach --%>
%for album in manualalbums:
<%
# These replacements should ideally be done server-side before passing to template,
# or in JS using encodeURIComponent, but kept here for minimal change.
old_artist_clean = album['ArtistName'].replace('&','%26').replace('+', '%2B').replace("'","%27")
old_album_clean = album['AlbumTitle'].replace('&','%26').replace('+', '%2B').replace("'","%27")
%>
${album['ArtistName']}
<%-- Use a common class and data attributes to pass info to generic dialog --%>
${album['AlbumTitle']}
<%-- Use a common class and data attributes to pass info to generic dialog --%>
${album['AlbumStatus']}
<% count_albums+=1 %>
%endfor
<%-- Generic Reset Confirmation Dialog (only one on the page) --%>
%def>
<%def name="headIncludes()">
${parent.headIncludes()} <%-- Ensure parent head includes are kept --%>
%def>
<%def name="javascriptIncludes()">
${parent.javascriptIncludes()} <%-- Ensure parent javascript includes are kept --%>
%def>