forked from mirrors/bookwyrm
Fixes close buttons on modals
This commit is contained in:
parent
a2811b6c1b
commit
99904618ac
4 changed files with 13 additions and 5 deletions
|
@ -14,7 +14,11 @@
|
||||||
<h2 class="modal-card-title is-flex-shrink-1" id="modal_card_title_{{ controls_text }}_{{ controls_uid }}">
|
<h2 class="modal-card-title is-flex-shrink-1" id="modal_card_title_{{ controls_text }}_{{ controls_uid }}">
|
||||||
{% block modal-title %}{% endblock %}
|
{% block modal-title %}{% endblock %}
|
||||||
</h2>
|
</h2>
|
||||||
{% include 'snippets/toggle/toggle_button.html' with label=label class="delete" nonbutton=True %}
|
{% if static %}
|
||||||
|
<a href="/" class="delete">{{ label }}</a>
|
||||||
|
{% else %}
|
||||||
|
{% include 'snippets/toggle/toggle_button.html' with label=label class="delete" nonbutton=True %}
|
||||||
|
{% endif %}
|
||||||
</header>
|
</header>
|
||||||
{% block modal-form-open %}{% endblock %}
|
{% block modal-form-open %}{% endblock %}
|
||||||
{% if not no_body %}
|
{% if not no_body %}
|
||||||
|
@ -27,6 +31,10 @@
|
||||||
</footer>
|
</footer>
|
||||||
{% block modal-form-close %}{% endblock %}
|
{% block modal-form-close %}{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
{% include 'snippets/toggle/toggle_button.html' with label=label class="modal-close is-large" nonbutton=True %}
|
{% if static %}
|
||||||
|
<a href="/" class="modal-close is-large">{{ label }}</a>
|
||||||
|
{% else %}
|
||||||
|
{% include 'snippets/toggle/toggle_button.html' with label=label class="modal-close is-large" nonbutton=True %}
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,6 @@ Finish "{{ book_title }}"
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{% include "snippets/reading_modals/finish_reading_modal.html" with book=book active=True %}
|
{% include "snippets/reading_modals/finish_reading_modal.html" with book=book active=True static=True %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -9,6 +9,6 @@ Start "{{ book_title }}"
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{% include "snippets/reading_modals/start_reading_modal.html" with book=book active=True %}
|
{% include "snippets/reading_modals/start_reading_modal.html" with book=book active=True static=True %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -9,6 +9,6 @@ Want to Read "{{ book_title }}"
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{% include "snippets/reading_modals/want_to_read_modal.html" with book=book active=True %}
|
{% include "snippets/reading_modals/want_to_read_modal.html" with book=book active=True static=True %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue