{% extends "ChillMainBundle::layout.html.twig" %} {% block css %} {% stylesheets output="css/all.css" filter="cssrewrite" "bundles/chillperson/css/person.css" %} {% endstylesheets %} {% endblock %} {% block layout_content %}

{{ person.surname }} {{ person.name }} {% spaceless %} {% if not person.isOpen %} {% endif %} {% endspaceless %}

{% spaceless %} {% if person.dateOfBirth == null %} {{ 'person.without_date_of_birth'|trans }}, {{ ('person.gender.' ~ person.genre)|trans }} {% else %} {% transchoice person.genreNumeric with {'%date%' : person.dateOfBirth.format('d-m-Y')} %} views.layout.born {% endtranschoice %} {% endif %} {% endspaceless %}

{% if person.nationality is not null %}

{{ person.nationality.label }}

{% else %}

{% trans %}views.layout.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 %}