{% extends 'components/dropdown.html' %} {% load i18n %} {% load bookwyrm_tags %} {% load utilities %} {% block dropdown-trigger %} {% trans "Move book" %} {% endblock %} {% 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 %} {% else%} {% comparison_bool shelf.identifier active_shelf.shelf.identifier as is_current %} {% with button_class="is-fullwidth is-small shelf-option is-radiusless is-white" %} {% endwith %} {% endif %} {% endfor %} {% if shelf.identifier == 'all' %} {% for shelved_in in book.shelves.all %} {% endfor %} {% else %} {% endif %} {% include 'snippets/reading_modals/want_to_read_modal.html' with book=active_shelf.book controls_text="want_to_read" controls_uid=uuid move_from=current.id %} {% include 'snippets/reading_modals/start_reading_modal.html' with book=active_shelf.book controls_text="start_reading" controls_uid=uuid move_from=current.id %} {% 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 %} {% endwith %} {% endblock %}