{# Macro modal — dialog accesible Uso: {% from "dg/components/modal.html" import modal_open %} {% call modal_open(id="my-modal", title="Título del modal") %}

Contenido del modal

{% endcall %} Depende de window.openModal/closeModal definidos en static/js/htmx-events.js. #} {% macro modal_open(id, title, size="md") %} {%- set _max = "max-w-md" if size == "sm" else ("max-w-2xl" if size == "lg" else "max-w-lg") -%} {%- endmacro %}