Added code for rearranging shelfs #73

This commit is contained in:
OzzieIsaacs
2017-01-03 20:19:32 +01:00
parent 490f8ef5f2
commit ea2e8205e3
12 changed files with 1066 additions and 678 deletions

View File

@@ -1375,7 +1375,7 @@ def order_shelf(shelf_id):
for book in books_in_shelf2:
cur_book = db.session.query(db.Books).filter(db.Books.id == book.book_id).first()
result.append(cur_book)
return render_template('order_shelf.html', entries=result, title=_(u"Change order of Shelf: '%(name)s'", name=shelf.name), shelf=shelf)
return render_template('shelf_order.html', entries=result, title=_(u"Change order of Shelf: '%(name)s'", name=shelf.name), shelf=shelf)
@app.route("/me", methods=["GET", "POST"])