You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

association.html.twig 651B

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