4223b81641
fixed up using selects before the app was ready, something that happens in the newer gunicorn but seemingly not flask? also removed compress at least for Dev testing
Damien De Paoli2023-06-11 00:28:30 +10:00
07d713da15
now handle series book numbering in the books on shelf page. Fixes BUG-22
Damien De Paoli2023-06-10 23:58:12 +10:00
0755b1ad12
not sure if this is needed, had some oddness with dev on mara and these packages, adding in case, and assuming prod build will work - we will find out soon
Damien De Paoli2023-06-10 22:36:06 +10:00
1b7b85ce33
books on shelf code is not handling series ordering at all
Damien De Paoli2023-06-10 22:35:27 +10:00
045be5eebe
use full width, fix wrapping in sub book notes and title fields and fix-up button sizes on book edit
Damien De Paoli2022-07-03 21:25:33 +10:00
1c01e2007e
remove inline display (unneeded and broke table bg colours)
Damien De Paoli2022-07-03 21:01:30 +10:00
ef028037f9
add a fluid container to give some margins on the left/right
Damien De Paoli2022-07-03 20:44:23 +10:00
021bf91e16
remove .format() and get all updates to have crrect content
Damien De Paoli2022-07-03 20:38: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
Damien De Paoli2022-07-02 12:52:34 +10:00
3c8dc980b1
quick hack to allow logout menu to be right-aligned, to be fixed with a full move to bootstrap5
Damien De Paoli2022-06-19 23:02:40 +10:00
c29f73f8ab
make all this have a login page, use ldap, put a logo on, moved some upstream stuff to static/ -- need to do more here to be consistent with bootstrap 5, but for another day
Damien De Paoli2022-06-19 22:45:54 +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
Damien De Paoli2022-06-19 16:15:51 +10:00
6087bdab9e
html5 by default in newer versions, just "from wtforms import DateField"
Damien De Paoli2022-06-19 00:14:44 +10:00
27ad9b0d60
this is needed to get gunicorn to run with the newer code cross-importation syntax and to have threading, workers and ssl
Damien De Paoli2021-01-14 20:50:27 +11:00
e4ed563245
renamed ClearMessage to better name of ClearStatus, and exposed it to jinja2 so status messages now work in base.html
Damien De Paoli2021-01-10 12:18:28 +11:00
0f1cae267d
Fixed BUG-02 (recalc rating on book change), also added route to reset all ratings in Admin menu
Damien De Paoli2021-01-10 11:11:04 +11:00
6f5b65788d
Fixed BUG-02 (recalc rating on book change), also added route to reset all ratings in Admin menu
Damien De Paoli2021-01-10 11:10:49 +11:00
81394ec0c9
added BUG-18: delete a book and go back to that URL does not error properly
Damien De Paoli2021-01-09 23:40:19 +11:00
8dc903c67d
fixed BUG-17 change parent and subs werent, now are. Also removed len(child/parent) and used functions IsChild(), IsParent() as I should have
Damien De Paoli2021-01-09 23:07:18 +11:00
69607db413
completed TODO-09: list of books to buy - no printable, I can just get live data on phone anyway
Damien De Paoli2021-01-09 22:39:00 +11:00
b35d0b0088
fixed undocd BUG, where book sold is parent book in series messing with missing books code
Damien De Paoli2021-01-09 22:07:00 +11: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
Damien De Paoli2021-01-09 22:00:08 +11:00
e923709663
completed: TODO-27 dealing with series with only sold books not shown in missing list
Damien De Paoli2021-01-09 21:28:31 +11:00
bccfbadb39
fixed books on shelf BUG-16 - author missing, its now using ORM with a HACK to remove subs not via ORM, and I also fixed datatable sorting by author for books on shelf via a param past into base.html
Damien De Paoli2021-01-09 16:54:37 +11:00
40e2ac1a34
TODO-28 - completed and used to reduce unwanted cols for on wish list, and add rating for poor rating books
Damien De Paoli2021-01-09 15:32:55 +11:00
3c4cdeb4fb
fixed BUG-15: book nums missing for parent books in series
Damien De Paoli2021-01-09 15:10:45 +11:00
cd7a77ff6b
completed TODOs 13, 14, 15, 16 - views of subsets of books. Added 2 new TODOs to enhance their output / make the views better
Damien De Paoli2021-01-09 01:13:26 +11:00
d153c40c17
completed -- TODO-08: show books on shelf list, and clarified install instructions for README
Damien De Paoli2021-01-08 22:29:27 +11:00
890b2cdc4e
fixed BUG-14 (add/sel buttons not being disabled again when no selections)
Damien De Paoli2021-01-08 21:35:38 +11:00
797a281820
fixed BUG-15 - https doing http submits, also required traefik config in docker-compose.yml - to create a tcp router with ssl passthrough
Damien De Paoli2021-01-08 13:14:09 +11:00
e4606cdbeb
for now, we have a bookdb docker container with content and referenced in main.py
Damien De Paoli2021-01-07 22:41:53 +11:00
995c19613e
fixed TODO-23 (moving book in 2 series). also put db change in a try/except and cleaned up comments
Damien De Paoli2021-01-07 20:52:17 +11:00
2c1521e0b0
fixed new BUG where adding a sub-book to a parent with a series could not work out book_num
Damien De Paoli2021-01-07 19:10:22 +11:00
860a85e3ae
can now remove just 1 sub book - TODO-25 -- DONE
Damien De Paoli2021-01-07 18:58:07 +11:00
9560381a87
completed: TODO-22: adding a sub-book when the parent book is in a series, and renamed MAYBE-1 to TODO-23 (deal with moving book in a series with another series involved), 24 (dockerise), 25 (actually allow removing just one subbook form series)
Damien De Paoli2021-01-07 16:02:04 +11:00
cc8d8c30c1
removed debugs, reply with 200 OK instead of redirect that is ignored anyway
Damien De Paoli2021-01-06 23:31:19 +11:00
9617186279
TODO 3 and 4 finished. removing parent or sub books from series handled
Damien De Paoli2021-01-06 23:26:10 +11:00
815cdf0291
added TODO-22 adding a sub-book when the parent book is in a series, need to add a bsl for it
Damien De Paoli2021-01-06 23:25:29 +11:00
024a2a12a1
remove footer on modal dialog, I think its dumb
Damien De Paoli2021-01-06 23:25:04 +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
Damien De Paoli2021-01-06 20:39:51 +11:00
47119cf7f8
made DBox empty, and set content for loan specific data in books_for_loan, so DBox can be reused elsewhere, AND, so all content in the DBox for Loan is set in the one html file, not split over to base.html
Damien De Paoli2021-01-06 20:37:20 +11:00
9a53da0010
added BUG-14, add/sel buttons still active when should not be
Damien De Paoli2021-01-06 20:35:39 +11:00
0ac5684f17
BUG-13 delete loan fails with foreign key issues, all fixed
Damien De Paoli2021-01-05 11:18:53 +11:00
2028266ff7
fixed BUG-12: remove loaned out books from results of search for books to add to a loan
Damien De Paoli2021-01-05 11:09:51 +11:00
336ae4b67f
TODO-6 (add books to loan) is now complete, so loans are now fully functional... the whole pybook is now at least functional, more features/validation to come :)
Damien De Paoli2021-01-04 22:28:35 +11:00
6ff3d13713
TODO-7 removing book(s) from loan works, and UI is better now
Damien De Paoli2021-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
Damien De Paoli2021-01-04 16:23:09 +11:00
cc13ecfc87
fixed BUG-8, no genres for a sub book addition loses parent details
Damien De Paoli2021-01-03 12:08:19 +11:00
ff45513c7d
fix up new regression on add subbook button after fixing loans div bug
Damien De Paoli2021-01-03 11:59:36 +11:00
e625b19451
TODO-2 completed, can remove a subbook from parent
Damien De Paoli2021-01-02 19:13:28 +11:00
6d97df44e4
TODO-2 completed, can remove a subbook from parent
Damien De Paoli2021-01-02 19:10:52 +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
Damien De Paoli2021-01-02 18:53:52 +11:00
77677d4829
FIXED: TODO-1 (created/modifed times)... added now() and trigger for modifications in the postgres db itself, and altered ORM to know its now datetime, not date -- the trigger extension required datetime and its probably more useful anyway
Damien De Paoli2021-01-02 17:53:49 +11:00
c99342232c
make sure num_books also has a value, not just a positive one, so I am force to fill it in on submit
Damien De Paoli2020-12-31 11:52:27 +11:00