{% macro modal(id, body, label="", checked=False) -%}
{% if label %}
<label for="modal-{{ id }}" class="toggle-label">{{ label }}</label>
{% endif %}
<input type="checkbox" id="modal-{{ id }}" class="toggle" {% if checked %}checked{% endif %}>
<label for="modal-{{ id }}" class="toggle-background"></label>
<div class="toggle-container">
    {{ body }}
    <label for="modal-{{ id }}" class="toggle-label">Fermer</label>
</div>
{%- endmacro %}