Browse Source

[Backend] Tickets : mise en page

feature/export_comptable
Guillaume 4 years ago
parent
commit
4c6f84328f
3 changed files with 17 additions and 1 deletions
  1. +1
    -1
      ShopBundle/Resources/translations/lcshop.fr.yaml
  2. +14
    -0
      ShopBundle/Resources/views/backend/default/list-fields/field_ticket_status.html.twig
  3. +2
    -0
      ShopBundle/Resources/views/backend/default/list-fields/field_ticket_type.html.twig

+ 1
- 1
ShopBundle/Resources/translations/lcshop.fr.yaml View File

@@ -404,7 +404,7 @@ field:
statusOptions:
open: Ouvert
being-processed: En cours de traitement
closed: Fermée
closed: Fermé
yourAnswer: Votre réponse
closeTicket: Fermer la demande
Document:

+ 14
- 0
ShopBundle/Resources/views/backend/default/list-fields/field_ticket_status.html.twig View File

@@ -0,0 +1,14 @@
{% 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 %}

+ 2
- 0
ShopBundle/Resources/views/backend/default/list-fields/field_ticket_type.html.twig View File

@@ -0,0 +1,2 @@
{% set trans_value = 'field.Ticket.typeOptions.'~value %}
{{ trans_value|trans({}, 'lcshop') }}

Loading…
Cancel
Save