allow Edit Author to show list of books for author
This commit is contained in:
@@ -24,4 +24,16 @@
|
||||
</div class="form">
|
||||
</div class="row">
|
||||
</div class="container">
|
||||
{% if page_title == 'Edit Author' %}
|
||||
<div class="row mt-5">
|
||||
<div class="offset-1 col-10" id="books_by_author">
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock main_content %}
|
||||
|
||||
{% block script_content %}
|
||||
<script>
|
||||
$.get( "/author/{{object.id}}/books", function(data) { $('#books_by_author').html(data) } );
|
||||
</script>
|
||||
{% endblock script_content %}
|
||||
|
||||
Reference in New Issue
Block a user