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.

boolean.html.twig 216B

3 年之前
12345678
  1. {% if value is not defined %}
  2. {% set value = field.value %}
  3. {% endif %}
  4. {% if value == 1 %}
  5. <span class="badge badge-success">Oui</span>
  6. {% else %}
  7. <span class="badge badge-danger">Non</span>
  8. {% endif %}