From 6a8d2731ac57b47e39237b586cd97dbb1c9cec7a Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Wed, 18 Nov 2020 19:58:00 +1100 Subject: [PATCH] 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 --- templates/base.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/base.html b/templates/base.html index bacc707..cae83e2 100644 --- a/templates/base.html +++ b/templates/base.html @@ -55,6 +55,8 @@ Show Ownership Types Create new Rating Show Ratings + Create new Loan + Show Loans @@ -73,5 +75,6 @@ $('#book_table').DataTable( { 'pageLength': 20, 'lengthMenu': [[10, 20, 50, -1], [10, 20, 50, "All"]] } ); } ); + {%block script_content %}{% endblock script_content %}