149 Commits

Author SHA1 Message Date
6ff3d13713 TODO-7 removing book(s) from loan works, and UI is better now 2021-01-04 22:07:06 +11:00
17c0c2a024 first commit for removing books from a loan itself, works and the scaffold is there for adding new books, code to be written 2021-01-04 16:23:09 +11:00
cc13ecfc87 fixed BUG-8, no genres for a sub book addition loses parent details 2021-01-03 12:08:19 +11:00
ff45513c7d fix up new regression on add subbook button after fixing loans div bug 2021-01-03 11:59:36 +11:00
98372ea62c fixed BUG-4 (books only showing 1 author) 2021-01-03 11:55:16 +11:00
195daf98e0 fixed BUG-1 (loan div in wrong spot) 2021-01-03 11:51:22 +11:00
4e4ff7f6c7 fixed bugs 9 & 10, just missing quotes in html for hidden value 2021-01-03 11:43:52 +11:00
e625b19451 TODO-2 completed, can remove a subbook from parent 2021-01-02 19:13:28 +11:00
4c442e1fea fixed BUG-11, parent was both an array (in Book) and not an array in QuickBook, so made them arrays to keep with ORM-way 2021-01-02 18:53:52 +11:00
f1f654ec15 removed debug 2020-12-31 13:13:22 +11:00
d1ffbdf12e solved BUG-11 (adding to wrong parent book) 2020-12-31 13:11:50 +11:00
5a92f967be fixed button ordering, which also fixed bug with page_title for book.html not being used 2020-12-31 12:03:29 +11:00
08f1550068 reordered buttons so Update is before Delete 2020-12-31 11:53:13 +11:00
20c8bec8f5 fix bug where indenting spaces were part of the sub-books link text 2020-12-30 16:47:37 +11:00
4ab601aac5 get rid of the alignments, I think its better all left-aligned today 2020-12-30 16:47:06 +11:00
de860a1319 moved display message to base.html, should have done this from the beginning (doh), and then fixed deletion errors/redirections to be moe sensible 2020-12-26 22:19:05 +11:00
61629760cd adding a sub-book now works 2020-12-26 19:11:43 +11:00
6a72c6d9dd okay, I have series add/remove working with crazy bootstrap input-groups and jscript/jquery adding/modifying/removing divs on the fly. It works but its way complex.... Sadly, author is not properly in the input-group and should be fixed, and may well then need more crazy on-the-fly updating of divs/buttons, etc. to move plus/minus buttons into/out of the input-group appropriately 2020-12-24 17:11:28 +11:00
73001dd24c first pass at creating a book, it works, but I have messed up the series-div* html in book.html 2020-12-23 12:53:27 +11:00
7bd81d3119 loan now has working create/update/delete, still no add/rem books though 2020-12-21 22:06:35 +11:00
c4d7fdaa04 create new loan now links to url 2020-12-21 22:05:37 +11:00
24210d365c added stats page 2020-12-14 23:21:19 +11:00
c102b93872 add/remove series from a book now works, havent thought about removing a parent book fro a series, but otherwise you can add more than one series, remove as well, and it works in the DB 2020-12-13 22:21:38 +11:00
e3d21a9438 series now has create/update/delete working, and put back series.html rather than edit-id.html (what was I thinking, serious case of the dumbs) 2020-12-09 22:02:03 +11:00
583bebccec okay adding/removing authors is functional, ordering of it is NQR, also moved to bookstrap margin/padding classes where it worked 2020-12-06 15:51:38 +11:00
15ac1fbed0 made subbook show it is one more visually, also disabled fields that are part of the parent book so they cannot be changed 2020-12-05 21:23:54 +11:00
e68286c453 update placeholder text 2020-12-05 20:44:23 +11:00
2930b1b77b added search (only of title in book for now) 2020-12-05 20:15:31 +11:00
39e3838336 can now create/update/delete authors (base.html, using edit*.html, and authors.html) 2020-12-05 19:27:13 +11:00
f3c70d267c remove unneeded alert, its done in show*.html now 2020-12-05 19:25:17 +11:00
a1679dac74 add the alert for a message 2020-12-05 19:24:33 +11:00
92fd582981 use a for loop to go through fields, rather than hardcode just name, now it is used to edit authors too 2020-12-05 19:22:14 +11:00
4268b03ff6 use url_for properly for creation urls 2020-12-05 19:21:37 +11:00
d534e7684b moved publisher over to just be another 1-to-many table so using edit_id_name.html, show_id_name.html. This also means it now has a create / update / delete with status updates 2020-12-05 12:16:55 +11:00
c367a2559f create/update/delete of condition, covertype, genre, owned, rating objects all works, and can be accessed from Admin menu 2020-12-05 11:45:47 +11:00
5057e856be now have a class to maintain the status, use that to set alert/message for owned, and redirect after create/update/delete owned -> owneds 2020-12-05 11:00:53 +11:00
d61e830525 now create an owned on /owned, rather than /owned/-1 kludge. Also using sequence for creation. All good - made sequences for all relevant tables too. Last question is how to do redirect to /owneds and still show messsage 2020-12-04 18:59:34 +11:00
ed07d1f9cb decided to use thing/-1 to create a new thing. Tried it on owned first, works so now also can delete owned/<id> as well. Also made sure not to show the delete button when we are only creating a thing 2020-12-04 18:01:54 +11:00
1b9799b439 changed publisher link over to a 1-to-many, removed book_publisher_link table, etc. fully works in show books, edit book for publisher now & notes/blurb save too 2020-12-03 19:20:02 +11:00
a6cfb21d17 format table with centered text, and dont allow notes field to wrap 2020-12-03 19:18:09 +11:00
b6ba97f049 most of way through editing publisher, author, genre on book... decided now is time to make book<->publisher a normal 1-to-m as it should be 2020-12-02 20:55:43 +11:00
93383c3bc0 remove edit buttons on author/publisher, in fact publisher is now a standard field with a BookForm SelectField, and showing, updating publisher works in book.html 2020-12-02 19:48:51 +11:00
ae9e43964f forgot to git add this - this allows sub books to be a separate route that puts sub books of a parent book in a table, and allows them to be moved up and down 2020-12-01 20:29:08 +11:00
136be26ad0 rewrote to remove parent_ref and just use parent from ORM 2020-12-01 20:27:17 +11:00
43b307d063 make book form do a POST, have save/del buttons, and rewrote to remove parent_ref and just use parent from ORM 2020-12-01 20:25:37 +11:00
ce34f68254 added html for subbooks, made up/down buttons that work too. Also put back reference from subbook to parent book, via ORM data - need to investigate more, but it all works 2020-11-30 21:59:50 +11:00
5cc03fe7e7 need return false for other ajax button onclicks, so added them for consistency, also shrank button font to take up less space 2020-11-30 21:58:33 +11:00
8d64b95d9f fixed bug with swapping book in series when we dont have details on book to swap with, also really disabled up/down buttons, rather than just made them look disabled 2020-11-29 17:40:04 +11:00
f70f008f1d fixed bug with disabling up/down buttons per series, rather than for the series we are viewing (it is now/should be based on how move code works) 2020-11-28 18:36:07 +11:00
ef74fccab3 fixed bug / improved how we sort parent books, we now sort it based on the first sub_books spot in the series, not the last book we retrieved from the db ordered by book.id - this does not always work if we make a parent book after other books in a series (or move books), then it was printed out of order 2020-11-28 18:27:17 +11:00