{% import "admin/Macros/Buttons/_button.html.twig" as button %}
{% for lang in getLangs() %} {% set affiliateLang = affiliates is defined ? getAffiliatesLangs({Affiliates: affiliates, lang: lang.shortTitle}) : {} %}
{% endfor %}
Pasifse görünmeyecektir

{% set files = [] %} {% set langs = [] %} {% for lang in affiliates.langs|default %} {% set key = lang.lang.shortTitle %} {% set langs = langs|merge({(key): lang.alt}) %} {% endfor %} {% for image in affiliates.images()|default([]) %} {% if image.logoName|default %} {% set files = files|merge([{ id: image.id, name: image.logoName, langs: langs, location: asset('media/affiliates/'~image.logoName) }]) %} {% endif %} {% endfor %} {{ include('admin/Common/_dropzone.html.twig', { name: 'logo', labelName: 'Logo', dimensions: '540x540', files: files, options: {acceptedFiles: 'image/jpeg'} }, with_context = false) }}
{% set files = [] %} {% set langs = [] %} {% for lang in affiliates.langs|default %} {% set key = lang.lang.shortTitle %} {% set langs = langs|merge({(key): lang.alt}) %} {% endfor %} {% for image in affiliates.images()|default([]) %} {% if image.imageName|default %} {% set files = files|merge([{ id: image.id, name: image.imageName, langs: langs, location: asset('media/affiliates/'~image.imageName) }]) %} {% endif %} {% endfor %} {{ include('admin/Common/_dropzone.html.twig', { name: 'image', labelName: 'Resim', dimensions: '540x540', files: files, options: {acceptedFiles: 'image/jpeg'} }, with_context = false) }}