{# _macros.html — Reusable Jinja2 components. Import with: {% from "_macros.html" import stat_card, auto_refresh_toggle, ... %} Use call block for modal: {% call m.modal_overlay(...) %} ... {% endcall %} #} {# ─── STAT CARD ───────────────────────────────────────────────────────────── label : visible label text value_id : DOM id for the big number (filled by JS via setStatFlash) sub : small subtitle text below the number variant : "" | "red" | "amber" | "green" (drives color + left border) sub_id : optional DOM id for the sub text (when JS updates it too) value_style: optional inline style string for the value span ─────────────────────────────────────────────────────────────────────────── #} {% macro stat_card(label, value_id, sub, variant="", sub_id="", value_style="") %}
{{ message }}