瀏覽代碼

filter

packProduct
Charly 3 年之前
父節點
當前提交
076b832653
共有 2 個文件被更改,包括 3 次插入0 次删除
  1. +2
    -0
      Definition/Field/User/UserFieldDefinition.php
  2. +1
    -0
      Resources/translations/admin.fr.yaml

+ 2
- 0
Definition/Field/User/UserFieldDefinition.php 查看文件

@@ -2,6 +2,7 @@

namespace Lc\CaracoleBundle\Definition\Field\User;

use App\Entity\User\GroupUser;
use EasyCorp\Bundle\EasyAdminBundle\Field\ChoiceField;
use EasyCorp\Bundle\EasyAdminBundle\Field\NumberField;
use Lc\CaracoleBundle\Context\MerchantContextTrait;
@@ -82,6 +83,7 @@ class UserFieldDefinition extends SovUserFieldDefinition
->setSortable(true),
'groupUsers' => AssociationField::new('groupUsers')
->setFormTypeOption('choices', $groupUsers)
->setCustomOption('class', GroupUser::class)
->setTemplatePath('@LcSov/adminlte/crud/field/association_many.html.twig')
->setFormTypeOption('choice_label', function ($choice) {
return $choice->getTitle() . '[' . $choice->getMerchant() . ']';

+ 1
- 0
Resources/translations/admin.fr.yaml 查看文件

@@ -29,6 +29,7 @@ action:
history: Historique
credit: Voir l'historique de crédit
switchUser: Prendre la main
exportOrderPurchasesAsArchive: Récapitulatif des commandes

setting_definition:
merchant:

Loading…
取消
儲存