Don't show cancel button in static mode

This commit is contained in:
Mouse Reeve 2021-12-15 13:21:08 -08:00
parent c8e038cd4e
commit 5ed5d5d222

View file

@ -34,7 +34,10 @@
{% block modal-footer %}
<button class="button is-primary" type="submit">{% trans "Save" %}</button>
{% trans "Cancel" as button_text %}
{% include 'snippets/toggle/toggle_button.html' with text=button_text %}
{% 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 %}