ソースを参照

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 ファイルの表示



namespace Lc\CaracoleBundle\Definition\Field\User; namespace Lc\CaracoleBundle\Definition\Field\User;


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

+ 1
- 0
Resources/translations/admin.fr.yaml ファイルの表示

history: Historique history: Historique
credit: Voir l'historique de crédit credit: Voir l'historique de crédit
switchUser: Prendre la main switchUser: Prendre la main
exportOrderPurchasesAsArchive: Récapitulatif des commandes


setting_definition: setting_definition:
merchant: merchant:

読み込み中…
キャンセル
保存