54 Commits

Author SHA1 Message Date
668a7066e0 fixed BUG-48 - sub book add/rem -- it was because QuickParentBook used an array and the code had been half converted to just use an object. Fixed to all be an object/dict now and its working again 2023-10-02 18:46:00 +11:00
4e8bda4134 move parent[] to parent as the array was never needed, removed some dead code, clarified another example of new BUG-46 2023-07-08 15:10:38 +10:00
58de10632e fixed BUG-43, change author and edit link updates now 2023-07-07 23:12:20 +10:00
5a81afd3d2 fixed BUG-39 (loan card in wrong spot, now fixed) 2023-07-05 21:12:48 +10:00
50412e23a3 bug 37 (allow deleting from on wish list) fixed 2023-07-05 20:12:00 +10:00
26349c98d4 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 2023-07-04 23:54:32 +10:00
6cef2e0d9c converted over to bal from author, and fixed up the way sub books / series interact 2023-07-01 14:29:15 +10:00
ae2453d073 fixed BUGS 28/29 -> can now have empty year_published, fixed up limits to 1850-2100 now too and better error messages. Also auto-change when choose wishlist 2023-06-13 18:53:03 +10:00
32e0edc46c add/remove series div/input-group fixup to work with bootstrap5 2022-07-06 22:29:32 +10:00
c31ae71dee fixed add/rem author funtionality for bs5 and converted to svg icons away from fontawesome 2022-07-04 22:25:35 +10:00
045be5eebe use full width, fix wrapping in sub book notes and title fields and fix-up button sizes on book edit 2022-07-03 21:25:33 +10:00
8834893df3 upgraded to base U22.04 image, realised that by putting bootstrap5 stuff in for login its borked the format of many files, so partially converted to use new bootstrap, still work to go 2022-07-02 12:52:34 +10:00
4725f006bc fixed Dockerfile - I only needed to expose 443, not sure what I was thinking mashing this web code with DB, anyway... also switched to using env var rather than hostname to pick up DEV/PROD, and now show that in base.html. Updated Dockerfile and requirements to prep for putting ldap/auth in, will need to copy some stuff from PA later. finally removed console debugs in book.html 2022-06-19 16:15:51 +10:00
0432f46b20 altered book delete status to success, completed TODO-05 (books must be sold to be deleted - with tooltip to explain), and added new BUG-17 - changing some fields of parent book need to be reflected into sub book 2021-01-09 22:00:08 +11:00
2c1521e0b0 fixed new BUG where adding a sub-book to a parent with a series could not work out book_num 2021-01-07 19:10:22 +11:00
860a85e3ae can now remove just 1 sub book - TODO-25 -- DONE 2021-01-07 18:58:07 +11:00
9617186279 TODO 3 and 4 finished. removing parent or sub books from series handled 2021-01-06 23:26:10 +11:00
d43dabff9b fix (new) BUG where removing a parent book from a series caused error with bsl-book-num missing. Also flagged 2 spots for dealing with removing parent/child books from a series better, and stopped any attempt to for now 2021-01-06 20:39:51 +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
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
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
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
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
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
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
ad1f83e046 made loan stick with primary rather than info for color consistency 2020-11-25 20:50:48 +11:00
Damien De Paoli
9d74376033 display series info at bottom of book.html 2020-11-24 21:24:07 +11:00
Damien De Paoli
332335fe03 display loan "card" in book.html 2020-11-24 20:41:45 +11:00
7bd3ff4c26 fixed up author and publisher drop-down lists to have right id/val, not sure if array subscripting the names will work. To be tested, also removed as many divs and margins and paddings as I can, still dont fully understand why some indent more than others, etc. but it works for now 2020-11-22 23:56:34 +11:00
afb132820b actually, no need for a publisher + button, so removed it, made the add button for authors be at the right, is more logical / neater 2020-11-22 12:07:48 +11:00
fc12536a83 reordered add button to be consistent with author and publisher, then allowed author to be a drop-down with a + or - button as appropriate 2020-11-22 12:02:01 +11:00
1edf5082c7 added publisher list in, so publisher in book.html is about done 2020-11-21 17:57:06 +11:00
8641b3b140 first pass at edit/add buttons for publisher 2020-11-21 15:08:41 +11:00
9dee77b057 removed clever code around publiseher/author, etc. it was just too cryptic, and it does not need to be so generic 2020-11-21 14:32:38 +11:00
0b712ef7f3 cleanup, and dont need to calculate 12/cols, just use col 2020-11-21 12:52:30 +11:00
bcf5937869 add helper function GetGenreList - passes all genres to *.html, so horizontal "list" of checkboxes for book can be created 2020-11-21 12:26:38 +11:00
4ca2183253 added quick debug for loan data in books if there 2020-11-18 19:57:04 +11:00