{% from "admin/components/icons.html" import icon %}
{# MultiSelect: a searchable Command-style list over a many-to-many
relation's options, with the current selection shown as removable
chips on the trigger.
Same job as Django admin's filter_horizontal permissions widget -- a
long option list is unusable until you can type at it -- built from
shadcn's Combobox/Command idiom rather than Django's two-pane layout,
which needs more width than a form column has.
Filtering is client-side, unlike the relation combobox: a
many-to-many's options are already in the page in full, so a
round-trip per keystroke would be pure latency.
It posts one hidden input per selection under the field's own name,
exactly what a