|
123456789101112 |
- {# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #}
- {# @var field \EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto #}
- {# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #}
- {% if 'toMany' == field.customOptions.get('associationType') %}
- <span class="badge badge-secondary">{{ field.formattedValue }}</span>
- {% else %}
- {% if field.customOption('crudControllerFqcn') is not null and field.value is not null%}
- <a href="{{ ea_url_short(field.customOption('crudControllerFqcn'), 'edit', field.value.id) }}">{{ field.formattedValue }}</a>
- {% else %}
- {{ field.formattedValue }}
- {% endif %}
- {% endif %}
|