mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
person: display other phone numbers in view + translations + add message in case no others phone numbers
This commit is contained in:
@@ -144,7 +144,10 @@ class PersonType extends AbstractType
|
||||
}
|
||||
|
||||
if ($this->config['phonenumber'] === 'visible') {
|
||||
$builder->add('phonenumber', TelType::class, array('required' => false));
|
||||
$builder->add('phonenumber', TelType::class, array(
|
||||
'required' => false,
|
||||
// 'placeholder' => '+33623124554' //TODO placeholder for phone numbers
|
||||
));
|
||||
}
|
||||
|
||||
if ($this->config['mobilenumber'] === 'visible') {
|
||||
@@ -167,7 +170,8 @@ class PersonType extends AbstractType
|
||||
'delete_empty' => function(PersonPhone $pp = null) {
|
||||
return NULL === $pp || $pp->isEmpty();
|
||||
},
|
||||
'error_bubbling' => false
|
||||
'error_bubbling' => false,
|
||||
'empty_collection_explain' => 'No additional phone numbers'
|
||||
]);
|
||||
|
||||
if ($this->config['email'] === 'visible') {
|
||||
|
Reference in New Issue
Block a user