您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

13 行
651B

  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 %}