{# * Copyright (C) 2014-2015, 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 . #} {# The layout of the admin section. All the page / template of the admin section must use this layout. #} {% extends "ChillMainBundle::layoutWithVerticalMenu.html.twig" %} {% block top_banner %}
{{ 'Name'|trans|upper }} : {{ person|chill_entity_render_string }}
{{ 'File number'|trans|upper}} : {{ person.id|upper }} —
{{ 'Phonenumber'|trans|upper }} : {% set phone = person.mobilenumber|default(person.phonenumber) %} {% if phone is not empty %}{{ phone|chill_format_phonenumber }}{% else %}{{ 'No data given'|trans }}{% endif %}
{{ 'Birthdate'|trans|upper }} : {% if person.birthdate == null %} {{ 'Unknown date of birth'|trans }} {% else %} {{ person.birthdate|localizeddate('long', 'none') }} {% endif %}
{%- if chill_person.fields.nationality == 'visible' -%}
{{ 'Nationality'|trans|upper}} : {% if person.nationality is not null %} {{ person.nationality.name|localize_translatable_string }} {% else %} {% trans %}Without nationality{% endtrans %} {% endif %}
{%- endif -%} {%- if chill_person.fields.spoken_languages == 'visible' -%}
{{ 'Center'|trans|upper}} : {{ person.center.name|upper }}
{%- endif -%}
{% endblock %} {% block layout_wvm_content %}
{% block personcontent %}{%endblock%}
{% endblock %} {% block vertical_menu_content %} {{ chill_menu('person', { 'layout': 'ChillPersonBundle::menu.html.twig', 'args' : {'person_id': person.id, 'person': person }, 'activeRouteKey': activeRouteKey }) }}
{{ chill_delegated_block('person_post_vertical_menu', { 'person': person } ) }}
{% endblock %}