Ver código fonte

translate type de livraison dans l'index

packProduct
Charly 3 anos atrás
pai
commit
49917b4723
2 arquivos alterados com 3 adições e 1 exclusões
  1. +2
    -1
      Definition/Field/Order/OrderShopFieldDefinition.php
  2. +1
    -0
      Resources/views/admin/order/field/delivery_type.html.twig

+ 2
- 1
Definition/Field/Order/OrderShopFieldDefinition.php Ver arquivo

@@ -71,7 +71,8 @@ class OrderShopFieldDefinition extends AbstractFieldDefinition
->setCustomOption('filter_on', 'cycleNumber'),
'cycleDeliveryId' => IntegerField::new('cycleDeliveryId')->setSortable(true),
'cycleId' => IntegerField::new('cycleId')->setSortable(true),
'deliveryType' => Field::new('deliveryType')->setSortable(true)
'deliveryType' => TextField::new('deliveryType')->setSortable(true)
->setTemplatePath('@LcCaracole/admin/order/field/delivery_type.html.twig')
->setCustomOption('filter_fqcn', OrderShopOrderDeliveryTypeFilter::class),
//->setTemplatePath('@LcShop/backend/default/field/options_translatable.html.twig'),
'reference' => TextField::new('reference')->setSortable(true),

+ 1
- 0
Resources/views/admin/order/field/delivery_type.html.twig Ver arquivo

@@ -0,0 +1 @@
{{ field.value|sov_trans_admin_choice('deliveryType', 'OrderShop') }}

Carregando…
Cancelar
Salvar