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:
@@ -55,6 +55,8 @@
|
||||
<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')}}">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>
|
||||
@@ -73,5 +75,6 @@
|
||||
$('#book_table').DataTable( { 'pageLength': 20, 'lengthMenu': [[10, 20, 50, -1], [10, 20, 50, "All"]] } );
|
||||
} );
|
||||
</script>
|
||||
{%block script_content %}{% endblock script_content %}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user