person: delete accept Email

This commit is contained in:
nobohan 2021-10-15 21:46:09 +02:00
parent b800b62e88
commit 69ae252da6
2 changed files with 1 additions and 5 deletions

View File

@ -163,8 +163,7 @@ class PersonType extends AbstractType
if ($this->config['email'] === 'visible') {
$builder
->add('email', EmailType::class, array('required' => false))
->add('acceptEmail', CheckboxType::class, array('required' => false));
->add('email', EmailType::class, array('required' => false));
}
if ($this->config['country_of_birth'] === 'visible') {

View File

@ -95,9 +95,6 @@
<div id="personEmail">
{{ form_row(form.email, {'label': 'Email'}) }}
</div>
<div id="personAcceptEmail">
{{ form_row(form.acceptEmail, {'label' : 'Accept emails ?'}) }}
</div>
{%- endif -%}
{%- if form.phonenumber is defined -%}