Procházet zdrojové kódy

[Backend] Tickets : mise en page

feature/export_comptable
Guillaume před 4 roky
rodič
revize
4c6f84328f
3 změnil soubory, kde provedl 17 přidání a 1 odebrání
  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 Zobrazit soubor

@@ -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 Zobrazit soubor

@@ -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 Zobrazit soubor

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

Načítá se…
Zrušit
Uložit