LSBC/templates/admin/field/file.html.twig

12 lines
374 B
Twig
Raw Normal View History

2023-05-11 17:03:52 +02:00
{# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #}
{# @var field \EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto #}
{# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #}
{% set files = field.formattedValue %}
{% if files is not iterable %}
{% set files = [files] %}
{% endif %}
{% for file in files %}
<span>{{ file }}</span>
{% endfor %}