templates/module/Form/__newsletter-bestellen.html.twig line 1

Open in your IDE?
  1. {% if editmode %}
  2.     {{ include('includes/backend-kopf.html.twig') }}
  3.     {% set tabContentArray = {1: 'Optional'} %}
  4.     {% set tab = 1 %}
  5.     <div id="content">        
  6.             {% if tabContentArray is defined and tab in tabContentArray|keys %}
  7.                 {{ admin_tabs(tab, tabContentArray) | raw }}
  8.             {% endif %} 
  9.             <section class="tabContent">
  10.                 <p class="hl">Optionale Einstellung:</p>
  11.                 {% set element = 'artikel' %}
  12.                 <div id="{{ element }} ">
  13.                     {{ pimcore_multiselect(element, {
  14.                             'width': 200,
  15.                             'height': 100,
  16.                             'store': [
  17.                                 ['abstand-top', 'Abstand nach oben'],
  18.                                 ['abstand-bottom', 'Abstand nach unten']
  19.                             ]
  20.                         }) }}
  21.                 </div>
  22.             </section>
  23.     </div>
  24.     {{ include('includes/backend-fuss.html.twig') }}
  25. {% else %}
  26.     {% set abstand_top_class = (checkMultiselect(pimcore_multiselect("artikel"),'abstand-top') == true)? ' abstand-top' : '' %}
  27.     {% set abstand_bottom_class = (checkMultiselect(pimcore_multiselect("artikel"),'abstand-bottom') == true)? ' abstand-bottom' : '' %}
  28.     {% set abstandClasses = abstand_top_class ~ abstand_bottom_class %}
  29.         <div class="constrainer-maxsize edgepadding {{ abstandClasses }}">
  30.                 {% set formTemplate =  frontend.formular.formTemplate %}
  31.                 {% if formTemplate is not empty %}
  32.                   {# { include('module/Form/forms/schnellanfrage-home.html.twig', ['frontend': frontend]) }#}
  33.                     {% include 'module/Form/forms/'~formTemplate with {'frontend': frontend} %}
  34.                 {% endif %}
  35.             </div>
  36. {% endif %}