您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

10 行
550B

  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 %}