{% from 'utils.html.twig' import ico %}
<form class="busca" action="{{ path('productListSearch') }}" method="GET">
{% if not isDarkTheme and hasProducts and categories|length > 0 %}
<button type="button" id="btn_categorias" class="btn-categorias">
<i class="ico">{{ ico('apps') }}</i>
<span>{{ getLanguage('categories', 'search_form') }}</span>
<i class="ico">{{ ico('chevron-down') }}</i>
</button>
<div class="box-categorias">
<div>
{% for category in categories %}
{% if category.hasProduct() %}
<a href="{{ path('productListCategory', { type: 'produtos', slug: category.slug }) }}">
{{ category.category }}
</a>
{% endif %}
{% endfor %}
</div>
</div>
{% endif %}
<input type="text" id="search" name="search" placeholder="{{ getLanguage('course_to_study', 'search_form') }}" autocomplete="off">
<button type="submit" class="btn-buscar">
<i>{{ ico('search') }}</i>
</button>
<div id="search_suggestions" class="search-suggestions" data-status="start" request="{{ path('productListSuggestionSearch') }}">
<span class="item item-start">
<i class="type-search"></i>
<span>{{ getLanguage('course_to_study', 'search_form') }}</span>
</span>
<span class="item item-wait">
<i class="type-search"></i>
<span>{{ getLanguage('searching_for', 'search_form') }} <b class="js--search-term">…</b></span>
</span>
<span class="item item-end-empty">
<i class="type-search"></i>
<span>{{ getLanguage('no_results_for', 'search_form') }} <b class="js--search-term">…</b></span>
</span>
<a id="init_link" class="item item-end-full" href="">
<i class="type-search"></i>
<span>{{ getLanguage('see_all_courses_with', 'search_form') }} <b class="js--search-term">…</b></span>
</a>
<div class="loader-container">
<i class="loader">{{ ico('loader-wish') }}</i>
</div>
<nav id="search_suggestions_links" class="found-links"></nav>
</div>
</form>