diff --git a/BUGs b/BUGs index 085686e..fe4c041 100644 --- a/BUGs +++ b/BUGs @@ -1,18 +1,14 @@ ### fix to get this working with bs 5... -editing a book needs to use input groups - +/- buttons (add/rem say authors) are in wrong spot / input-group -get rid of font-awesome and use bootstrap5 icons -upgrade bootstrap, dataTables, etc. - - -#### BUGS (next-20) +#### BUGS (next-21) ### DB/back-end ### UI not updating after DB change: BUG-3: alter a condition, covertype, etc. and its not in drop-down list (even though db look via index is correct, e.g books.html shows updated covertype) BUG-7: if you remove a series from a book, it won't appear in the series drop-down if it is the first 'missing' book in that series -- either reset the list, or show all series always? +BUG-20: broken gui with bs5: + * series add/rem needs to lose divs inside divs of input groups (and templ) ### ordering of data in UI: BUG-6: author,series, etc. do not have explicit ordering like sub-books... sort of irritating / needs code and DB fix diff --git a/README b/README index 3345a22..9d5e33d 100644 --- a/README +++ b/README @@ -52,3 +52,5 @@ Maybe: TODO-20: ORM all books load is slow - should I lazy load all books (ajax the 2nd->last pages in, or not use ORM, and do a quick db.execute()....) TODO-21: allow a way to add a book as a child of another existing book (opposite of rem_sub_book) + TODO-22: upgrade bootstrap, dataTables, etc. + diff --git a/main.py b/main.py index f220277..621e95c 100644 --- a/main.py +++ b/main.py @@ -745,7 +745,6 @@ def add_books_to_loan(id): add_id=int(re.findall( '\d+', field )[0]) try: db.engine.execute("insert into book_loan_link (book_id, loan_id) values ( {}, {} )".format( add_id, id )) - print("insert into book_loan_link (book_id, loan_id) values ( {}, {} )".format( add_id, id )) db.session.commit() except SQLAlchemyError as e: st.SetAlert("danger") diff --git a/templates/book.html b/templates/book.html index f060268..4154b92 100644 --- a/templates/book.html +++ b/templates/book.html @@ -4,7 +4,11 @@ {# use tmpl-series-div as a template & keep it hidden always #}
@@ -89,7 +95,9 @@ function ConfirmRemoveThisSubs_ParentAndSubsFromSeries(pid,bid,rem) } function SeriesButPlus(num) { - return '' + return '' } function AddBookToSeries() { @@ -172,27 +180,32 @@ function RemoveBookFromSeries(sid) { function RemoveAuthorFromBook(num) { console.log("remove an author at slot: " + num ) - $('#auth-div-'+num).remove() + $('#author-'+num).remove() + $('#author-rem-'+num).remove() } function AddAuthorToBook(num) { console.log("insert a new author at slot: " + num ) div = ` -