浏览代码

translate type de livraison dans l'index

packProduct
Charly 3 年前
父节点
当前提交
49917b4723
共有 2 个文件被更改,包括 3 次插入1 次删除
  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 查看文件

@@ -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 查看文件

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

正在加载...
取消
保存