From ce3ab8bcbce7315748d7c9713edcadcbad8f709a Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Mon, 8 Jun 2026 21:19:06 -0400 Subject: [PATCH] Fix invalid templ conditional syntax in metadata editor modal The Manga Type and Reading Direction select options used invalid inline if syntax: 'if cond { selected }' which is not valid templ. Replaced with the correct templ attribute syntax: selected={ boolExpression } which properly renders the selected attribute when true and omits it when false. Also add for/id attributes to link labels to their select elements for accessibility (manga_type and reading_direction). Affected lines: book_detail_modals.templ:478-496 --- templates/book_detail_modals.templ | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/templates/book_detail_modals.templ b/templates/book_detail_modals.templ index 3584ed1..8fd49ee 100644 --- a/templates/book_detail_modals.templ +++ b/templates/book_detail_modals.templ @@ -475,25 +475,25 @@ templ MetadataEditorModal(book handlers.MediaDetail) {
- - - - - - + + + +
- - - - - - + + + +