forked from mirrors/bookwyrm
Show cancel buttons on modals in static mode
This commit is contained in:
parent
582b84ecaa
commit
9013b1417a
3 changed files with 2 additions and 8 deletions
|
@ -56,9 +56,7 @@
|
||||||
|
|
||||||
{% 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>
|
||||||
{% if not static %}
|
<button type="button" class="button" data-modal-close>{% trans "Cancel" %}</button>
|
||||||
<button type="button" class="button" data-modal-close>{% trans "Cancel" %}</button>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block modal-form-close %}</form>{% endblock %}
|
{% block modal-form-close %}</form>{% endblock %}
|
||||||
|
|
|
@ -70,9 +70,7 @@
|
||||||
|
|
||||||
{% 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>
|
||||||
{% if not static %}
|
|
||||||
<button type="button" class="button" data-modal-close>{% trans "Cancel" %}</button>
|
<button type="button" class="button" data-modal-close>{% trans "Cancel" %}</button>
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block modal-form-close %}
|
{% block modal-form-close %}
|
||||||
|
|
|
@ -50,9 +50,7 @@
|
||||||
{% block modal-footer %}
|
{% block modal-footer %}
|
||||||
|
|
||||||
<button class="button is-success" type="submit">{% trans "Submit" %}</button>
|
<button class="button is-success" type="submit">{% trans "Submit" %}</button>
|
||||||
{% if not static %}
|
<button type="button" class="button" data-modal-close>{% trans "Cancel" %}</button>
|
||||||
<button type="button" class="button" data-modal-close>{% trans "Cancel" %}</button>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue