{# * 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 "ChillMainBundle::layout.html.twig" %} {% block css %} {% stylesheets output="css/all.css" filter="cssrewrite" "bundles/chillperson/css/person.css" %} {% endstylesheets %} {% endblock %} {% block layout_content %}

{% if person.genre == "woman" %} {% else %} {% endif %} {{ person.firstName }} {{ person.lastName }} {% spaceless %} {% if not person.isOpen %} {% endif %} {% endspaceless %}

{% spaceless %} {% if person.dateOfBirth == null %} {{ 'Unknown date of birth'|trans }}, {{ ('person.gender.' ~ person.genre)|trans }} {% else %} {% transchoice person.genreNumeric with {'%date%' : person.dateOfBirth.format('d-m-Y')} %} {0} Born the %date | {1} Born the %date {% endtranschoice %} {% endif %} {% endspaceless %}

{% if person.nationality is not null %}

{{ person.nationality.name|localize_translatable_string }}

{% else %}

{% trans %}Without nationality{% endtrans %}

{% endif %}
{# Note: activeRouteKey should be defined in Controller or child layout #} {{ chill_menu('person', { 'layout': 'ChillPersonBundle::menu.html.twig', 'args' : {'person_id': person.id }, 'activeRouteKey': activeRouteKey }) }}
{# Flash messages ! #}
{% for flashMessage in app.session.flashbag.get('success') %}
{{ flashMessage|raw }}
{% endfor %} {% for flashMessage in app.session.flashbag.get('danger') %}
{{ flashMessage|raw }}
{% endfor %} {% for flashMessage in app.session.flashbag.get('info') %}
{{ flashMessage|raw }}
{% endfor %}
{% block personcontent %}{%endblock%}
{% endblock %}