templates/module/Form/__schnell-anfrage.html.twig line 1

Open in your IDE?
  1. {% if editmode %}
  2.     {{ include('includes/backend-kopf.html.twig') }}
  3.     {% set tabContentArray = {1: 'Optional', 2: 'Zuweisung'} %}
  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.            
  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.              {% endif %} 
  24.             {% if tabContentArray is defined and 2 in tabContentArray|keys %}
  25.                 {{ admin_tabs(2, tabContentArray) | raw }}
  26.                  <section class="tabContent">
  27.                         <strong style="display:block;padding-left:37px;margin-bottom:6px;">Text Button</strong>
  28.                         <div class="schreiben"><span class="parentbox" style="background-color:#fff">
  29.                         {{ pimcore_input("buttontext", {'width': 520}) }}
  30.                         </span></div>
  31.                         <br /><br /><hr /><br /><br />
  32.                         <p class="hl">Bitte Zielseite zuweisen:</p>
  33.                         <div class="dragdrop"><span class="parentbox">
  34.                                 {{ pimcore_relation("zielseite",{
  35.                                     "types": ["document"],
  36.                                     "width": 550,
  37.                                     "reload":false
  38.                                 }) }}
  39.                         </span></div>
  40.                         <br /><br /><br /><br />
  41.                 </section>
  42.             {% endif %}
  43.     </div>
  44.     {{ include('includes/backend-fuss.html.twig') }}
  45. {% else %}
  46.     {% set abstand_top_class = (checkMultiselect(pimcore_multiselect("artikel"),'abstand-top') == true)? ' abstand-top' : '' %}
  47.     {% set abstand_bottom_class = (checkMultiselect(pimcore_multiselect("artikel"),'abstand-bottom') == true)? ' abstand-bottom' : '' %}
  48.     {% set abstandClasses = abstand_top_class ~ abstand_bottom_class %}
  49.     <div class="constrainer-maxsize edgepadding {{ abstandClasses }}">
  50.         <div class="layout-columns-2-multiple centered-vflex">
  51.             <h2 class="font-thin">{{ 'form_headline-schnellanfrage'|trans }}</h2>
  52.             <div>
  53.                 {% set formTemplate =  frontend.formular.formTemplate %}
  54.                 {% if formTemplate is not empty %}
  55.                   {# { include('module/Form/forms/schnellanfrage-home.html.twig', ['frontend': frontend]) }#}
  56.                     {{ include('module/Form/forms/'~ formTemplate, {'frontend': frontend})|raw }}
  57.                 {% endif %}
  58.             </div>
  59.         </div>
  60.     </div>
  61. {% endif %}