Don't show cancel button in static mode
This commit is contained in:
parent
c8e038cd4e
commit
5ed5d5d222
@ -34,7 +34,10 @@
|
|||||||
|
|
||||||
{% block modal-footer %}
|
{% block modal-footer %}
|
||||||
<button class="button is-primary" type="submit">{% trans "Save" %}</button>
|
<button class="button is-primary" type="submit">{% trans "Save" %}</button>
|
||||||
{% trans "Cancel" as button_text %}
|
{% if not static %}
|
||||||
{% include 'snippets/toggle/toggle_button.html' with text=button_text %}
|
{% trans "Cancel" as button_text %}
|
||||||
|
{% include 'snippets/toggle/toggle_button.html' with text=button_text %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block modal-form-close %}</form>{% endblock %}
|
{% block modal-form-close %}</form>{% endblock %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user