forked from mirrors/bookwyrm
Use javascript back button on create book page
This commit is contained in:
parent
584e0a54af
commit
94bce7fd83
1 changed files with 6 additions and 0 deletions
|
@ -108,7 +108,13 @@
|
||||||
{% if not confirm_mode %}
|
{% if not confirm_mode %}
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<button class="button is-primary" type="submit">{% trans "Save" %}</button>
|
<button class="button is-primary" type="submit">{% trans "Save" %}</button>
|
||||||
|
{% if book %}
|
||||||
<a class="button" href="{{ book.local_path }}">{% trans "Cancel" %}</a>
|
<a class="button" href="{{ book.local_path }}">{% trans "Cancel" %}</a>
|
||||||
|
{% else %}
|
||||||
|
<a href="/" class="button" data-back>
|
||||||
|
<span>{% trans "Cancel" %}</span>
|
||||||
|
</a>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in a new issue