{# ── Shared row-selection behaviour for bulk-action list pages ──────────────── Included by the issues and inspections list templates (classic + modern). Generic on purpose — it keys off classes/attributes, not page-specific ids, so both pages share one implementation: .bulk-check one per row (name=issue_ids / inspection_ids) .bulk-check-all the header select-all box .bulk-count element whose text becomes the selected count [data-bulk-action] submit buttons, disabled while nothing is selected [data-bulk-confirm] optional confirm text, count substituted for {n} Guarding the submit on a zero selection matters: the browser would happily POST an empty id list, and the route would flash "No issues selected" after a full page round trip. #}