templates/Convention/eventplanner.html.twig line 1

Open in your IDE?
  1. {% extends "Layout/default.html.twig" %}
  2. {% block navigation %}
  3.     {{ include('Convention/Includes/header.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.         suffix: '-main-title-block'
  10.     }) }}
  11.     {{ include('Includes/areablock.html.twig', {
  12.         suffix: 'top'
  13.     }) }}
  14.     {% embed 'Includes/editmode-settings.html.twig' %}
  15.         {% block additionalInfo %}
  16.             <div>
  17.                 <label>
  18.                     Number of teaser per page (default 8):
  19.                     {{ pimcore_numeric('teaserPerPage', {
  20.                         reload: true,
  21.                         minValue: 4,
  22.                         maxValue: 24
  23.                     }) }}
  24.                 </label>
  25.             </div>
  26.         {% endblock %}
  27.     {% endembed %}
  28.     <div class="js-ajax-form-map content-block position-relative" data-ajax-form-add-url-params="true" data-form-map-url="{{ document.fullPath }}?pois=1">
  29.         <div aria-live="polite">
  30.             <div class="slide bg-dark-bg content-block">
  31.                 <div class="container container-narrow">
  32.                     {{ include('Includes/title-block-editable.html.twig', {suffix: 'form-head', isCentered: true, isWhite: true}) }}
  33.                     <form action="/404"
  34.                           data-action="{{ app.request.pathInfo }}?ajax=1"
  35.                           class="js-ajax-form-map__form js-form-validation js-conditional-form text-white">
  36.                         {{ include('Form/Includes/select.html.twig', {
  37.                             id: 'convention-partner',
  38.                             inputModifier: "js-floating-label",
  39.                             labelModifier: "floating-label",
  40.                             inputWrapperModifier: "select__input-wrapper position-relative",
  41.                             name: "convention-partner",
  42.                             label: 'eventplanner.Welchen Convention Partner suchen Sie'|trans,
  43.                             options: conventionCategoriesSelect|default([])
  44.                         }) }}
  45.                         <div class="js-conditional-form__part" data-name="convention-partner" data-value="locations" {% if app.request.get('convention-partner') is empty or app.request.get('convention-partner') != 'locations' %}hidden{% endif %}>
  46. {#                            {{ include('Form/Includes/select.html.twig', {#}
  47. {#                                id: "location",#}
  48. {#                                inputModifier: "js-floating-label",#}
  49. {#                                labelModifier: "floating-label",#}
  50. {#                                inputWrapperModifier: "select__input-wrapper position-relative",#}
  51. {#                                name: "location",#}
  52. {#                                label: 'eventplanner.Wo wollen sie Ihre Convention abhalten?'|trans,#}
  53. {#                                options: regionSelect|default([]),#}
  54. {#                            }) }}#}
  55.                             {{ include('Form/Includes/form-control.html.twig', {
  56.                                 id: 'keyword',
  57.                                 value: app.request.get('keyword') ? app.request.get('keyword') : '',
  58.                                 inputModifier: 'js-floating-label',
  59.                                 inputWrapperModifier: 'position-relative',
  60.                                 labelModifier: 'floating-label',
  61.                                 label: 'eventplanner.Stichwortsuche'|trans,
  62.                                 name: 'keyword'
  63.                             }) }}
  64.                             <div class="row">
  65.                                 <div class="col-md-6">
  66.                                     {{ include('Form/Includes/select.html.twig', {
  67.                                         id: 'category',
  68.                                         value:  app.request.get('category') ? app.request.get('category') : '',
  69.                                         inputModifier: "js-floating-label",
  70.                                         labelModifier: "floating-label",
  71.                                         inputWrapperModifier: "select__input-wrapper position-relative",
  72.                                         name: "category",
  73.                                         label: 'eventplanner.Kategorie'|trans,
  74.                                         options: conventionAllCategoriesSelect|default([])
  75.                                     }) }}
  76.                                 </div>
  77.                                 <div class="col-md-6">
  78.                                     {{ include('Form/Includes/form-control.html.twig', {
  79.                                         id: 'participant',
  80.                                         name: 'participant',
  81.                                         value:  app.request.get('participant') ? app.request.get('participant') : '',
  82.                                         inputModifier: 'js-floating-label',
  83.                                         inputWrapperModifier: 'position-relative',
  84.                                         labelModifier: 'floating-label',
  85.                                         label: 'eventplanner.Teilnehmer'|trans,
  86.                                         type: 'number',
  87.                                         required: false
  88.                                     }) }}
  89.                                 </div>
  90.                             </div>
  91.                             <div class="row">
  92.                                 <div class="col-md-6">
  93.                                     {{ include('Form/Includes/form-control.html.twig', {
  94.                                         id: 'seminarrooms',
  95.                                         name: 'seminarrooms',
  96.                                         value:  app.request.get('seminarrooms') ? app.request.get('seminarrooms') : '',
  97.                                         inputModifier: 'js-floating-label',
  98.                                         inputWrapperModifier: 'position-relative',
  99.                                         labelModifier: 'floating-label',
  100.                                         label: 'eventplanner.Raumanzahl'|trans,
  101.                                         type: 'number',
  102.                                         required: false
  103.                                     }) }}
  104.                                 </div>
  105.                                 <div class="col-md-6">
  106.                                     {{ include('Form/Includes/form-control.html.twig', {
  107.                                         id: 'rooms',
  108.                                         name: 'rooms',
  109.                                         value:  app.request.get('rooms') ? app.request.get('rooms') : '',
  110.                                         inputModifier: 'js-floating-label',
  111.                                         inputWrapperModifier: 'position-relative',
  112.                                         labelModifier: 'floating-label',
  113.                                         label: 'eventplanner.Unterkunft: Zimmer'|trans,
  114.                                         type: 'number',
  115.                                         required: false
  116.                                     }) }}
  117.                                 </div>
  118.                                 <fieldset class="mt-3">
  119.                                     <legend class="fz16 font-default-bold">{{ 'eventplanner.Bestuhlung'|trans }}</legend>
  120.                                     <div class="row">
  121.                                         <div class="col-md-4">
  122.                                             {{ include('Form/Includes/checkbox-button.html.twig', {
  123.                                                 "label" : "eventplanner.Bankett"|trans,
  124.                                                 "icon": "bankett",
  125.                                                 "id": "bankett",
  126.                                                 "name": "bankett",
  127.                                                 "checked": app.request.get('bankett') ? true : false,
  128.                                                 "value": '1'
  129.                                             }) }}
  130.                                         </div>
  131.                                         <div class="col-md-4">
  132.                                             {{ include('Form/Includes/checkbox-button.html.twig', {
  133.                                                 "label" : "eventplanner.Theater"|trans,
  134.                                                 "icon": "theater",
  135.                                                 "id": "theater",
  136.                                                 "name": "theater",
  137.                                                 "checked": app.request.get('theater') ? true : false,
  138.                                                 "value": '1'
  139.                                             }) }}
  140.                                         </div>
  141.                                         <div class="col-md-4">
  142.                                             {{ include('Form/Includes/checkbox-button.html.twig', {
  143.                                                 "label" : "eventplanner.Parlament"|trans,
  144.                                                 "icon": "parliament",
  145.                                                 "id": "parliament",
  146.                                                 "name": "parliament",
  147.                                                 "checked": app.request.get('parliament') ? true : false,
  148.                                                 "value": '1'
  149.                                             }) }}
  150.                                         </div>
  151.                                         <div class="col-md-4">
  152.                                             {{ include('Form/Includes/checkbox-button.html.twig', {
  153.                                                 "label" : "eventplanner.U-style"|trans,
  154.                                                 "icon": "u-style",
  155.                                                 "id": "u-style",
  156.                                                 "name": "u-style",
  157.                                                 "checked": app.request.get('u-style') ? true : false,
  158.                                                 "value": '1'
  159.                                             }) }}
  160.                                         </div>
  161.                                         <div class="col-md-4">
  162.                                             {{ include('Form/Includes/checkbox-button.html.twig', {
  163.                                                 "label" : "eventplanner.Empfang"|trans,
  164.                                                 "icon": "cocktail",
  165.                                                 "id": "cocktail",
  166.                                                 "name": "cocktail",
  167.                                                 "checked": app.request.get('cocktail') ? true : false,
  168.                                                 "value": '1'
  169.                                             }) }}
  170.                                         </div>
  171.                                     </div>
  172.                                 </fieldset>
  173.                                 <div class="row mt-4">
  174.                                     <div class="col-auto">
  175.                                         {{ include('Form/Includes/checkbox.html.twig', {
  176.                                             "label" : "eventplanner.Tageslicht"|trans,
  177.                                             "id": "daylight-checkbox",
  178.                                             "name": "daylight-checkbox",
  179.                                             "checked": app.request.get('daylight-checkbox') ? true : false,
  180.                                             "value": "1",
  181.                                         }) }}
  182.                                     </div>
  183.                                     <div class="col-auto">
  184.                                         {{ include('Form/Includes/checkbox.html.twig', {
  185.                                             "label" : "eventplanner.Befahrbar mit PKW"|trans,
  186.                                             "id": "pkw-checkbox",
  187.                                             "name": "pkw-checkbox",
  188.                                             "checked": app.request.get('pkw-checkbox') ? true : false,
  189.                                             "value": "1",
  190.                                         }) }}
  191.                                     </div>
  192.                                 </div>
  193.                             </div>
  194.                         </div>
  195.                         <div class="text-center">
  196.                             <button type="submit" class="btn btn-primary-light">{{ 'eventplanner.Ergebnisse anzeigen'|trans }}</button>
  197.                             <div class="mt-3">
  198.                                 <a href="#" class="link--white text-underline js-ajax-form-map__reset">{{'eventplanner.Filter zurücksetzen'|trans}}</a>
  199.                             </div>
  200.                         </div>
  201.                     </form>
  202.                 </div>
  203.             </div>
  204.             <div class="content-block container">
  205.                 <div class="js-ajax-form-map__notifications mb-3" hidden></div>
  206.                 <div class="js-ajax-form-map__error-area mb-3" hidden>
  207.                     <button class="js-ajax-form-map__retry btn btn-info ml-2">{{ 'eventplanner.Retry'|trans }}</button>
  208.                 </div>
  209.                 {{ include('Includes/loading-overlay.html.twig', {
  210.                     styleModifier: 'js-ajax-form-map__loading'
  211.                 }) }}
  212.                 {{ include('Includes/title-block-editable.html.twig', {
  213.                     isCentered: true
  214.                 }) }}
  215.                 {{ include('Convention/Includes/eventplanner-paging.html.twig', {
  216.                     paginator: paginator
  217.                 }) }}
  218.             </div>
  219.         </div>
  220.     </div>
  221.     {{ include('Includes/areablock.html.twig', {
  222.         suffix: 'bottom'
  223.     }) }}
  224. {% endblock %}
  225.     {% block javascripts %}
  226.         {% if not app.request.get('onlyInlineCss') %}
  227.         {{ include('Layout/includes/encore.html.twig', {
  228.             'staticDebugMode': staticDebugMode,
  229.             'file': 'js/convention'
  230.         }) }}
  231.         {% endif %}
  232.     {% endblock %}