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:
parent
373cc2c762
commit
c6a2de3bbc
|
@ -162,7 +162,7 @@
|
||||||
<li class="box">
|
<li class="box">
|
||||||
{% blocktrans with path=shelf.shelf.local_path shelf_name=shelf.shelf.name %}<a href="{{ path }}">{{ shelf_name }}</a>{% endblocktrans %}
|
{% blocktrans with path=shelf.shelf.local_path shelf_name=shelf.shelf.name %}<a href="{{ path }}">{{ shelf_name }}</a>{% endblocktrans %}
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
{% include 'snippets/shelf_selector.html' with current=shelf.shelf class="is-small" %}
|
{% include 'snippets/shelf_selector.html' with current=shelf.shelf class="is-small" readthrough=readthrough %}
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
@ -11,6 +11,8 @@
|
||||||
{% block dropdown-list %}
|
{% block dropdown-list %}
|
||||||
{% with book.id|uuid as uuid %}
|
{% with book.id|uuid as uuid %}
|
||||||
{% active_shelf book as active_shelf %}
|
{% active_shelf book as active_shelf %}
|
||||||
|
{% latest_read_through book request.user as readthrough %}
|
||||||
|
|
||||||
{% for shelf in user_shelves %}
|
{% for shelf in user_shelves %}
|
||||||
|
|
||||||
{% if shelf.editable %}
|
{% 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/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 %}
|
{% endwith %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in New Issue