{# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #} {# @var field \EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto #} {# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #} {% if field.value is not null and field.value.path is not null %} {% set id_modal = 'modal-'~field.value.id %} {% embed "@LcSov/adminlte/embed/modal.twig" %} {% block id %}{{ id_modal }}{% endblock %} {% block size %}modal-xl{% endblock %} {% block title %}{{ field.value.legend ? field.value.legend : 'Image' }}{% endblock %} {% block body %} {% endblock %} {% block footer_wrapper %}{% endblock %} {% endembed %} {% else %}