{% extends "@ibexadesign/pagelayout.html.twig" %} {% block headerimage %}
{% if not ibexa_field_is_empty( content, 'mainimage' ) %} {{ render( controller( "ibexa_content:viewAction", {'contentId': ibexa_field_value(content,"mainimage").destinationContentId, 'viewType': 'embed', 'noLayout': true, 'params': {'alias': 'zuk_full_screen_width_full', 'minimalMarkup': 'true', 'srcmedia': 'min-width: 768px'}} ) ) }} {% endif %} {% if not ibexa_field_is_empty( content, 'mainimage_small' ) %} {% endif %}
{% if not ibexa_field_is_empty( content, 'short_name' ) %}

{{ ibexa_field_value(content, 'short_name') }}

{% endif %} {% endblock %} {% block content %}

{{ ibexa_field_value(content, 'name') }}

{{ ibexa_render_field(content, 'description') }}
{{ form_start( eventform, {'class': 'form-search'} ) }}
{{ form_widget( eventform.searchText, { 'attr': {'class': 'form-control border-white'}} ) }}
{{ form_widget( eventform.searchDateBegin, { 'attr': {'class': 'form-control btn btn-secondary ps-1 pe-1 text-start'}} ) }}
{{ form_widget( eventform.searchDateEnd, { 'attr': {'class': 'form-control btn btn-secondary ps-1 pe-1 text-start'}} ) }}
{{ form_widget( eventform.categoryZielgruppe, { 'attr': {'class': 'form-select btn btn-secondary ps-1 pe-1 text-start'}} ) }}
{{ form_widget( eventform.categoryThemen, { 'attr': {'class': 'form-select btn btn-secondary ps-1 pe-1 text-start'}} ) }}
{{ form_end( eventform, {'class': 'form-search'} ) }}
{% if searchText != "" %} {% if events.count > 0 %}

{{ 'zuk.event.serachresultsTitle'|trans }} {{ 'zuk.event.searchFound'|trans({'%1':searchText}) }}

{% include "@ibexadesign/events/latest_events.html.twig" with {'eventList': events, 'lgrows': 4} %} {% else %}

{{ 'zuk.event.serachresultsTitle'|trans }} {{ 'zuk.event.searchNotFound'|trans({'%1':searchText}) }}

{% endif %} {% else %} {% set string = "Filter nach " %} {% set found = false %} {% if eventform.vars.value.searchDateBegin %} {% set found = true %} {% set string = string ~ 'Startdatum, ' %} {% endif %} {% if eventform.vars.value.searchDateEnd %} {% set found = true %} {% set string = string ~ 'Enddatum, ' %} {% endif %} {% if eventform.vars.value.categoryThemen %} {% set found = true %} {% set string = string ~ 'Themen-Kategorie, ' %} {% endif %} {% if eventform.vars.value.categoryZielgruppe %} {% set found = true %} {% set string = string ~ 'Zielgruppe, ' %} {% endif %} {% if found %}

{{string|trim|trim(',') }} {% if events.totalCount == 0 %} {{ 'zuk.event.searchFilterNotFound'|trans }} {% endif %}

{% endif %} {% include "@ibexadesign/events/latest_events.html.twig" with {'eventList': events, 'lgrows': 4} %} {% endif %}
{% endblock %}