{% if editmode %}
<div class="edit-box">
<h1>KONFIGURATIONEN FÜR DEN AREABRICK:</h1>
<div class="flex gap-20">
<div class="content flex column gap-20">
<div class="content-box flex gap-20">
<div class="item">
<p class="edit-p">Abstand nach unten wählen:</p>
{{ pimcore_select("MarginBottom", {
"reload": true,
"store": [
["regular", "Normal"],
["half", "1/2"],
["small", "1/4"],
["zero", "kein Abstand"],
],
"defaultValue" : "regular"
}) }}
</div>
</div>
</div>
</div>
</div>
{% endif %}
{% if editmode %}
<section class="full-width-teaser-headline">
<div class="container">
<div class="content-container">
<h2>{{ pimcore_textarea("headline_main",{
"nl2br": true,
"height": 200,
"placeholder": "HAUPT ÜBERSCHRIFT FÜR DIESE AREA"
}) }}
</h2>
</div>
</div>
</section>
{% elseif not editmode and not pimcore_textarea('headline_main').isEmpty() %}
<section class="full-width-teaser-headline">
<div class="container">
<div class="content-container">
<h2>{{ pimcore_textarea('headline_main').getData() | nl2br }}</h2>
</div>
</div>
</section>
{% endif %}
<section class="full-width-teaser {{ pimcore_select('MarginBottom').getData() }}">
{% if editmode %}
<div class="container">
{{ pimcore_relation("Image",{
"types": ["asset"],
"subtypes": {
"asset": ["image"]
}
}) }}
</div>
{% elseif not editmode and not pimcore_relation("Image").isEmpty() %}
<div class="imag-container">
{{ pimcore_relation("Image").getElement().thumbnail('FullWidthTeaser').html({imgAttributes: {
"class": "skew-image"
}}) | raw }}
</div>
{% endif %}
<div class="headline-text">
{% if editmode %}
<p class="zitat-headline">
{{ pimcore_textarea("headline",{
"nl2br": true,
"height": 150,
"class": "zitat-headline",
"placeholder": "Entsorgung ist mehr als ein Arbeitseinsatz. Es ist eine Mission – Im Dienst unserer Kunden und der Umwelt."
}) }}
</p>
{% elseif not editmode and not pimcore_textarea('headline').isEmpty() %}
<h2 class="zitat-headline">{{ pimcore_textarea('headline').getData() | nl2br }}</h2>
{% endif %}
{% if editmode %}
<p class="legend" style="margin-bottom: 0;">
{{ pimcore_textarea("legend",{
"nl2br": true,
"height": 30,
"class": "legend",
"placeholder": "Pascal Weber, Chauffeur"
}) }}
</p>
{% elseif not editmode and not pimcore_textarea('legend').isEmpty() %}
<p class="legend">{{ pimcore_textarea('legend').getData() | nl2br }}</p>
{% endif %}
</div>
</section>