pass readthrough id to shelf_selector

- allows user to move book from a shelf to the 'Read' shelf using the move button.
This commit is contained in:
Hugh Rundle
2021-11-20 10:29:17 +11:00
parent 373cc2c762
commit c6a2de3bbc
2 changed files with 3 additions and 3 deletions

View File

@ -11,6 +11,8 @@
{% block dropdown-list %}
{% with book.id|uuid as uuid %}
{% active_shelf book as active_shelf %}
{% latest_read_through book request.user as readthrough %}
{% for shelf in user_shelves %}
{% if shelf.editable %}
@ -67,7 +69,5 @@
{% include 'snippets/reading_modals/finish_reading_modal.html' with book=active_shelf.book controls_text="finish_reading" controls_uid=uuid move_from=current.id readthrough=readthrough %}
{% include 'snippets/reading_modals/progress_update_modal.html' with book=active_shelf.book controls_text="progress_update" controls_uid=uuid move_from=current.id readthrough=readthrough %}
{% endwith %}
{% endblock %}