moviewyrm/bookwyrm/templates/snippets/switch_edition_button.html

5 lines
247 B
HTML

<form name="switch-edition" action="/switch-edition" method="POST">
{% csrf_token %}
<input type="hidden" name="edition" value="{{ edition.id }}">
<button type="submit" class="button {{ size }}">Switch to this edition</button>
</form>