forked from mirrors/bookwyrm
Adds cancel button to edit book page
This commit is contained in:
parent
4b1c8bc9ae
commit
a48bb5a16e
2 changed files with 2 additions and 1 deletions
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
{% if request.user.is_authenticated and perms.bookwyrm.edit_book %}
|
{% if request.user.is_authenticated and perms.bookwyrm.edit_book %}
|
||||||
<div class="level-right">
|
<div class="level-right">
|
||||||
<a href="{{ book.id }}/edit">edit
|
<a href="{{ book.id }}/edit">
|
||||||
<span class="icon icon-pencil">
|
<span class="icon icon-pencil">
|
||||||
<span class="is-sr-only">Edit Book</span>
|
<span class="is-sr-only">Edit Book</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -78,6 +78,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<button class="button is-primary" type="submit">Save</button>
|
<button class="button is-primary" type="submit">Save</button>
|
||||||
|
<a class="button is-danger is-light" href="/book/{{ book.id }}">Cancel</a>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue