{% 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'
}) }}
{% embed 'Includes/editmode-settings.html.twig' %}
{% block additionalInfo %}
<div>
<label>Prefilter by region</label>
{{ pimcore_relation('prefilter-region', {
"types": ["object"],
"subtypes": {
"object": ["object"]
},
"classes": ["Region"]
}) }}
</div>
<div >
<label>Seasons</label>
{{ pimcore_relations('seasons', {
"types": ["object"],
"subtypes": {
"object": ["object"]
},
"classes": ["MediaCategory"]
}) }}
</div>
<div class="mt-2">
<label>Images per page (default 16)</label>
{{ pimcore_numeric('imagesPerPage', {
minValue: 4,
maxValue: 200,
}) }}
</div>
{% endblock %}
{% endembed %}
<div class="content-block container">
<div class="js-ajax-form position-relative mt-5" data-ajax-form-add-url-params="true">
<div aria-live="polite">
<div class="">
{{ include('Includes/title-block.html.twig', {
title: 'press.Nach Bilder suchen'|trans,
isCentered: true,
}) }}
<form action="/404"
data-action="{{ app.request.pathInfo }}?ajax=1&anchor=imagePaging"
class="js-ajax-form__form">
<div class="row justify-content-center">
<div class="col-md-3">
{{ include('Form/Includes/form-control.html.twig', {
id: 'keyword',
name: 'keyword',
value: app.request.get('keyword', ''),
inputModifier: 'js-floating-label',
inputWrapperModifier: 'position-relative',
labelModifier: 'floating-label',
label: 'press.keyword'|trans,
required: false
}) }}
</div>
<div class="col-md-3">
{{ include('InteractiveMap/Partials/filter-dropdown.html.twig', {
inputModifier: '',
inputWrapperModifier: 'position-relative',
labelModifier: 'floating-label',
required: false,
styleModifier: 'mb-3',
label: 'press.Kategorie' | trans,
id: 'category',
required: false,
iconType: null,
options: pressCategories|default([])|slice(1)
}) }}
</div>
<div class="col-md-3">
{{ include('InteractiveMap/Partials/filter-dropdown.html.twig', {
inputModifier: 'js-floating-label',
inputWrapperModifier: 'position-relative',
labelModifier: 'floating-label',
label: 'press.Saison' | trans,
id: 'season',
required: false,
styleModifier: 'form-group--lg filter-dropdown--small-padding',
iconType: null,
dropdownModifier: "filter-dropdown__menu--pos-absolute",
options: seasonSelect|default([])|slice(1)
}) }}
</div>
</div>
<div class="row justify-content-center">
<div class="col-auto">
{{ include('Form/Includes/checkbox.html.twig', {
"label" : "<span class='icon icon-picture-portrait text-primary fz25 mr-2'></span> "~ "press.Hochformat"|trans,
"id": "portrait",
"value":"portrait",
"checked": app.request.get('orientation', true),
"textModifier":"d-flex",
"name": "orientation[]"
}) }}
</div>
<div class="col-auto">
{{ include('Form/Includes/checkbox.html.twig', {
"label" : "<span class='icon icon-picture-landscape text-primary fz25 mr-2'></span> " ~ "press.Querformat"|trans,
"id": "landscape",
"value": "landscape",
"checked": app.request.get('orientation', true),
"textModifier":"d-flex",
"name": "orientation[]"
}) }}
</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">
{{ 'press.Filter zurücksetzen'|trans }}
</a>
</div>
</div>
</form>
<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'}) }}
<div class="js-ajax-form__result">
{% if not paginator|default([]) is empty() %}
{{ include('Press/Includes/pressPictureList.html.twig', {
paginator: paginator,
showFirstLast:true
}) }}
{% endif %}
</div>
</div>
</div>
</div>
</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 %}