firstname field added to twig form for child or contact types

This commit is contained in:
2022-03-14 10:23:47 +01:00
parent 00787adf2b
commit a24cd693e3
6 changed files with 30 additions and 21 deletions

View File

@@ -102,6 +102,10 @@ class ThirdPartyType extends AbstractType
// Contact Person ThirdParty (child)
if (ThirdParty::KIND_CONTACT === $options['kind'] || ThirdParty::KIND_CHILD === $options['kind']) {
$builder
->add('firstname', TextType::class, [
'label' => 'firstname',
'required' => true,
])
->add('civility', PickCivilityType::class, [
'label' => 'thirdparty.Civility',
'placeholder' => 'thirdparty.choose civility',