templates/Press/pictureOverview.html.twig line 1

Open in your IDE?
  1. {% extends "Layout/default.html.twig" %}
  2. {% block navigation %}
  3.     {{ include('Press/Includes/pressHeader.html.twig') }}
  4. {% endblock %}
  5. {% block content %}
  6.     {{ include('Content/includes/hero.html.twig') }}
  7.     {{ include('Navigation/breadcrumb.html.twig') }}
  8.     {{ include('Includes/main-title-block-splitted-editable.html.twig') }}
  9.     {{ include('Includes/areablock.html.twig', {
  10.         suffix: 'top'
  11.     }) }}
  12.     {% embed 'Includes/editmode-settings.html.twig' %}
  13.         {% block additionalInfo %}
  14.             <div>
  15.                 <label>Prefilter by region</label>
  16.                 {{ pimcore_relation('prefilter-region', {
  17.                     "types": ["object"],
  18.                     "subtypes": {
  19.                         "object": ["object"]
  20.                     },
  21.                     "classes": ["Region"]
  22.                 }) }}
  23.             </div>
  24.             <div >
  25.                 <label>Seasons</label>
  26.                 {{ pimcore_relations('seasons', {
  27.                     "types": ["object"],
  28.                     "subtypes": {
  29.                         "object": ["object"]
  30.                     },
  31.                     "classes": ["MediaCategory"]
  32.                 }) }}
  33.             </div>
  34.             <div class="mt-2">
  35.                 <label>Images per page (default 16)</label>
  36.                 {{ pimcore_numeric('imagesPerPage', {
  37.                     minValue: 4,
  38.                     maxValue: 200,
  39.                 }) }}
  40.             </div>
  41.         {% endblock %}
  42.     {% endembed %}
  43.     <div class="content-block container">
  44.         <div class="js-ajax-form position-relative mt-5" data-ajax-form-add-url-params="true">
  45.             <div aria-live="polite">
  46.                 <div class="">
  47.                     {{ include('Includes/title-block.html.twig', {
  48.                         title: 'press.Nach Bilder suchen'|trans,
  49.                         isCentered: true,
  50.                     }) }}
  51.                     <form action="/404"
  52.                           data-action="{{ app.request.pathInfo }}?ajax=1&anchor=imagePaging"
  53.                           class="js-ajax-form__form">
  54.                         <div class="row justify-content-center">
  55.                             <div class="col-md-3">
  56.                                 {{ include('Form/Includes/form-control.html.twig', {
  57.                                     id: 'keyword',
  58.                                     name: 'keyword',
  59.                                     value:  app.request.get('keyword', ''),
  60.                                     inputModifier: 'js-floating-label',
  61.                                     inputWrapperModifier: 'position-relative',
  62.                                     labelModifier: 'floating-label',
  63.                                     label: 'press.keyword'|trans,
  64.                                     required: false
  65.                                 }) }}
  66.                             </div>
  67.                             <div class="col-md-3">
  68.                                 {{ include('InteractiveMap/Partials/filter-dropdown.html.twig', {
  69.                                     inputModifier: '',
  70.                                     inputWrapperModifier: 'position-relative',
  71.                                     labelModifier: 'floating-label',
  72.                                     required: false,
  73.                                     styleModifier: 'mb-3',
  74.                                     label: 'press.Kategorie' | trans,
  75.                                     id: 'category',
  76.                                     required: false,
  77.                                     iconType: null,
  78.                                     options: pressCategories|default([])|slice(1)
  79.                                 }) }}
  80.                             </div>
  81.                             <div class="col-md-3">
  82.                                 {{ include('InteractiveMap/Partials/filter-dropdown.html.twig', {
  83.                                     inputModifier: 'js-floating-label',
  84.                                     inputWrapperModifier: 'position-relative',
  85.                                     labelModifier: 'floating-label',
  86.                                     label: 'press.Saison' | trans,
  87.                                     id: 'season',
  88.                                     required: false,
  89.                                     styleModifier: 'form-group--lg filter-dropdown--small-padding',
  90.                                     iconType: null,
  91.                                     dropdownModifier: "filter-dropdown__menu--pos-absolute",
  92.                                     options: seasonSelect|default([])|slice(1)
  93.                                 }) }}
  94.                             </div>
  95.                         </div>
  96.                         <div class="row justify-content-center">
  97.                             <div class="col-auto">
  98.                                 {{ include('Form/Includes/checkbox.html.twig', {
  99.                                     "label" : "<span class='icon icon-picture-portrait text-primary fz25 mr-2'></span> "~ "press.Hochformat"|trans,
  100.                                     "id": "portrait",
  101.                                     "value":"portrait",
  102.                                     "checked": app.request.get('orientation', true),
  103.                                     "textModifier":"d-flex",
  104.                                     "name": "orientation[]"
  105.                                 }) }}
  106.                             </div>
  107.                             <div class="col-auto">
  108.                                 {{ include('Form/Includes/checkbox.html.twig', {
  109.                                     "label" : "<span class='icon icon-picture-landscape text-primary fz25 mr-2'></span> " ~ "press.Querformat"|trans,
  110.                                     "id": "landscape",
  111.                                     "value": "landscape",
  112.                                     "checked": app.request.get('orientation', true),
  113.                                     "textModifier":"d-flex",
  114.                                     "name": "orientation[]"
  115.                                 }) }}
  116.                             </div>
  117.                         </div>
  118.                         <div class="text-center">
  119.                             <button type="submit" class="btn btn-primary-light">{{ 'press.Ergebnisse anzeigen'|trans }}</button>
  120.                             <div class="mt-3">
  121.                                 <a href="#" class="text-primary-light text-underline js-ajax-form__reset">
  122.                                     {{ 'press.Filter zurücksetzen'|trans }}
  123.                                 </a>
  124.                             </div>
  125.                         </div>
  126.                     </form>
  127.                     <div class="mt-5">
  128.                         <div class="js-ajax-form__notifications mb-3" hidden></div>
  129.                         <div class="js-ajax-form__error-area mb-3" hidden>
  130.                             <button class="js-ajax-form__retry btn btn-info ml-2">{{ 'ajax.Retry'|trans }}</button>
  131.                         </div>
  132.                         {{ include('Includes/loading-overlay.html.twig', {styleModifier: 'js-ajax-form__loading'}) }}
  133.                         <div class="js-ajax-form__result">
  134.                             {% if not paginator|default([]) is empty() %}
  135.                                 {{ include('Press/Includes/pressPictureList.html.twig', {
  136.                                     paginator: paginator,
  137.                                     showFirstLast:true
  138.                                 }) }}
  139.                             {% endif %}
  140.                         </div>
  141.                     </div>
  142.                 </div>
  143.             </div>
  144.         </div>
  145.     </div>
  146.     {{ include('Includes/areablock.html.twig', {
  147.         suffix: 'bottom'
  148.     }) }}
  149. {% endblock %}
  150.     {% block javascripts %}
  151.         {% if not app.request.get('onlyInlineCss') %}
  152.         {{ include('Layout/includes/encore.html.twig', {
  153.             'staticDebugMode': staticDebugMode,
  154.             'file': 'js/press'
  155.         }) }}
  156.         {% endif %}
  157.     {% endblock %}