person: re-add accpet email and add possibility of hidding this field

This commit is contained in:
nobohan
2021-10-28 09:45:27 +02:00
parent c90f9ee5bc
commit 046f65f5ff
3 changed files with 11 additions and 0 deletions

View File

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