{% comment %} Confirm-action button that opens a dignified modal instead of a native confirm(). Required args: trigger_label — text shown on the trigger button (e.g. "Approve") action_url — form POST action title — modal heading (e.g. "Approve amendment?") Optional args: trigger_class — Tailwind classes for the trigger button (default: btn-secondary btn-sm) eyebrow — small eyebrow above title lede — supporting copy under title hidden_inputs — dict of {name: value} rendered as confirm_label — text on the final confirm button (default: reuse trigger_label) confirm_class — Tailwind classes for the confirm button (default: btn-primary) note — small grey footnote inside modal footer (left-aligned) danger — truthy → red accent on modal header reason_field — if truthy, include a required textarea named "reason" reason_label — label text for the reason textarea reason_placeholder — placeholder text Usage: {% include "components/confirm_button.html" with trigger_label="Approve" trigger_class="btn-primary btn-sm" action_url=approve_url title="Approve amendment "|add:amendment.amendment_number|stringformat:"s" lede="This applies the new terms to the award record and cannot be undone." hidden_inputs=hidden confirm_label="Approve amendment" %} {% endcomment %}