{# Reusable confirm-then-submit form. Renders a button that opens a small Alpine modal asking the user to confirm before posting to `action`. The form's hidden inputs include the CSRF token and any extra inputs in `extra_fields`. Args: - action (string) : POST URL. - label (string) : button text and modal title prefix. - description (string) : line of explanatory text in the modal. - extra_fields (array) : optional name->value hidden inputs (for "next"). - btn_class (string) : optional override for the trigger-button classes. #} {% set _btn_class = btn_class|default('rounded-md border border-red-300 bg-white px-2 py-1 text-xs font-medium text-red-700 hover:bg-red-50 dark:border-red-700 dark:bg-slate-900 dark:text-red-300 dark:hover:bg-slate-800') %}

{{ label }}?

{{ description }}

{% for k, v in extra_fields|default({}) %} {% endfor %}