reordered add button to be consistent with author and publisher, then allowed author to be a drop-down with a + or - button as appropriate
This commit is contained in:
5
main.py
5
main.py
@@ -15,7 +15,7 @@ db = SQLAlchemy(app)
|
||||
ma = Marshmallow(app)
|
||||
Bootstrap(app)
|
||||
|
||||
from author import Author, AuthorForm, AuthorSchema
|
||||
from author import Author, AuthorForm, AuthorSchema, GetAuthors
|
||||
from publisher import Publisher, PublisherForm, PublisherSchema, GetPublishers
|
||||
from genre import Genre, GenreForm, GenreSchema, GetGenres
|
||||
from condition import Condition, ConditionForm, ConditionSchema, GetConditionById
|
||||
@@ -173,9 +173,10 @@ def book(id):
|
||||
book_form.owned.default = book.owned
|
||||
book_form.rating.default = book.rating
|
||||
book_form.process()
|
||||
author_list = GetAuthors()
|
||||
genre_list = GetGenres()
|
||||
publisher_list = GetPublishers()
|
||||
return render_template("book.html", books=book_s, subs=sub_book, book_form=book_form, genre_list=genre_list, publisher_list=publisher_list, covertype_list=covertypes )
|
||||
return render_template("book.html", books=book_s, subs=sub_book, book_form=book_form, author_list=author_list, publisher_list=publisher_list, genre_list=genre_list )
|
||||
|
||||
@app.route("/", methods=["GET"])
|
||||
def main_page():
|
||||
|
||||
Reference in New Issue
Block a user