{# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #}
{# @var field \EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto #}
{# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #}
{% if ea.crud.currentAction == 'detail' %}
<ul>
{% for item in field.value %}
<li>{{ item }}</li>
{% endfor %}
</ul>
{% else %}
{{ field.formattedValue }}
{% endif %}