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.
|
- {# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #}
- {# @var field \EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto #}
- {# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #}
- {# this is a bit ugly, but Twig doesn't have a 'is numeric' test #}
-
- {% if field.formattedValue matches '/^\\d+$/' %}
- <span class="badge badge-secondary">{{ field.formattedValue }}</span>
- {% else %}
- {{ field.formattedValue }}
- {% endif %}
|