templates/Convention/Includes/wishlist.html.twig line 1

Open in your IDE?
  1. <div class="content-block js-pool-enquiry"
  2.      data-pool-enquiry-session-storage-name="convention-wishlist"
  3.      data-pool-enquiry-max-items="20"
  4. >
  5.     <div class="content-block container">
  6.         <form data-action="{{ app.request.pathInfo }}" action="/404" class="js-action-changer">
  7.             <input type="hidden" id="removeAllFromWishlist" name="removeAllFromWishlist" />
  8.             <button type="submit" class="link btn-no-styling mb-3 d-flex">
  9.                 <span class="icon icon-delete mr-1 fz16" aria-hidden="true"></span>
  10.                 <span class="text-underline">{{'convention-wishlist.komplette Merkiste löschen'|trans}}</span>
  11.             </button>
  12.         </form>
  13.         <div class="flatrate-teaser-row">
  14.             <div class="row scrolling-row">
  15.                 {% for partner in partners|default([]) %}
  16.                     <div class="col-md-3 col-10 scrolling-row__item js-wishlist__container" data-wishlist-id="{{ partner.id }}" data-wishlist-list-name="default-wishlist">
  17.                         {% set wysiwyg = '<ul>' %}
  18.                         {% for bulletpoint in partner.teaserBullets %}
  19.                             {% set wysiwyg = wysiwyg ~ '<li>'  ~ bulletpoint.item.data ~ '</li>' %}
  20.                         {% endfor %}
  21.                         {% set wysiwyg = wysiwyg ~ '</ul>' %}
  22.                         {% set inSession = partner.id in app.session.get('wishlistIds') %}
  23.                         {{ include('Includes/Teaser/flatrate-teaser.html.twig', {
  24.                             isSmallTeaser: true,
  25.                             badgeText: partner.city,
  26.                             image: partner.teaserimage,
  27.                             title: partner.name,
  28.                             wysiwyg: wysiwyg,
  29.                             link: linkGenerator().generate(partner),
  30.                             linktext: 'eventplanner.Mehr Erfahren'|trans,
  31.                             removeFromWishlist: true,
  32.                             hasEnquiryButton: true,
  33.                             isBadgeWhite: true,
  34.                             hasWishlist:false,
  35.                             id: partner.id,
  36.                             trackingAction: 'ConventionPartner'
  37.                         }) }}
  38.                     </div>
  39.                 {% endfor %}
  40.             </div>
  41.         </div>
  42.     </div>
  43.     <div class="slide bg-dark-bg content-block text-white">
  44.         <div class="container container-narrow">
  45.             {{ include('Includes/title-block-editable.html.twig', {
  46.                 suffix: '-wishlist-partner-contact',
  47.                 isCentered: true,
  48.                 isWhite:  true,
  49.                 styleModifier: 'js-fade-in'
  50.             }) }}
  51.             <div class="">
  52.                 <h3 class="mb-3"><span class="js-pool-enquiry__counter">0</span> {{ 'convention-wishlist.Anfragen'|trans }}</h3>
  53.                 <div class="js-pool-enquiry__selection-view" data-pool-enquiry-view="result"></div>
  54.             </div>
  55.             <form action="/404" data-action="{{ app.request.pathInfo }}" method="post" class="js-action-changer js-pool-enquiry__submit-form js-form-validation mt-5 text-white">
  56.                 <input type="hidden" name="isSend" value="1">
  57.                 <div class="js-pool-enquiry__selection-view" data-pool-enquiry-view="inputs"></div>
  58.                 <div class="row js-datepicker-range">
  59.                     <div class="col-6">
  60.                         {{ include('Form/Includes/date-picker.html.twig', {
  61.                             "id": "arrival",
  62.                             "name": "arrival",
  63.                             "label": "convention-detail.Anreise"|trans,
  64.                             "min": carbon().today().toDateTimeString(),
  65.                             "value": app.request.get('arrival') is defined and not app.request.get('arrival') is empty ? (carbon().createFromFormat('Y-m-d H:i:s',  app.request.get('arrival')|replace({'T': ' '})) ) : carbon().today().toDateTimeString(),
  66.                             "numberOfMonths": 2,
  67.                             "styleModifier": 'js-datepicker-range__from form-group--sm',
  68.                             "inputHiddenModifier": "js-floating-label",
  69.                             "inputWrapperModifier": "position-relative datepicker-container",
  70.                             "labelModifier": "floating-label",
  71.                             errors: errors['anreise'] is defined ? [errors['anreise']] : null,
  72.                         }) }}
  73.                     </div>
  74.                     <div class="col-6">
  75.                         {{ include('Form/Includes/date-picker.html.twig', {
  76.                             "id": "departure",
  77.                             "name": "departure",
  78.                             "label": "convention-detail.Abreise"|trans,
  79.                             "value": app.request.get('departure') is defined and not app.request.get('departure') is empty ? (carbon().createFromFormat('Y-m-d H:i:s',  app.request.get('departure')|replace({'T': ' '})) ) : carbon().today().addDays(4).toDateTimeString(),
  80.                             "min": carbon().today().toDateTimeString(),
  81.                             "numberOfMonths": 2,
  82.                             "styleModifier": "js-datepicker-range__to form-group--sm",
  83.                             "inputHiddenModifier": "js-floating-label",
  84.                             "inputWrapperModifier": "position-relative datepicker-container",
  85.                             "labelModifier": "floating-label",
  86.                             errors: errors['abreise'] is defined ? [errors['abreise']] : null,
  87.                         }) }}
  88.                     </div>
  89.                     <div class="col-md-6">
  90.                         {{ include('Form/Includes/form-control.html.twig', {
  91.                             id: 'company',
  92.                             name: 'company',
  93.                             value: app.request.get('company') is defined ? app.request.get('company') : '',
  94.                             inputModifier: 'js-floating-label',
  95.                             inputWrapperModifier: 'position-relative',
  96.                             labelModifier: 'floating-label',
  97.                             label: 'convention-detail.Firma'|trans,
  98.                             required: true,
  99.                             errors: errors['company'] is defined ? [errors['company']] : null,
  100.                         }) }}
  101.                     </div>
  102.                     <div class="col-md-6">
  103.                         {{ include('Form/Includes/form-control.html.twig', {
  104.                             id: 'participants',
  105.                             name: 'participants',
  106.                             value: app.request.get('participants') is defined ? app.request.get('participants') : '',
  107.                             inputModifier: 'js-floating-label',
  108.                             inputWrapperModifier: 'position-relative',
  109.                             labelModifier: 'floating-label',
  110.                             label: 'convention-detail.Teilnehmer'|trans,
  111.                             type: 'number',
  112.                             required: true,
  113.                             errors: errors['participants'] is defined ? [errors['participants']] : null,
  114.                         }) }}
  115.                     </div>
  116.                     <div class="col-md-6">
  117.                         {{ include('Form/Includes/select.html.twig', {
  118.                             id: 'salutation',
  119.                             inputModifier: "js-floating-label",
  120.                             labelModifier: "floating-label",
  121.                             inputWrapperModifier: "select__input-wrapper position-relative",
  122.                             name: "salutation",
  123.                             required: true,
  124.                             label: 'convention-detail.Anrede'|trans,
  125.                             styleModifier: 'form-group--sm',
  126.                             options: [
  127.                                 {
  128.                                     "label": "",
  129.                                     "value": "",
  130.                                     "disabled": true,
  131.                                     "selected": not app.request.get('salutation') is defined,
  132.                                     "class": "sr-only"
  133.                                 }, {
  134.                                     "label": 'convention-detail.Frau'|trans,
  135.                                     "value": 'convention-detail.Frau'|trans,
  136.                                     "class": '',
  137.                                     "selected": app.request.get('salutation') is defined and app.request.get('salutation') == 'convention-detail.Frau'|trans,
  138.                                 }, {
  139.                                     "label": 'convention-detail.Herr'|trans,
  140.                                     "value": 'convention-detail.Herr'|trans,
  141.                                     "class": "",
  142.                                     "selected": app.request.get('salutation') is defined and app.request.get('salutation') == 'convention-detail.Herr'|trans,
  143.                                 },],
  144.                             errors: errors['salutation'] is defined ? [errors['salutation']] : null,
  145.                         }) }}
  146.                     </div>
  147.                     <div class="col-md-6">
  148.                         {{ include('Form/Includes/form-control.html.twig', {
  149.                             id: 'title',
  150.                             name: 'title',
  151.                             value: app.request.get('title') is defined ? app.request.get('title') : '',
  152.                             inputModifier: 'js-floating-label',
  153.                             inputWrapperModifier: 'position-relative',
  154.                             labelModifier: 'floating-label',
  155.                             label: 'convention-detail.Titel'|trans,
  156.                             required: false,
  157.                             errors: errors['title'] is defined ? [errors['title']] : null,
  158.                         }) }}
  159.                     </div>
  160.                     <div class="col-md-6">
  161.                         {{ include('Form/Includes/form-control.html.twig', {
  162.                             id: 'firstname',
  163.                             name: 'firstname',
  164.                             value: app.request.get('firstname') is defined ? app.request.get('firstname') : '',
  165.                             inputModifier: 'js-floating-label',
  166.                             inputWrapperModifier: 'position-relative',
  167.                             labelModifier: 'floating-label',
  168.                             label: 'convention-detail.Vorname'|trans,
  169.                             required: true,
  170.                             errors: errors['firstname'] is defined ? [errors['firstname']] : null,
  171.                         }) }}
  172.                     </div>
  173.                     <div class="col-md-6">
  174.                         {{ include('Form/Includes/form-control.html.twig', {
  175.                             id: 'lastname',
  176.                             name: 'lastname',
  177.                             value: app.request.get('lastname') is defined ? app.request.get('lastname') : '',
  178.                             inputModifier: 'js-floating-label',
  179.                             inputWrapperModifier: 'position-relative',
  180.                             labelModifier: 'floating-label',
  181.                             label: 'convention-detail.Nachname'|trans,
  182.                             required: true,
  183.                             errors: errors['lastname'] is defined ? [errors['lastname']] : null,
  184.                         }) }}
  185.                     </div>
  186.                     <div class="col-md-6">
  187.                         {{ include('Form/Includes/form-control.html.twig', {
  188.                             id: 'street',
  189.                             name: 'street',
  190.                             value: app.request.get('street') is defined ? app.request.get('street') : '',
  191.                             inputModifier: 'js-floating-label',
  192.                             inputWrapperModifier: 'position-relative',
  193.                             labelModifier: 'floating-label',
  194.                             label: 'convention-detail.Straße'|trans,
  195.                             required: true,
  196.                             errors: errors['street'] is defined ? [errors['street']] : null,
  197.                         }) }}
  198.                     </div>
  199.                     <div class="col-md-2">
  200.                         {{ include('Form/Includes/form-control.html.twig', {
  201.                             id: 'zip',
  202.                             name: 'zip',
  203.                             value: app.request.get('zip') is defined ? app.request.get('zip') : '',
  204.                             inputModifier: 'js-floating-label',
  205.                             inputWrapperModifier: 'position-relative',
  206.                             labelModifier: 'floating-label',
  207.                             label: 'convention-detail.PLZ'|trans,
  208.                             required: true,
  209.                             errors: errors['zip'] is defined ? [errors['zip']] : null,
  210.                         }) }}
  211.                     </div>
  212.                     <div class="col-md-4">
  213.                         {{ include('Form/Includes/form-control.html.twig', {
  214.                             id: 'city',
  215.                             name: 'city',
  216.                             value: app.request.get('city') is defined ? app.request.get('city') : '',
  217.                             inputModifier: 'js-floating-label',
  218.                             inputWrapperModifier: 'position-relative',
  219.                             labelModifier: 'floating-label',
  220.                             label: 'convention-detail.Ort'|trans,
  221.                             required: true,
  222.                             errors: errors['city'] is defined ? [errors['city']] : null,
  223.                         }) }}
  224.                     </div>
  225.                     <div class="col-md-12">
  226.                         {{ include('Form/Includes/select.html.twig', {
  227.                             id: 'country',
  228.                             inputModifier: "js-floating-label",
  229.                             labelModifier: "floating-label",
  230.                             inputWrapperModifier: "select__input-wrapper position-relative",
  231.                             name: "country",
  232.                             required: true,
  233.                             label: 'convention-detail.Land'|trans,
  234.                             styleModifier: 'form-group--sm',
  235.                             options: getCountrySelectData(app.request.locale, app.request.get('phone') is defined ? app.request.get('phone') : ''),
  236.                             errors: errors['country'] is defined ? [errors['country']] : null,
  237.                         }) }}
  238.                     </div>
  239.                     <div class="col-md-6">
  240.                         {{ include('Form/Includes/form-control.html.twig', {
  241.                             id: 'phone',
  242.                             name: 'phone',
  243.                             value: app.request.get('phone') is defined ? app.request.get('phone') : '',
  244.                             inputModifier: 'js-floating-label',
  245.                             inputWrapperModifier: 'position-relative',
  246.                             labelModifier: 'floating-label',
  247.                             label: 'convention-detail.Telefon'|trans,
  248.                             required: true,
  249.                             errors: errors['phone'] is defined ? [errors['phone']] : null,
  250.                         }) }}
  251.                     </div>
  252.                     <div class="col-md-6">
  253.                         {{ include('Form/Includes/form-control.html.twig', {
  254.                             id: 'email',
  255.                             name: 'email',
  256.                             value: app.request.get('email') is defined ? app.request.get('email') : '',
  257.                             inputModifier: 'js-floating-label',
  258.                             inputWrapperModifier: 'position-relative',
  259.                             labelModifier: 'floating-label',
  260.                             label: 'convention-detail.E-Mmail'|trans,
  261.                             required: true,
  262.                             errors: errors['email'] is defined ? [errors['email']] : null,
  263.                         }) }}
  264.                     </div>
  265.                     <div class="col-12">
  266.                         {{ include('Form/Includes/radio-group.html.twig', {
  267.                             "title": "convention-detail.Wie möchten Sie kontaktiert werden?"|trans,
  268.                             "titleStyleModifier": "h6",
  269.                             "id": "contactType",
  270.                             "name": "contactType",
  271.                             "options": [
  272.                                 {
  273.                                     "label": "convention-detail.per Telefon"|trans,
  274.                                     "value": "1",
  275.                                     checked: app.request.get('contactType') is defined and app.request.get('contactType') == '1',
  276.                                 }, {
  277.                                     "label": "convention-detail.per E-mail"|trans,
  278.                                     "value": "2",
  279.                                     checked: app.request.get('contactType') is defined and app.request.get('contactType') == '2',
  280.                                 }
  281.                             ]
  282.                         }) }}
  283.                     </div>
  284.                     <div class="col-12">
  285.                         {{ include('Form/Includes/text-area.html.twig', {
  286.                             id: 'message',
  287.                             name: 'message',
  288.                             value: app.request.get('message') is defined ? app.request.get('message') : '',
  289.                             inputModifier: 'js-floating-label',
  290.                             inputWrapperModifier: 'position-relative',
  291.                             labelModifier: 'floating-label',
  292.                             label: 'convention-detail.Ihre Nachricht'|trans,
  293.                             required: false
  294.                         }) }}
  295.                     </div>
  296.                 </div>
  297.                 <div class="text-right small mb-1">
  298.                     *{{'convention-detail.Pflichtfelder'|trans}}
  299.                 </div>
  300.                 <div>{{ 'convention-detail.Ich stimme den <a href="#">Datenschutzbestimmungen</a> zu.'|trans|raw }}</div>
  301.                 <div class="text-center mt-4">
  302.                     <button type="submit" class="btn btn-primary-light">{{'convention-detail.Kontaktanfrage sende'|trans}}</button>
  303.                 </div>
  304.             </form>
  305.         </div>
  306.     </div>
  307. </div>