From eac3471cbb0b59c5e7dd7bebcd716ac1c5618a9c Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Fri, 10 Feb 2023 11:37:32 +0100 Subject: [PATCH] FIX [person][contactinfo] place the contactinfo fields underneath birthdate for easier access --- .../Resources/views/Person/edit.html.twig | 70 +++++++++---------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Person/edit.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Person/edit.html.twig index 6ffbe8430..872dc4eab 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/Person/edit.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/Person/edit.html.twig @@ -63,6 +63,41 @@ {%- endif -%} + {%- if form.email is defined or form.phonenumber is defined or form.mobilenumber is defined or form.contactInfo is defined-%} +
+

{{ 'Contact information'|trans }}

+ {%- if form.email is defined -%} +
+ {{ form_row(form.email, {'label': 'Email'}) }} +
+ {% endif %} + {%- if form.acceptEmail is defined -%} +
+ {{ form_row(form.acceptEmail, {'label' : 'Accept emails ?'}) }} +
+ {%- endif -%} + + {%- if form.phonenumber is defined -%} + {{ form_row(form.phonenumber, {'label': 'Phonenumber'}) }} + {%- endif -%} + {%- if form.mobilenumber is defined -%} +
+ {{ form_row(form.mobilenumber, {'label': 'Mobilenumber'}) }} +
+
+ {{ form_row(form.acceptSMS, {'label' : 'Accept short text message ?'}) }} +
+ {%- endif -%} + {%- if form.otherPhoneNumbers is defined -%} + {{ form_widget(form.otherPhoneNumbers) }} + {{ form_errors(form.otherPhoneNumbers) }} + {%- endif -%} + {%- if form.contactInfo is defined -%} + {{ form_row(form.contactInfo, {'label': 'Notes on contact information'}) }} + {%- endif -%} +
+ {%- endif -%} + {%- if form.nationality is defined or form.spokenLanguages is defined -%}

{{ 'Administrative information'|trans }}

@@ -93,41 +128,6 @@
{%- endif -%} - {%- if form.email is defined or form.phonenumber is defined or form.mobilenumber is defined or form.contactInfo is defined-%} -
-

{{ 'Contact information'|trans }}

- {%- if form.email is defined -%} -
- {{ form_row(form.email, {'label': 'Email'}) }} -
- {% endif %} - {%- if form.acceptEmail is defined -%} -
- {{ form_row(form.acceptEmail, {'label' : 'Accept emails ?'}) }} -
- {%- endif -%} - - {%- if form.phonenumber is defined -%} - {{ form_row(form.phonenumber, {'label': 'Phonenumber'}) }} - {%- endif -%} - {%- if form.mobilenumber is defined -%} -
- {{ form_row(form.mobilenumber, {'label': 'Mobilenumber'}) }} -
-
- {{ form_row(form.acceptSMS, {'label' : 'Accept short text message ?'}) }} -
- {%- endif -%} - {%- if form.otherPhoneNumbers is defined -%} - {{ form_widget(form.otherPhoneNumbers) }} - {{ form_errors(form.otherPhoneNumbers) }} - {%- endif -%} - {%- if form.contactInfo is defined -%} - {{ form_row(form.contactInfo, {'label': 'Notes on contact information'}) }} - {%- endif -%} -
- {%- endif -%} - {{ form_rest(form) }}