{% set hue = groups.index(spec.group) % 6 if spec.group in groups else 0 %} {# A real : Escape, focus trapping and ::backdrop come from the element rather than from script. base.html opens it once this lands in #modal. #} {% include "_detail_rows.html" %} {% if flash is defined and flash %} {# Out of band: this response swaps into #modal, and the toast lives outside it. #}
{% include "_toast.html" %}
{% endif %} {% if oob_row is defined %} {# Out of band, so the row behind the dialog stops showing what was just changed. #} {% with row = oob_row, oob = true %}{% include "_row.html" %}{% endwith %} {% endif %}