templates/components/search.html.twig line 1

Open in your IDE?
  1. <li{{ attributes.defaults(stimulus_controller('search')) }} class="position-relative d-flex justify-content-end me-2 flex-grow-1">
  2.     <div class="d-none w-100" {{ stimulus_target('search','searchInput') }}>
  3.         <input class="form-control w-100 me-2 mb-3 mb-lg-0"
  4.                aria-hidden="true"
  5.                type="search"
  6.                data-model="search"
  7.                data-action="keydown@document->search#keyDown keydown->search#keyDown mouseup@window->search#hide"
  8.                placeholder="Search" aria-label="Search an instrument">
  9.         <div class="list-group position-absolute w-100 shadow">
  10.             {% for instrument in this.searchInstruments %}
  11.                 <a href="{{ path('app_instrument_show', {'slug': instrument.slug}) }}"
  12.                    class="list-group-item list-group-item-action border-0 border-bottom">
  13.                     {{ instrument.name }}
  14.                 </a>
  15.             {% endfor %}
  16.         </div>
  17.     </div>
  18.     <button class="nav-link"
  19.             aria-hidden="false"
  20.             aria-label="jump to the search input field"
  21.             data-action="search#show"
  22.             {{ stimulus_target('search', 'showButton')}}>
  23.         <i class="fas fa-search"></i>
  24.     </button>
  25. </li>