{% load crispy_forms_tags %}

<form _="on change or submit or search
           if event.type is 'submit'
             halt the event
           end
           trigger updated on window
         end
         install init_tom_select
         install init_datepicker"
      id="filter" class="mt-3">
  {% crispy filter.form %}
</form>
{% if swap_filter_indicator %}
  <span id="filter-active-indicator"
        class="absolute -top-1 -right-1 w-3 h-3 bg-error rounded-full {% if not filter_is_active %}hidden {% endif %}z-10"
        hx-swap-oob="outerHTML"></span>
{% endif %}
