|
|
6bcbaca1ee
|
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:34 +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 |
|
|
|
ae1aba5e1d
|
swap order of books in series works - still has debugs, and only works on current series, e.g. if you are in a series in a series, it will need you to manually do the same move in both series - I think I wont fix this bit, but we will see
|
2020-11-28 17:43:03 +11:00 |
|
|
|
422db5b6aa
|
move buttons in books_for_series in series.html now are form buttons and submit and beginning of code to deal with it exists
|
2020-11-26 17:35:30 +11:00 |
|
|
|
e9f9f742a3
|
ran a full test, and created this list of BUGs
|
2020-11-25 20:51:03 +11:00 |
|
|
|
ad1f83e046
|
made loan stick with primary rather than info for color consistency
|
2020-11-25 20:50:48 +11:00 |
|
|
|
fe7a4f46d6
|
Merge branch 'master' of 192.168.0.2:pybook
|
2020-11-25 18:24:27 +11:00 |
|
|
|
606c3615cf
|
books_for_series now deals with sub books (hiding ability to reorder them in series), and disables first book (parent or normal) and last book (normal or parent of last sub-book)
|
2020-11-25 17:53:05 +11:00 |
|
Damien De Paoli
|
40817ba969
|
updated by removing old, adding many new items todo
|
2020-11-24 21:26:51 +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
|
3a07c109a0
|
fix sorting by using proper python printing format str
|
2020-11-24 21:23:46 +11:00 |
|
Damien De Paoli
|
332335fe03
|
display loan "card" in book.html
|
2020-11-24 20:41:45 +11:00 |
|
|
|
725c362663
|
cleaned up tabs on comments in main.py, allowed series edit page to stretch full page, shrank font for books in series table, added move up/down buttons (non-functional as yet), and visualised books being in more than one series
|
2020-11-24 18:12:28 +11:00 |
|
|
|
a579e7db93
|
datatables needs to know second column is numeric
|
2020-11-23 19:59:01 +11:00 |
|
|
|
c310071db9
|
series view now orders books in series - still does not deal with series in series
|
2020-11-23 19:50:00 +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 |
|
|
|
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 |
|
|
|
60619c9d9c
|
previous commit was by accident was testing speed of not using ORM for all books, it is still a bit slow, but much faster... I wonder whether I load in increments with ORM and ajax append them to the list, just need first 20, then add... OR, just load the lot without an ORM... oddly, cant just do this because both author/publisher would need to be fixed, AND I cant seem to change books[0].parent if I do that, it complains
|
2020-11-22 00:30:51 +11:00 |
|
|
|
3fe99148c3
|
moved to using a Get*ById() in condition, covertype, owned files and exposing them in jinja and using them in books.html to fix-up the fact those columns were now raw forein keys (ids)
|
2020-11-22 00:24:11 +11:00 |
|
|
|
9466e61db9
|
moved to using a Get*ById() in condition, covertype, owned files and exposing them in jinja and using them in books.html to fix-up the fact those columns were now raw forein keys (ids)
|
2020-11-22 00:23:18 +11:00 |
|
|
|
1edf5082c7
|
added publisher list in, so publisher in book.html is about done
|
2020-11-21 17:57:06 +11:00 |
|
|
|
b58b968c66
|
added GetPublishers for use in book.html to make a publisher drop-down
|
2020-11-21 17:56:25 +11:00 |
|
|
|
1a598ca59b
|
renamed GetGenreList to GetGenres as it just gets them, does not make the html list as I was originally planning
|
2020-11-21 17:56:05 +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 |
|
|
|
52a75e2d71
|
sort genre list by name
|
2020-11-21 13:38:26 +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 |
|
|
|
151e006154
|
done loan now
|
2020-11-21 12:26:01 +11:00 |
|
|
|
cc99e2e98a
|
add helper function GetGenreList - passes all genres to *.html, so horizontal "list" of checkboxes for book can be created
|
2020-11-21 12:25:45 +11:00 |
|
|
|
feed271c6b
|
use FlaskForm consistently over Form
|
2020-11-21 12:24:56 +11:00 |
|
|
|
191fcf8f9d
|
added in loans support, also particular route for book_for_loan without markup used as div content on loan.html page via ajax load
|
2020-11-18 19:58:55 +11:00 |
|
|
|
d669ef71a4
|
added in loans support, also particular route for book_for_loan without markup used as div content on loan.html page via ajax load
|
2020-11-18 19:58:41 +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 |
|
|
|
4ca2183253
|
added quick debug for loan data in books if there
|
2020-11-18 19:57:04 +11:00 |
|
|
|
28d67be19e
|
removed debugs
|
2020-11-18 19:51:30 +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 |
|
|
|
3f33e7f10d
|
cleaned up Form->FlaskForm, for both import line and class *Form(FlaskForm)
|
2020-11-18 12:12:36 +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 |
|
|
|
8ebf9b73cb
|
rewrite to be more generic
|
2020-11-18 12:03:02 +11:00 |
|
|
|
f765a18327
|
removed fix_db, fixes.sql, and updated todo
|
2020-11-17 21:30:51 +11:00 |
|
|
|
4ee94337b2
|
missing ; -- last update to fixes.sql, Ill delete it next
|
2020-11-17 21:27:30 +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 |
|
|
|
8eddce043b
|
quick record of one-off DB fixes needed to reset table names, column names, etc. to be more consistent & 3NF
|
2020-11-16 00:05:43 +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 |
|
|
|
797e043c20
|
sort table by name
|
2020-11-16 00:04:21 +11:00 |
|
|
|
58695629dc
|
okay, condition* now works, menu to call them works, just testing it out though, so also a BookForm started but unused at present. Finally, tweaked pagination size to 20 now that navbar takes up so much space, also made pagination choices match
|
2020-11-16 00:03:28 +11:00 |
|
|
|
ff749dfdf5
|
put ordering into Author object so fields render as surname before firstname
|
2020-11-16 00:01:33 +11:00 |
|