{% comment %} HTMX-driven search input with a paired error region. Required: hx_url — endpoint to GET on input (e.g. request.path) hx_target — CSS selector for the swap target (e.g. "#call-cards") Optional: placeholder — input placeholder (default "Search…") delay — debounce in ms (default 350) name — query param name (default "q") hx_select — hx-select fragment (default omitted) hx_push_url — truthy → hx-push-url=true error_target_id — id of the error region (default derived from hx_target) Usage: {% include "components/forms/htmx_search.html" with hx_url=request.path hx_target="#call-cards" placeholder="Search calls…" %} {% endcomment %}