{# djlint:off #}
{#js vendor/jquery/jquery.min.js #}
{# Disable djlint formating to avoid reformat of {{placeholder}} #}
{% set typeahead_source = {
  'model': {
    'ajax': {
      'url': url_for('dashboard', 'search_user.json'),
      'path': 'data',
      'data': {
        'u': '{{query}}'
      }
    }
  }
} %}
{% set typeahead_display = ["username", "name", "email"] %}
{% set typeahead_template = "{{username}} {{name}}<br />{{email}}" %}
{% set typeahead_href = "{{url}}" %}
{# djlint:on #}
<form method="GET" action="#" class="ssp-search">
  <Typeahead id="ssp-search-user" name="u" autofocus={{ True }} dynamic={{ True }} filter={{ False }} hint={{ True }} source={{ typeahead_source }} display={{ typeahead_display }} placeholder={{ _("Search user…") }} must_select_item={{ False }} template={{ typeahead_template }} href={{ typeahead_href }} min_length={{ 3 }} max_item={{ 0 }} max_item_per_group={{ 0 }} accent={{ true }} backdrop={{ true }} />
</form>
