allow Edit Author to show list of books for author

This commit is contained in:
2023-07-04 23:00:39 +10:00
parent caf65be74c
commit 1e7a47f43e
3 changed files with 57 additions and 3 deletions

View File

@@ -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 %}