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.

status.html.twig 550B

3 years ago
3 years ago
3 years ago
3 years ago
12345678910
  1. {% import "@LcSov/adminlte/macro/badge.html.twig" as macro %}
  2. {% set status = entity.instance.status %}
  3. {% if status == 'open' %}
  4. {{ macro.badge_success(('entity.Ticket.fields.statusOptions.'~entity.instance.status)|trans({},'admin')) }}
  5. {% elseif status == 'being-processed' %}
  6. {{ macro.badge_warning(('entity.Ticket.fields.statusOptions.'~entity.instance.status)|trans({},'admin')) }}
  7. {% elseif status == 'closed' %}
  8. {{ macro.badge_danger(('entity.Ticket.fields.statusOptions.'~entity.instance.status)|trans({},'admin')) }}
  9. {% endif %}