Make inline progress form actually work

This commit is contained in:
Joel Bradshaw
2020-11-25 22:37:18 -08:00
parent e7c0368168
commit 090cf2aea7
4 changed files with 26 additions and 9 deletions

View File

@@ -46,7 +46,17 @@
<div class="toggle-content hidden" role="tabpanel" id="book-{{ book.id }}-panel">
<div class="block">
{% include 'snippets/book_titleby.html' with book=book %}
{% include 'snippets/shelve_button.html' with book=book %}
<div class="columns is-gapless">
<div class="column is-narrow">
{% include 'snippets/shelve_button.html' with book=book %}
{% active_shelf book as active_shelf %}
</div>
{% if active_shelf.identifier == 'reading' and book.latest_readthrough %}
<div class="column">
{% include 'snippets/progress_update.html' with readthrough=book.latest_readthrough %}
</div>
{% endif %}
</div>
</div>
{% include 'snippets/create_status.html' with book=book %}
</div>