IdField::new('id')->hideOnForm(), 'type' => ChoiceField::new('type') ->setChoices( $this->translatorAdmin->transChoices( CreditHistorySolver::getTypeChoices(), 'CreditHistory', 'type' ) ), 'amount' => NumberField::new('amount') ->setTemplatePath('@LcCaracole/admin/credit/field/amount.html.twig') ->setCustomOption('appendHtml', '€'), 'paidAt' => DateField::new('paidAt')->setFormTypeOption('required', true) ->setTemplatePath('@LcCaracole/admin/credit/field/paidAt.html.twig'), 'meanPayment' => ChoiceField::new('meanPayment') ->setChoices( $this->translatorAdmin->transChoices( OrderPaymentSolver::getMeanPaymentChoices(), 'OrderPayment', 'meanPayment' ) )->setFormTypeOption('required', true) ->setTemplatePath('@LcCaracole/admin/credit/field/meanPayment.html.twig'), 'reference' => TextField::new('reference') ->setTemplatePath('@LcCaracole/admin/credit/field/reference.html.twig'), 'comment' => TextField::new('comment') ->setTemplatePath('@LcCaracole/admin/credit/field/comment.html.twig'), ]; } }