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