{% load i18n conjunto %} {# Toast container. The ``conjunto/js/toasts.js`` script looks for this #} {# element and appends Bootstrap/Tabler toasts to it in response to #} {# ``conjunto:toasts`` and ``showToast`` window events, as well as any #} {# initial messages rendered into ``#cj-initial-toasts`` below. #}
{# Initial messages from a full-page (non-HTMX) response. Iterating#} {# ``messages`` here marks the storage as used so nothing else will#} {# re-render them.#} {% if messages %}{{ messages|toasts_data|json_script:"cj-initial-toasts" }}{% endif %}