From 26349c98d4c35fa79efe04ab599bf0cbab3bd98c Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Tue, 4 Jul 2023 23:54:32 +1000 Subject: [PATCH] added edit author button/link, and fixed broken hover since I changed to bals from author. Also removed the old author code, finally made it so when you hover over remove button we now also highlight the edit button for the author to be red as well. Hovering over edit link higlights the relevant author blue to let you know which one you will go to --- templates/book.html | 61 +++++++++++++++------------------------------ 1 file changed, 20 insertions(+), 41 deletions(-) diff --git a/templates/book.html b/templates/book.html index be06915..24a5f5c 100644 --- a/templates/book.html +++ b/templates/book.html @@ -200,10 +200,6 @@ function AddAuthorToBook(num) { } -{# -{% set keys = [ 'title', 'bals', 'author', 'publisher', 'genre', 'owned', 'covertype', 'condition', 'year_published', 'rating', 'notes', 'blurb' ] %} -#} - {% set keys = [ 'title', 'bals', 'publisher', 'genre', 'owned', 'covertype', 'condition', 'year_published', 'rating', 'notes', 'blurb' ] %}

{{page_title}}

@@ -257,6 +253,11 @@ function AddAuthorToBook(num) { {% endif %} + - {% for auth in author_list %} - {% set aname=auth.surname+", "+auth.firstnames %} - - {% endfor %} - - {% set cnt.idx = cnt.idx+1 %} - {% endfor %} - {% if cnt.idx == 0 %} - - {% endif %} - {% else %} {% set rows=4 %} {% if key == "notes" %} @@ -459,6 +427,7 @@ function AddAuthorToBook(num) { {% endblock main_content %} {% if books.child_ref|length %} +{% endif %} {% block script_content %} {% endblock script_content %} -{% endif %}