{# * Copyright (C) 2014, Champs Libres Cooperative SCRLFS, * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . #} {% extends "@ChillPerson/Person/layout.html.twig" %} {% set activeRouteKey = '' %} {% block title %}{{ 'Update details for %name%'|trans({ '%name%': person|chill_entity_render_string } ) }}{% endblock %} {% block personcontent %}

{{ block('title') }}

{% form_theme form '@ChillMain/Form/fields.html.twig' %} {{ form_start(form) }} {% if form.memo is defined %}

{{ 'Memo'|trans }}

{{ form_row(form.memo, {'label' : 'Memo'} ) }}
{% endif %}

{{ 'General information'|trans }}

{%- if form.civility is defined -%} {{ form_row(form.civility, {'label' : 'Civility'}) }} {% endif %} {{ form_row(form.firstName, {'label' : 'First name'}) }} {{ form_row(form.lastName, {'label' : 'Last name'}) }} {% if form.altNames is defined %} {{ form_widget(form.altNames, { 'label': 'Alternative names'}) }} {% endif %} {{ form_row(form.gender, {'label' : 'Gender'}) }} {{ form_row(form.genderComment, { 'label' : 'Comment on the gender'} ) }}

{{ 'Birth information'|trans }}

{{ form_row(form.birthdate, {'label': 'Date of birth'} ) }} {%- if form.placeOfBirth is defined -%} {{ form_row(form.placeOfBirth, { 'label' : 'Place of birth'} ) }} {%- endif -%} {%- if form.countryOfBirth is defined -%} {{ form_row(form.countryOfBirth, { 'label' : 'Country of birth' } ) }} {%- endif -%} {%- if form.deathdate is defined -%} {{ form_row(form.deathdate, { 'label' : 'Date of death' } ) }} {%- endif -%}
{%- if form.nationality is defined or form.spokenLanguages is defined -%}

{{ 'Administrative information'|trans }}

{%- if form.nationality is defined -%} {{ form_row(form.nationality, { 'label' : 'Nationality'|trans} ) }} {%- endif -%} {%- if form.spokenLanguages is defined -%} {{ form_row(form.spokenLanguages, {'label' : 'Spoken languages'}) }} {%- endif -%}
{%- endif -%} {%- if form.numberOfChildren is defined or form.maritalStatus is defined -%}

{{ 'Marital status'|trans }}

{{ form_row(form.numberOfChildren, {'label' : 'Number of children'}) }} {%- if form.maritalStatus is defined -%}
{{ form_row(form.maritalStatus, { 'label' : 'Marital status'} ) }}
{{ form_row(form.maritalStatusDate, { 'label' : 'Date of last marital status change'} ) }}
{%- endif -%}
{{ form_row(form.maritalStatusComment, { 'label' : 'Comment on the marital status'} ) }}
{%- 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) }} {{ form_end(form) }}
{% endblock %} {% block js %} {{ encore_entry_script_tags('page_person') }} {% endblock %}