{# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #}
{# @var field \EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto #}
{# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #}
{# NOTE: the rel="noopener" attr is needed to avoid performance and security issues
(see https://web.dev/external-anchors-use-rel-noopener/) #}
{% if ea.crud.currentAction == 'detail' %}
{{ field.value }}
{% else %}
{{ field.formattedValue }}
{% endif %}