Commit Graph

34 Commits

Author SHA1 Message Date
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
6f5b65788d Fixed BUG-02 (recalc rating on book change), also added route to reset all ratings in Admin menu 2021-01-10 11:10:49 +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 2021-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 2021-01-09 15:32:55 +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 2021-01-09 01:13:26 +11:00
a6211928df completed TODO-12: missing books 2021-01-09 00:45:10 +11:00
94ddee7791 completed TODO-11 (unrated books) 2021-01-08 22:43:48 +11:00
d153c40c17 completed -- TODO-08: show books on shelf list, and clarified install instructions for README 2021-01-08 22:29:27 +11:00
024a2a12a1 remove footer on modal dialog, I think its dumb 2021-01-06 23:25:04 +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 2021-01-06 20:37:20 +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 :) 2021-01-04 22:28:35 +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
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
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
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
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
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
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
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
e7c8e645ae first pass for series data, can save, and shows associated books... Does not deal with series inside series 2020-11-23 18:50:53 +11:00
6a8d2731ac added in new script_content block for scripts to run after main_content, used by load to retrieve books that are associated with the loan. Also added *Loan menu items to navbar 2020-11-18 19:58:00 +11:00
296ef4c1f7 renamed id_name_form to edit_id_name, then made show_id_name and used it for all appropriate classes. Shaved about 150 LOC / removed 5 x duplication of code :) 2020-11-18 12:30:23 +11:00
5f46636298 created generic id_name_form.html and made condition, covertype, genre, owned, publisher & rating use it for single edit page 2020-11-18 12:09:02 +11:00
Damien De Paoli
9544790ffa removed all old *_lst tables, added corresponding new classes, etc. fro covertype, owned, rating, and dropped tables from DB, etc. Updated base.html to use new tables as drop-downs that are set correctly. So far slight hack on BookForm, will finish that after syncing this all back to mara. If I do the sync, and export/import this version of DB, then the fixes.sql and fix_db() code included in main.py can be removed. Finally, lamely added a favicon and a static/ to support it 2020-11-17 21:22:15 +11:00
757729f159 tweaked pagination size to 20 now that navbar takes up so much space, also made pagination choices match 2020-11-16 00:05:00 +11:00
1de0ed27d9 fixed up genres.html, publisers.html to work, tweaked menu structure -- still more placeholders than working for now, but started on an Admin menu to allow dealing with genres, covertypes, conditions, etc. 2020-11-15 14:26:52 +11:00
29f8189c97 fixed bug with route to / now needing to be to base.html, not main.html, then just added publisher (list all/edit 1/deleted button) 2020-11-14 15:33:43 +11:00
79a41b4f0e split out old books into book and books.html, all *.html now using extends and {% block %} in jinja2. So navbar is now present in all URLs 2020-11-14 12:09:35 +11:00
b885bf30e4 now using jinja2 block / template, rather than jscript to fill content 2020-11-14 11:20:52 +11:00