2021-04-01 16:14:23 -04:00
|
|
|
{% load i18n %}
|
2021-03-03 14:10:09 -05:00
|
|
|
<div
|
|
|
|
role="dialog"
|
|
|
|
class="modal hidden"
|
|
|
|
id="{{ controls_text }}-{{ controls_uid }}"
|
2021-03-03 16:58:01 -05:00
|
|
|
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-01-18 11:54:00 -05:00
|
|
|
<header class="modal-card-head" tabindex="0" id="modal-title-{{ controls_text }}-{{ controls_uid }}">
|
2021-03-03 16:58:01 -05:00
|
|
|
<h2 class="modal-card-title" 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>
|
|
|
|
|