{% extends "@ibexadesign/pagelayout.html.twig" %} {% block headerimage %}
{% if isValidContentId(52956) %} {{ render( controller( "ibexa_content:viewAction", {'contentId': 52956, 'viewType': 'embed', 'noLayout': true, 'params': {'alias': 'zuk_full_screen_width_full', 'minimalMarkup': 'true', 'srcmedia': 'min-width: 768px'}} ) ) }} {% endif %} {% if isValidContentId(52957) %} {% endif %}

{{ 'Search'|trans }}

{% endblock %} {% block page_head %} {% set title = 'Search'|trans %} {% set description = 'Search'|trans %} {{ parent() }} {% endblock %} {% block content %}

{{ 'Search'|trans }}

{{ form_start( form, {'class': 'form-search'} ) }}
{{ form_widget( form.searchText, { 'attr': {'class': 'form-control','autofocus':'autofocus'}} ) }}
{{ form_widget( form.searchByWord, { 'attr': {'class': 'form-control','autofocus':'autofocus'}} ) }}
{{ form_widget(form.lastMod, { 'attr': {'class': 'form-control','autofocus':'autofocus'}} ) }}
{{ form_errors(form.searchText) }}
{{ form_widget( form.save, { 'label': "Search"|trans, 'attr': { 'class': 'btn btn-secondary' } } ) }} {{ form_end( form ) }} {% if searchCount > 0 %}

{% trans %}Search returned %searchCount% matches{% endtrans %}.

{% for searchResult in pagerSearch %}
{{ render_esi( controller( 'ibexa_content:viewAction', {'locationId': searchResult.id, 'viewType': 'search_result_item'} ) ) }}
{% endfor %} {% if not isPreview is defined and pagerSearch.haveToPaginate() %}
{% endif %} {% else %}

{% trans %}No results were found.{% endtrans %}

{{ 'Search tips'|trans }}

{% endif %}
{% endblock %}