vendor/shopware/storefront/Resources/views/storefront/layout/header/search.html.twig line 1

Open in your IDE?
  1. {% block layout_header_search %}
  2.     <div class="collapse"
  3.          id="searchCollapse">
  4.         <div class="header-search">
  5.             <form action="{{ path('frontend.search.page') }}"
  6.                   method="get"
  7.                   data-search-form="true"
  8.                   data-url="{{ path('frontend.search.suggest') }}?search="
  9.                   class="header-search-form">
  10.                 {% block layout_header_search_input_group %}
  11.                     <div class="input-group">
  12.                         {% block layout_header_search_input %}
  13.                             <input type="search"
  14.                                    name="search"
  15.                                    class="form-control header-search-input"
  16.                                    autocomplete="off"
  17.                                    autocapitalize="off"
  18.                                    placeholder="{{ "header.searchPlaceholder"|trans|striptags }}"
  19.                                    aria-label="{{ "header.searchPlaceholder"|trans|striptags }}"
  20.                                    value="{{ page.searchTerm }}"
  21.                             >
  22.                         {% endblock %}
  23.                         {% block layout_header_search_button %}
  24.                             {# @deprecated tag:v6.5.0 - Bootstrap v5 removes `input-group-append` wrapper and uses elements as direct children of `input-group` #}
  25.                             {% if feature('v6.5.0.0') %}
  26.                                 <button type="submit"
  27.                                         class="btn header-search-btn"
  28.                                         aria-label="{{ "header.searchButton"|trans|striptags }}">
  29.                                     <span class="header-search-icon">
  30.                                         {% sw_icon 'search' %}
  31.                                     </span>
  32.                                 </button>
  33.                             {% else %}
  34.                                 <div class="input-group-append">
  35.                                     <button type="submit"
  36.                                             class="btn header-search-btn"
  37.                                             aria-label="{{ "header.searchButton"|trans|striptags }}">
  38.                                         <span class="header-search-icon">
  39.                                             {% sw_icon 'search' %}
  40.                                         </span>
  41.                                     </button>
  42.                                 </div>
  43.                             {% endif %}
  44.                         {% endblock %}
  45.                     </div>
  46.                 {% endblock %}
  47.             </form>
  48.         </div>
  49.     </div>
  50. {% endblock %}