Commit Graph

21 Commits

Author SHA1 Message Date
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
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
e39a4da6a2 removed all refs to genre_lst, made genre table confirm to id, name, added classes/routes for genre*, tweaked book format to accommodate multiple authors, etc. still 1-line, but with 12 / num of <authors, etc.> col wide form-controls 2020-11-15 14:16:58 +11:00
7334e4b622 bit of pox code, to go through sub fields like author/publisher, and build readonly links to their edit pages, works. Need to add to books.html - which also only prints the first item - like author anyway 2020-11-15 13:29:49 +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