Unshelve button on shelf page

This commit is contained in:
Mouse Reeve
2020-10-28 16:52:23 -07:00
parent bdde69473a
commit 069b4eae2a
3 changed files with 23 additions and 1 deletions

View File

@ -66,6 +66,18 @@
{% include 'snippets/stars.html' with rating=ratings|dict_key:book.id %}
</td>
{% endif %}
<td>
<form name="unshelve" action="/unshelve/" method="post">
{% csrf_token %}
<input type="hidden" name="book" value="{{ book.id }}">
<input type="hidden" name="shelf" value="{{ shelf.id }}">
<button class="button is-small" type="submit" style="">
<span class="icon icon-x">
<span class="is-sr-only">Remove from shelf</span>
</span>
</button>
</form>
</td>
</tr>
{% endfor %}
</table>