{% 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 %}
<section class="image-gallery {{ pimcore_select('MarginBottom').getData() }}">
<div class="container">
<div class="content-container">
{% if editmode %}
{{ pimcore_relations("Gallery", {
"title": "Bilder ablegen",
"types": ["asset"],
"subtypes": {
"asset": ["image"]
}
}) }}
{% elseif not editmode and not pimcore_relations("Gallery").isEmpty() %}
<div class="image-container">
{% for image in pimcore_relations("Gallery") %}
{{ image.thumbnail('NewsDetailGallery').html | raw }}
{% endfor %}
</div>
{% endif %}
</div>
</div>
</section>