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.

14 lines
613B

  1. {% import "@LcSov/adminlte/macro/badge.html.twig" as macro %}
  2. {% if status is not defined %}
  3. {% set status = entity.instance.status %}
  4. {% endif %}
  5. {% if status == 'open' %}
  6. {{ macro.badge_success(status|sov_trans_admin_choice('status','Ticket')) }}
  7. {% elseif status == 'being-processed' %}
  8. {{ macro.badge_warning(status|sov_trans_admin_choice('status','Ticket')) }}
  9. {% elseif status == 'processed' %}
  10. {{ macro.badge_info(status|sov_trans_admin_choice('status','Ticket')) }}
  11. {% elseif status == 'closed' %}
  12. {{ macro.badge_danger(status|sov_trans_admin_choice('status','Ticket')) }}
  13. {% endif %}