forked from mirrors/bookwyrm
937a7dd1af
screenreader legible
29 lines
1.1 KiB
HTML
29 lines
1.1 KiB
HTML
{% extends 'snippets/components/dropdown.html' %}
|
|
{% block dropdown-trigger %}
|
|
<span>Change shelf</span>
|
|
<span class="icon icon-arrow-down" aria-hidden="true"></span>
|
|
{% endblock %}
|
|
|
|
{% block dropdown-list %}
|
|
{% for shelf in request.user.shelf_set.all %}
|
|
{% if shelf.identifier != current.identifier %}
|
|
<li role="menuitem">
|
|
<form class="dropdown-item pt-0 pb-0" name="shelve" action="/shelve/" method="post">
|
|
{% csrf_token %}
|
|
<input type="hidden" name="book" value="{{ book.id }}">
|
|
<input type="hidden" name="shelf" value="{{ shelf.identifier }}">
|
|
<button class="button is-fullwidth is-small" type="submit">{{ shelf.name }}</button>
|
|
</form>
|
|
</li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
<hr class="navbar-divider">
|
|
<li>
|
|
<form class="dropdown-item pt-0 pb-0" name="shelve" action="/unshelve/" method="post">
|
|
{% csrf_token %}
|
|
<input type="hidden" name="book" value="{{ book.id }}">
|
|
<input type="hidden" name="shelf" value="{{ current.id }}">
|
|
<button class="button is-fullwidth is-small is-danger is-light" type="submit">Unshelve</button>
|
|
</form>
|
|
</li>
|
|
{% endblock %}
|