mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
person: re-add accpet email and add possibility of hidding this field
This commit is contained in:
@@ -166,6 +166,11 @@ class PersonType extends AbstractType
|
||||
->add('email', EmailType::class, array('required' => false));
|
||||
}
|
||||
|
||||
if ($this->config['acceptEmail'] === 'visible') {
|
||||
$builder
|
||||
->add('acceptEmail', CheckboxType::class, array('required' => false));
|
||||
}
|
||||
|
||||
if ($this->config['country_of_birth'] === 'visible') {
|
||||
$builder->add('countryOfBirth', Select2CountryType::class, array(
|
||||
'required' => false
|
||||
|
Reference in New Issue
Block a user