statusOptions: | statusOptions: | ||||
open: Ouvert | open: Ouvert | ||||
being-processed: En cours de traitement | being-processed: En cours de traitement | ||||
closed: Fermée | |||||
closed: Fermé | |||||
yourAnswer: Votre réponse | yourAnswer: Votre réponse | ||||
closeTicket: Fermer la demande | closeTicket: Fermer la demande | ||||
Document: | Document: |
{% if value == 'open' %} | |||||
{% set class_badge = 'badge-success' %} | |||||
{% elseif value == 'being-processed' %} | |||||
{% set class_badge = 'badge-warning' %} | |||||
{% elseif value == 'closed' %} | |||||
{% set class_badge = 'badge-secondary' %} | |||||
{% endif %} | |||||
{% if class_badge is defined %} | |||||
<span class="badge {{ class_badge }}"> | |||||
{% set trans_value = 'field.Ticket.statusOptions.'~value %} | |||||
{{ trans_value|trans({}, 'lcshop') }} | |||||
</span> | |||||
{% endif %} |
{% set trans_value = 'field.Ticket.typeOptions.'~value %} | |||||
{{ trans_value|trans({}, 'lcshop') }} |