2021-04-01 16:14:23 -04:00
|
|
|
{% load i18n %}
|
2021-03-03 14:10:09 -05:00
|
|
|
<div
|
|
|
|
role="dialog"
|
2021-06-08 14:23:53 -04:00
|
|
|
class="modal {% if active %}is-active{% else %}is-hidden{% endif %}"
|
2021-08-08 21:40:47 -04:00
|
|
|
id="{{ controls_text }}_{{ controls_uid }}"
|
|
|
|
aria-labelledby="modal_card_title_{{ controls_text }}_{{ controls_uid }}"
|
2021-03-04 14:14:11 -05:00
|
|
|
aria-modal="true"
|
2021-03-03 14:10:09 -05:00
|
|
|
>
|
2021-03-04 14:38:28 -05:00
|
|
|
{# @todo Implement focus traps to prevent tabbing out of the modal. #}
|
2021-01-17 13:10:59 -05:00
|
|
|
<div class="modal-background"></div>
|
2021-04-01 16:14:23 -04:00
|
|
|
{% trans "Close" as label %}
|
2021-01-17 13:10:59 -05:00
|
|
|
<div class="modal-card">
|
2021-08-08 21:40:47 -04:00
|
|
|
<header class="modal-card-head" tabindex="0" id="modal_title_{{ controls_text }}_{{ controls_uid }}">
|
|
|
|
<h2 class="modal-card-title is-flex-shrink-1" id="modal_card_title_{{ controls_text }}_{{ controls_uid }}">
|
2021-01-17 13:10:59 -05:00
|
|
|
{% block modal-title %}{% endblock %}
|
|
|
|
</h2>
|
2021-04-01 16:14:23 -04:00
|
|
|
{% include 'snippets/toggle/toggle_button.html' with label=label class="delete" nonbutton=True %}
|
2021-01-17 13:10:59 -05:00
|
|
|
</header>
|
|
|
|
{% block modal-form-open %}{% endblock %}
|
2021-01-30 16:11:43 -05:00
|
|
|
{% if not no_body %}
|
2021-01-20 01:30:51 -05:00
|
|
|
<section class="modal-card-body">
|
|
|
|
{% block modal-body %}{% endblock %}
|
|
|
|
</section>
|
2021-01-30 16:11:43 -05:00
|
|
|
{% endif %}
|
2021-01-17 13:10:59 -05:00
|
|
|
<footer class="modal-card-foot">
|
|
|
|
{% block modal-footer %}{% endblock %}
|
|
|
|
</footer>
|
|
|
|
{% block modal-form-close %}{% endblock %}
|
|
|
|
</div>
|
2021-04-01 16:14:23 -04:00
|
|
|
{% include 'snippets/toggle/toggle_button.html' with label=label class="modal-close is-large" nonbutton=True %}
|
2021-01-17 13:10:59 -05:00
|
|
|
</div>
|
|
|
|
|