forked from mirrors/bookwyrm
Don't show cancel button in static mode
This commit is contained in:
parent
c8e038cd4e
commit
5ed5d5d222
1 changed files with 5 additions and 2 deletions
|
@ -34,7 +34,10 @@
|
|||
|
||||
{% block modal-footer %}
|
||||
<button class="button is-primary" type="submit">{% trans "Save" %}</button>
|
||||
{% if not static %}
|
||||
{% trans "Cancel" as button_text %}
|
||||
{% include 'snippets/toggle/toggle_button.html' with text=button_text %}
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
{% block modal-form-close %}</form>{% endblock %}
|
||||
|
|
Loading…
Reference in a new issue