{% extends "ChillPersonBundle::layout.html.twig" %} {% set activeRouteKey = 'chill_person_view' %} {# This view should receive those arguments: - person #} {% block title %}ChillPersonBundle:Person:see{% endblock %} {# we define variables to include an edit form repeated multiple time across the page #} {% set edit_tmp_name = 'ChillPersonBundle:Form:go_to_form.html.twig' %} {% set edit_tmp_args = { 'form_path_args' : { 'person_id': person.id }, 'form_path_key' : 'chill_person_general_edit' } %} {% block personcontent %} {{ include(edit_tmp_name, edit_tmp_args) }}

{{ 'views.Person.view.general'|trans }}

{{ 'views.Person.view.surname'|trans }}
{{ person.surname }}
{{ 'views.Person.view.name'|trans }}
{{ person.name }}
{{ 'views.Person.view.gender'|trans }}
{{ ( 'person.gender.' ~ person.genre|default('undefined'))|trans }}

{{ 'views.Person.view.birth'|trans }}

{{ 'views.Person.view.dateOfBirth'|trans }}
{{ person.dateOfBirth.format(date_format) |default( 'person.without_date_of_birth'|trans ) }}
{{ 'views.Person.view.placeOfBirth'|trans }}
{{ person.placeOfBirth }}
{% spaceless %} {% if person.countryOfBirth is not null %} {{ person.countryOfBirth.label }} {% else %} {{ 'views.Person.view.country_of_birth_unknow'|trans }} {% endif %} {% endspaceless %}
{{ include(edit_tmp_name, edit_tmp_args) }}

{{ 'views.Person.view.administrative'|trans }}

{{ 'views.Person.view.nationality'|trans }}
{% if person.nationality is not null %} {{ person.nationality.label }} {% else %} {{ 'views.Person.view.without_nationality'|trans }} {% endif %}
{{ include(edit_tmp_name, edit_tmp_args) }}

{{ 'views.Person.view.contact'|trans }}

{{ 'views.Person.view.email'|trans }}
{{ person.email}} 
{% endblock %}