{%- if editmode -%} {{ pimcore_relations('platesImages', { title: 'Drag and drop the images you want', types: ['asset'], subtypes: ['image'] }) }} {%- else -%} {%- set images = pimcore_relations('platesImages') -%} {%- if not images.empty -%}
{%- for image in images -%}
{{ image.thumbnail('brick-' ~ brick.id).html({ 'disableAutoAlt': true, 'alt': get_image_i18n_alt(image, ''), 'pictureAttributes': { 'class': 'd-block user-select-none pointer-events-none' }, 'imgAttributes': { 'class': 'd-block w-auto object-fit-cover lazyload' } }) | raw }}
{%- endfor -%}
{%- endif -%} {%- endif -%}