{% extends "Layout/default.html.twig" %}
{% block navigation %}
{{ include('Press/Includes/pressHeader.html.twig') }}
{% endblock %}
{% block content %}
{{ include('Content/includes/hero.html.twig') }}
{{ include('Navigation/breadcrumb.html.twig') }}
{{ include('Includes/main-title-block-splitted-editable.html.twig') }}
{{ include('Includes/areablock.html.twig', {
suffix: 'top'
}) }}
{% set filterTab = app.request.get('tab', 'latest') %}
{% set items = [
{
"id": "latest-tab",
"text": "press.Aktuelles"|trans,
"href": "#latest",
"isActive": filterTab == 'latest',
"targetId": "latest",
showFilter: false,
pageName: "pageLatest",
ajaxPaging: false,
},
{
"id": "az-tab",
"text": "press.A-Z"|trans,
"href": "#az",
"isActive": filterTab == 'az',
"targetId": "az",
showFilter: true,
pageName: "pageAZ",
ajaxPaging: true
},
{
"id": "numbers-company-tab",
"text": "press.Zahlen & Unternehmen"|trans,
"href": "#numbersCompany",
"isActive": filterTab == 'numbersCompany',
"targetId": "numbersCompany",
showFilter: false,
pageName: "pageCompany",
ajaxPaging: true
},
{
"id": "topicscollection-tab",
"text": "press.Themensammlungen"|trans,
"href": "#topicscollection",
"isActive": filterTab == 'topicscollection',
"targetId": "topicscollection",
pageName: "pageTopics"
}
] %}
<div class="content-block container">
{{ include('Includes/tabs.html.twig', {
"items": items
}) }}
<div class="tab-content" role="tabpanel">
{% for item in items %}
<div class="tab-pane fade {{ item.isActive ? 'show active' : '' }}" id="{{ item.targetId }}"
aria-labelledby="{{ item.id }}">
{% if item.targetId == 'topicscollection' %}
{{ include('Press/Includes/pressTopicsList.html.twig', {
items: dossierList,
}) }}
{% else %}
<div class="js-ajax-form position-relative mt-5" data-ajax-form-add-url-params="true">
<div aria-live="polite">
<div class="">
{% if item.showFilter %}
<form action="/404"
data-action="{{ app.request.pathInfo }}?ajax"
class="js-ajax-form__form">
<input type="text" name="tab" value="{{ item.targetId }}" hidden>
<div class="row justify-content-center">
<div class="col-md-3">
{{ include('Form/Includes/select.html.twig', {
id: 'category',
inputModifier: "js-floating-label",
labelModifier: "floating-label",
inputWrapperModifier: "select__input-wrapper position-relative",
name: "category",
label: 'press.Kategorie'|trans,
styleModifier: 'form-group--lg',
options: categoriesDropdownItems|default([])
}) }}
</div>
<div class="col-md-3">
{{ include('Form/Includes/form-control.html.twig', {
id: 'keyword',
inputModifier: 'js-floating-label',
inputWrapperModifier: 'position-relative',
labelModifier: 'floating-label',
label: 'press.Stichwortsuche'|trans,
styleModifier: 'form-group--lg',
name: 'keyword',
value: app.request.get('keyword', '')
}) }}
</div>
</div>
<div class="text-center">
<button type="submit" class="btn btn-primary-light">{{ 'press.Ergebnisse anzeigen'|trans }}</button>
<div class="mt-3">
<a href="#" class="text-primary-light text-underline js-ajax-form__reset" data-reset-name="category, keyword">
{{ 'press.Filter zurücksetzen'|trans }}
</a>
</div>
</div>
</form>
{% endif %}
<div class="mt-5">
<div class="js-ajax-form__notifications mb-3" hidden></div>
<div class="js-ajax-form__error-area mb-3" hidden>
<button class="js-ajax-form__retry btn btn-info ml-2">{{ 'ajax.Retry'|trans }}</button>
</div>
{{ include ('Includes/loading-overlay.html.twig', {styleModifier: 'js-ajax-form__loading'}) }}
{% if item.targetId == 'latest' %}
{% set paginator = latestPaginator %}
{% elseif item.targetId == 'numbersCompany' %}
{% set paginator = companyPaginator %}
{% else %}
{% set paginator = allPaginator %}
{% endif %}
<div class="js-ajax-form__result">
{{ include('Press/Includes/pressOverviewList.html.twig', {
paginator: paginator,
activePressArticlesWishlistIds: activePressArticlesWishlistIds|default([]),
pageName: item.pageName,
ajaxPaging: item.ajaxPaging
}) }}
</div>
</div>
</div>
</div>
</div>
{% endif %}
</div>
{% endfor %}
</div>
</div>
{{ include('Includes/areablock.html.twig', {
suffix: 'bottom'
}) }}
{% endblock %}
{% block javascripts %}
{% if not app.request.get('onlyInlineCss') %}
{{ include('Layout/includes/encore.html.twig', {
'staticDebugMode': staticDebugMode,
'file': 'js/press'
}) }}
{% endif %}
{% endblock %}