-
- {% if person.memo is not empty and chill_person.fields.memo == 'visible' %}
-
-
- {{ 'Memo'|trans }}
-
+
+
+ {% if person.memo is not empty and chill_person.fields.memo == 'visible' %}
+
+
+ {{ 'Memo'|trans }}
- {#
{{ person.memo|nl2br }} #}
-
- {{ person.memo|chill_markdown_to_html }}
+
+ {{ person.memo|chill_markdown_to_html }}
+
+
+
+
+ {% endif %}
+
+
+ {{ 'General information'|trans }}
+
+
+ {{ 'First name'|trans }} :
+ {{ person.firstName }}
+
+ {{ 'Last name'|trans }} :
+ {{ person.lastName }}
+ {% for el in person.altNames %}
+ {% if el.key in alt_names|keys %}
+ {{ alt_names[el.key]|localize_translatable_string }} :
+ {{ el.label }}
+ {% endif %}
+ {% endfor %}
+
+ {{ 'Gender'|trans }} :
+ {{ ( person.gender|default('Not given'))|trans }}
+
+
+
+ {% if is_granted('CHILL_PERSON_UPDATE', person) %}
+ {{ include(edit_tmp_name, edit_tmp_args) }}
+ {% endif %}
+
+
+
+
+
+ {{ 'Birth information'|trans }}
+
+
+ {{ 'Date of birth'|trans }} :
+
+ {%- if person.birthdate is not null -%}
+ {{ person.birthdate|format_date('long') }}
+ {%- else -%}
+ {{ 'Unknown date of birth'|trans }}
+ {%- endif -%}
+
+
+ {%- if chill_person.fields.place_of_birth == 'visible' -%}
+ {{ 'Place of birth'|trans }} :
+ {% if person.placeOfBirth is not empty %}
+ {{ person.placeOfBirth }}
+ {% else %}
+ {{ 'Not given'|trans }}
+ {% endif %}
+ {%- endif -%}
+ {%- if chill_person.fields.country_of_birth == 'visible' -%}
+ {{ 'Country of birth'|trans }} :
+ {% apply spaceless %}
+ {% if person.countryOfBirth is not null %}
+ {{ person.countryOfBirth.name|localize_translatable_string }}
+ {% else %}
+ {{ 'Unknown country of birth'|trans }}
+ {% endif %}
+ {% endapply %}
+ {%- endif -%}
+
+
+ {% if is_granted('CHILL_PERSON_UPDATE', person) %}
+ {{ include(edit_tmp_name, edit_tmp_args) }}
+ {% endif %}
+
+
+
-
- {% endif %}
-
-
- {{ 'General information'|trans }}
+
+
+ {%- if chill_person.fields.nationality == 'visible' or chill_person.fields.spoken_languages == 'visible'-%}
+
+
+ {{ 'Administrative information'|trans }}
-
- {{ 'First name'|trans }} :
- {{ person.firstName }}
+ {%- if chill_person.fields.nationality == 'visible' -%}
+
+ {{ 'Nationality'|trans }} :
+
+ {% if person.nationality is not null %}
+ {{ person.nationality.name|localize_translatable_string }}
+ {% else %}
+ {{ 'Without nationality'|trans }}
+ {% endif %}
+
+
+ {%- endif -%}
+ {%- if chill_person.fields.spoken_languages == 'visible' -%}
+
+ {{'Spoken languages'|trans}} :
+
+ {% if person.spokenLanguages|length == 0 %}
+ {{ 'Unknown spoken languages'|trans }}
+ {% else %}
+ {% for lang in person.spokenLanguages %}
+ {{ lang.name|localize_translatable_string }}{% if not loop.last %},{% endif %}
+ {% endfor %}
+ {% endif %}
+
+
+ {%- endif -%}
+ {%- if chill_person.fields.marital_status == 'visible' -%}
+
+ {{'Marital status'|trans}} :
+
+ {% if person.maritalStatus is not null %}
+ {{ person.maritalStatus.name|localize_translatable_string }}
+ {% else %}
+ {{ 'No data given'|trans }}
+ {% endif %}
+
+
+ {%- endif -%}
- {{ 'Last name'|trans }} :
- {{ person.lastName }}
- {% for el in person.altNames %}
- {% if el.key in alt_names|keys %}
- {{ alt_names[el.key]|localize_translatable_string }} :
- {{ el.label }}
- {% endif %}
- {% endfor %}
-
- {{ 'Gender'|trans }} :
- {{ ( person.gender|default('Not given'))|trans }}
-
- {% if not person.genderComment.isEmpty %}
- {{ 'Gender comment'|trans }} :
- {{ person.genderComment|chill_entity_render_box }}
- {% endif %}
-
-
-
-
-
-
-
-
- {{ 'Birth information'|trans }}
-
-
- {{ 'Date of birth'|trans }} :
-
- {%- if person.birthdate is not null -%}
- {{ person.birthdate|format_date('long') }}
- {%- else -%}
- {{ 'Unknown date of birth'|trans }}
- {%- endif -%}
-
-
- {%- if chill_person.fields.place_of_birth == 'visible' -%}
- {{ 'Place of birth'|trans }} :
- {% if person.placeOfBirth is not empty %}
- {{ person.placeOfBirth }}
- {% else %}
- {{ 'Not given'|trans }}
- {% endif %}
+ {% if is_granted('CHILL_PERSON_UPDATE', person) %}
+ {{ include(edit_tmp_name, edit_tmp_args) }}
+ {% endif %}
+
+
{%- endif -%}
- {%- if chill_person.fields.country_of_birth == 'visible' -%}
-
{{ 'Country of birth'|trans }} :
-
{% apply spaceless %}
- {% if person.countryOfBirth is not null %}
- {{ person.countryOfBirth.name|localize_translatable_string }}
- {% else %}
- {{ 'Unknown country of birth'|trans }}
- {% endif %}
- {% endapply %}
+ {%- if chill_person.fields.email == 'visible' or chill_person.fields.phonenumber == 'visible' or chill_person.fields.mobilenumber == 'visible' or chill_person.fields.contact_info == 'visible' -%}
+
+
+ {{ 'Contact information'|trans }}
+
+ {%- if chill_person.fields.address == 'visible' -%}
+
+ {{ 'Address'|trans }}
+
+ {%- if person.lastAddress is not empty -%}
+ {{ address._render(person.lastAddress, {'has_no_address': true}) }}
+
+
+
+ {%- else -%}
+ {{ 'No address given'|trans }}
+
+ {{ 'Add an address'|trans }}
+
+ {%- endif -%}
+
+
+ {%- endif -%}
+
+
+ {%- if chill_person.fields.email == 'visible' -%}
+
+ {{ 'Email'|trans }} :
+ {% if person.email is not empty %}{{ person.email|nl2br }} {% else %}{{ 'No data given'|trans }} {% endif %}
+
+ {%- endif -%}
+ {%- if chill_person.fields.phonenumber == 'visible' -%}
+
+ {{ 'Phonenumber'|trans }} :
+ {% if person.phonenumber is not empty %}{{ person.phonenumber|chill_format_phonenumber }} {% else %}{{ 'No data given'|trans }}{% endif %}
+
+ {% endif %}
+ {%- if chill_person.fields.mobilenumber == 'visible' -%}
+
+ {{ 'Mobilenumber'|trans }} :
+ {% if person.mobilenumber is not empty %}{{ person.mobilenumber|chill_format_phonenumber }} {% else %}{{ 'No data given'|trans }}{% endif %}
+
+ {% endif %}
+ {%- if chill_person.fields.contact_info == 'visible' -%}
+
+ {{ 'Notes on contact information'|trans }} :
+ {% if person.contactInfo is not empty %}{{ person.contactInfo|nl2br }}{% else %}{{ 'No data given'|trans }} {% endif %}
+
+ {%- endif -%}
+
+ {% if is_granted('CHILL_PERSON_UPDATE', person) %}
+ {{ include(edit_tmp_name, edit_tmp_args) }}
+ {% endif %}
+
+
{%- endif -%}
+
+
- {% if person.deathdate is not null %}
- {{ 'Date of death'|trans }} :
- {{ person.deathdate|format_date('long') }}
- {% endif %}
+ {% if cFGroup and (cFGroup.getActiveCustomFields|length > 0) %}
+
+
+
+
+ {{ chill_custom_fields_group_widget(person.cFData, cFGroup) }}
+
+
+
+
-
-
-
-
-
-
-
- {%- if chill_person.fields.nationality == 'visible' or chill_person.fields.spoken_languages == 'visible'-%}
-
-
- {{ 'Administrative information'|trans }}
-
- {%- if chill_person.fields.nationality == 'visible' -%}
-
- {{ 'Nationality'|trans }} :
-
- {% if person.nationality is not null %}
- {{ person.nationality.name|localize_translatable_string }}
- {% else %}
- {{ 'Without nationality'|trans }}
- {% endif %}
-
-
- {%- endif -%}
- {%- if chill_person.fields.spoken_languages == 'visible' -%}
-
- {{'Spoken languages'|trans}} :
-
- {% if person.spokenLanguages|length == 0 %}
- {{ 'Unknown spoken languages'|trans }}
- {% else %}
- {% for lang in person.spokenLanguages %}
- {{ lang.name|localize_translatable_string }}{% if not loop.last %},{% endif %}
- {% endfor %}
- {% endif %}
-
-
- {%- endif -%}
-
-
- {%-if chill_person.fields.number_of_children == 'visible' -%}
-
- {{'Number of children'|trans}} :
-
- {% if person.numberOfChildren is not null %}
- {{ person.numberOfChildren }}
- {% else %}
- {{ 'No data given'|trans }}
- {% endif %}
-
-
- {%- endif -%}
-
- {%- if chill_person.fields.marital_status == 'visible' -%}
-
- {{'Marital status'|trans}} :
-
- {% if person.maritalStatus is not null %}
- {{ person.maritalStatus.name|localize_translatable_string }}
- {% else %}
- {{ 'No data given'|trans }}
- {% endif %}
-
-
-
- {{'Date of last marital status change'|trans}} :
- {% if person.maritalStatusDate is not null %}
-
- {{ person.maritalStatusDate|format_date('long') }}
-
- {% endif %}
-
-
- {% if not person.maritalStatusComment.isEmpty %}
- {{'Comment on the marital status'|trans}} :
-
- {{ person.maritalStatusComment|chill_entity_render_box }}
-
- {% endif %}
-
- {%- endif -%}
-
-
-
- {%- endif -%}
- {%- if chill_person.fields.email == 'visible' or chill_person.fields.phonenumber == 'visible' or chill_person.fields.mobilenumber == 'visible' or chill_person.fields.contact_info == 'visible' -%}
-
-
- {{ 'Contact information'|trans }}
-
- {%- if chill_person.fields.address == 'visible' -%}
-
- {{ 'Address'|trans }}
-
- {%- if person.lastAddress is not empty -%}
- {{ address._render(person.lastAddress, {'has_no_address': true}) }}
-
-
- {%- else -%}
- {{ 'No address given'|trans }}
-
- {{ 'Add an address'|trans }}
-
- {%- endif -%}
-
-
- {%- endif -%}
-
-
- {%- if chill_person.fields.email == 'visible' -%}
-
- {{ 'Email'|trans }} :
- {% if person.email is not empty %}{{ person.email }} {% else %}{{ 'No data given'|trans }} {% endif %}
- {%- if person.email is not empty and person.acceptEmail -%}
-
-
- {{- 'Accept emails'|trans -}}
-
-
- {%- endif -%}
-
- {%- endif -%}
- {%- if chill_person.fields.phonenumber == 'visible' -%}
-
- {{ 'Phonenumber'|trans }} :
- {% if person.phonenumber is not empty %}{{ person.phonenumber|chill_format_phonenumber }} {% else %}{{ 'No data given'|trans }}{% endif %}
-
- {% endif %}
- {%- if chill_person.fields.mobilenumber == 'visible' -%}
-
- {{ 'Mobilenumber'|trans }} :
- {% if person.mobilenumber is not empty %}{{ person.mobilenumber|chill_format_phonenumber }} {% else %}{{ 'No data given'|trans }}{% endif %}
- {%- if person.mobilenumber is not empty and person.acceptSMS -%}
-
-
- {{- 'Accept short text message'|trans -}}
-
-
- {%- endif -%}
-
- {% endif %}
- {% for pp in person.otherPhoneNumbers %}
- {{ 'Other phonenumber'|trans }} :
-
- {{ pp.phoneNumber|chill_format_phonenumber }}
- {% if pp.description is not empty %}
-
- {{ pp.description|nl2br }}
- {% endif %}
-
-
- {% endfor %}
- {%- if chill_person.fields.contact_info == 'visible' -%}
-
- {{ 'Notes on contact information'|trans }} :
-
- {% if person.contactInfo is not empty %}
-
- {{ person.contactInfo|chill_markdown_to_html }}
-
- {% else %}
- {{ 'No data given'|trans }}
- {% endif %}
-
-
- {%- endif -%}
-
-
-
- {%- endif -%}
-
-
-{% if cFGroup and (cFGroup.getActiveCustomFields|length > 0) %}
-
-
+
- {{ chill_custom_fields_group_widget(person.cFData, cFGroup) }}
+ {% if is_granted('CHILL_PERSON_UPDATE', person) %}
+ {{ include(edit_tmp_name, edit_tmp_args) }}
+ {% endif %}
+ {% endif %}
+
-
-
-
-
-
-{% endif %}
-
-{% if is_granted('CHILL_PERSON_UPDATE', person) %}
-
-{% endif %}
-
{% endblock %}
diff --git a/src/Bundle/ChillPersonBundle/Resources/views/layout.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/layout.html.twig
index 9ff7a5cf8..3c968f84c 100644
--- a/src/Bundle/ChillPersonBundle/Resources/views/layout.html.twig
+++ b/src/Bundle/ChillPersonBundle/Resources/views/layout.html.twig
@@ -124,7 +124,7 @@
{% endblock %}
{% block layout_wvm_content %}
-
+
{% block personcontent %}{%endblock%}
{% endblock %}