Adds cancel button to edit book page

This commit is contained in:
Mouse Reeve 2020-11-05 12:05:29 -08:00
parent 4b1c8bc9ae
commit a48bb5a16e
2 changed files with 2 additions and 1 deletions

View file

@ -11,7 +11,7 @@
{% if request.user.is_authenticated and perms.bookwyrm.edit_book %}
<div class="level-right">
<a href="{{ book.id }}/edit">edit
<a href="{{ book.id }}/edit">
<span class="icon icon-pencil">
<span class="is-sr-only">Edit Book</span>
</span>

View file

@ -78,6 +78,7 @@
</div>
<div class="block">
<button class="button is-primary" type="submit">Save</button>
<a class="button is-danger is-light" href="/book/{{ book.id }}">Cancel</a>
</div>
</form>