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.

field_toggle.html.twig 252B

1234567
  1. {% trans_default_domain 'EasyAdminBundle' %}
  2. {% if value == true %}
  3. <span class="badge badge-success">{{ 'label.true'|trans }}</span>
  4. {% else %}
  5. <span class="badge badge-danger">{{ 'label.false'|trans }}</span>
  6. {% endif %}