Browse Source

translate type de livraison dans l'index

packProduct
Charly 3 years ago
parent
commit
49917b4723
2 changed files with 3 additions and 1 deletions
  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 View File

@@ -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 View File

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

Loading…
Cancel
Save