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

This commit is contained in:
2020-11-18 19:58:00 +11:00
parent 4ca2183253
commit 6a8d2731ac

View File

@@ -55,6 +55,8 @@
<a class="dropdown-item" href="{{url_for('owneds')}}">Show Ownership Types</a> <a class="dropdown-item" href="{{url_for('owneds')}}">Show Ownership Types</a>
<a class="dropdown-item" href="{{url_for('ratings')}}">Create new Rating</a> <a class="dropdown-item" href="{{url_for('ratings')}}">Create new Rating</a>
<a class="dropdown-item" href="{{url_for('ratings')}}">Show Ratings</a> <a class="dropdown-item" href="{{url_for('ratings')}}">Show Ratings</a>
<a class="dropdown-item" href="{{url_for('loans')}}">Create new Loan</a>
<a class="dropdown-item" href="{{url_for('loans')}}">Show Loans</a>
</div> </div>
</div> </div>
</div> </div>
@@ -73,5 +75,6 @@
$('#book_table').DataTable( { 'pageLength': 20, 'lengthMenu': [[10, 20, 50, -1], [10, 20, 50, "All"]] } ); $('#book_table').DataTable( { 'pageLength': 20, 'lengthMenu': [[10, 20, 50, -1], [10, 20, 50, "All"]] } );
} ); } );
</script> </script>
{%block script_content %}{% endblock script_content %}
</body> </body>
</html> </html>