<%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()">
« Back to Unmatched Albums <%def name="body()">

Manage Manually Matched Albums

<%-- Changed ID for clarity --%> <%-- Changed ID to class --%> <%-- Changed ID to class --%> <%-- Changed ID to class --%> <% 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") %> <% count_albums+=1 %> %endfor
Local ArtistLocal AlbumPrevious Action
${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']}
<%-- Generic Reset Confirmation Dialog (only one on the page) --%>
<%def name="headIncludes()"> ${parent.headIncludes()} <%-- Ensure parent head includes are kept --%> <%def name="javascriptIncludes()"> ${parent.javascriptIncludes()} <%-- Ensure parent javascript includes are kept --%>