templates/areas/AccordionTextWysiwyg/view.html.twig line 1

Open in your IDE?
  1. {% if editmode %}
  2.     <div class="areablock-main">
  3.           <div class="areablock-title area-box-padding">
  4.               Tabellen-Object einbinden
  5.           </div>
  6.           <div class="areablock-body area-box-padding">
  7.               <p class="hl" style="display: inline-block;text-indent: 37px;">Title Accordion:</p>
  8.               <div class="schreiben">
  9.                   <span class="parentbox">
  10.                       {{ pimcore_input("Accordiontitle", {'width': 725}) }}
  11.                   </span>
  12.               </div>
  13.               <p class="hl" style="display: inline-block;text-indent: 37px;">Aufgeklappter-Text:</p>
  14.                 <div class="schreiben"><span class="parentbox" style="background-color:#fff">
  15.                         {{ pimcore_wysiwyg('text-wysiwyg-top', {
  16.                                 "height": 80,
  17.                                 "width": 735,
  18.                                 "customConfig": '/bundles/app/static/backend/js/ckeditor/documents/text-wysiwyg.js'
  19.                             })
  20.                         }}
  21.                     </span></div>
  22.               <br /><br /><br />
  23.               <p class="hl" style="display: inline-block;text-indent: 37px;">Bitte (einzel) Tabellen-Object zuweisen:</p>
  24.               <div class="dragdrop">
  25.                   <span class="parentboxhref">
  26.                       {{ pimcore_relation("TableObject",{
  27.                             "types": ["object"],
  28.                             "subtypes": {
  29.                                 "object": ["object"],
  30.                             },
  31.                             "classes": ["preistabellen"],
  32.                             "width": 735,
  33.                         }) }}
  34.                   </span>
  35.               </div>
  36.               <br /><br /><br />
  37.               <p class="hl" style="display: inline-block;text-indent: 37px;">Optionaler Text unter Tabelle:</p>
  38.                 <div class="schreiben"><span class="parentbox" style="background-color:#fff">
  39.                     {{ pimcore_wysiwyg('text-wysiwyg-bottom', {
  40.                                 "height": 80,
  41.                                 "width": 735,
  42.                                 "customConfig": '/bundles/app/static/backend/js/ckeditor/documents/text-wysiwyg.js'
  43.                             })
  44.                         }}
  45.                     </span>
  46.                 </div>
  47.           </div>
  48.       </div>
  49. {% else %}
  50.     {% set triggerID = random() %}
  51.     <div class="bellows-tab" data-bellow-trigger="{{ triggerID }}">
  52.         <figure class="bellows-sign">
  53.             <img class="bellow-sign-open" src="/bundles/app/static/frontend/images/icons/accordion_auf.svg" alt=""/>
  54.             <img class="bellow-sign-closed" src="/bundles/app/static/frontend/images/icons/accordion_zu.svg" alt=""/>
  55.         </figure>
  56.         <h5 class="font-bold">{{ pimcore_input("Accordiontitle") }}</h5>
  57.     </div>
  58.     <div class="bellows-content" data-bellow="{{ triggerID }}">
  59.         {{ pimcore_wysiwyg("text-wysiwyg-top") | raw }}
  60.     </div>
  61.     
  62.     {% set spalten_str = "" %}
  63.     {% if pimcore_relation("TableObject").isEmpty() == false %}
  64.         {% set lang = document.getProperty('language') %}
  65.         {% set tableObjId = pimcore_relation("TableObject").getId() %}
  66.         {% set tblObj = pimcore_object(tableObjId) %}
  67.         {% set spalten_str = attribute(tblObj, 'getSpalten_str') is defined ? tblObj.getSpalten_str()|trim : '' %}
  68.         {{ table_data(tableObjId, spalten_str, lang) |raw }}
  69.     {% endif %}
  70. {% endif %}