{% load i18n %} {% comment %} Multi-select: checkbox + label. JS in change_list.html collects checked `data-value`s and builds the `?field=v1,v2,v3` URL on Apply click. {% endcomment %}
{% comment %} Title is set by APIFilter.__init__: idle filters show the true total count ("userId (10000)"), selected filters show only the field name because selected values are rendered as tags. {% endcomment %} {{ title }} {% if spec.is_multi %} {% for value in spec.selected_preview_values %} {{ value }} {% endfor %} {% if spec.selected_overflow_count %} +{{ spec.selected_overflow_count }} {% endif %} {% endif %}
{% comment %} Load-more button: rendered initially when the choices are truncated (more values exist beyond what the initial render showed). JS in change_list.html wires the click handler to AJAX `/admin/api//?ajax_distinct=1&field=X&offset=N` and appends the response's
  • items to this
      . Also rendered when the search box produces more matches than fit in one page. {% endcomment %} {% if spec.is_multi %}
      {% endif %}