mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-18 16:24:24 +00:00
121 lines
5.1 KiB
Twig
121 lines
5.1 KiB
Twig
{#
|
|
* Copyright (C) 2014, Champs Libres Cooperative SCRLFS, <http://www.champs-libres.coop>
|
|
*
|
|
* 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 <http://www.gnu.org/licenses/>.
|
|
#}
|
|
{% extends "ChillMainBundle::layout.html.twig" %}
|
|
|
|
{% block layout_content %}
|
|
|
|
<div class="grid-12 parent" id="header-person-name" >
|
|
<div class="grid-10 push-1 parent">
|
|
<div class="grid-3">
|
|
<span style="font-family:'open_sansbold'">{{ 'Lastname'|trans|upper }}</span> : {{ person.lastName|upper }}
|
|
</div>
|
|
<div class="grid-3">
|
|
<span style="font-family:'open_sansbold'">{{ 'Fistname'|trans|upper}}</span> : {{ person.firstName|upper }}
|
|
</div>
|
|
<div class="grid-3">
|
|
<i class="fa fa-{% spaceless %}
|
|
{% if person.gender == "woman" %}
|
|
female
|
|
{% else %}
|
|
male
|
|
{% endif %}
|
|
{% endspaceless %}"></i>
|
|
<i class="fa fa-{% spaceless %}
|
|
{% if person.isOpen %}
|
|
eye
|
|
{% else %}
|
|
eye-slash
|
|
{% endif %}
|
|
{% endspaceless %}"></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="grid-12 parent" id="header-person-details" >
|
|
<div class="grid-10 push-1 parent">
|
|
<div class="grid-3">
|
|
<span style="font-family:'open_sansbold'">{{ 'Birthdate'|trans|upper }}</span> :
|
|
{% if person.birthdate == null %}
|
|
{{ 'Unknown date of birth'|trans }}, {{ ('person.gender.' ~
|
|
person.gender)|trans }}
|
|
{% else %}
|
|
{{ person.birthdate|localizeddate('long', 'none') }}
|
|
{% endif %}
|
|
</div>
|
|
<div class="grid-3">
|
|
<span style="font-family:'open_sansbold'">{{ 'Nationality'|trans|upper}}</span> :
|
|
{% if person.nationality is not null %}
|
|
{{ person.nationality.name|localize_translatable_string }}
|
|
{% else %}
|
|
{% trans %}Without nationality{% endtrans %}
|
|
{% endif %}
|
|
</div>
|
|
<div class="grid-3">
|
|
<span style="font-family:'open_sansbold'">{{ 'Spoken languages'|trans|upper}}</span> :
|
|
{% 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 %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="person_details" class="content parent">
|
|
<section class="container">
|
|
{# 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
|
|
}) }}
|
|
|
|
<div class="grid-8">
|
|
{# Flash messages ! #}
|
|
<div class="container">
|
|
{% for flashMessage in app.session.flashbag.get('success') %}
|
|
<div class="grid-8 centered success">
|
|
<span>
|
|
{{ flashMessage|raw }}
|
|
</span>
|
|
</div>
|
|
{% endfor %}
|
|
|
|
{% for flashMessage in app.session.flashbag.get('danger') %}
|
|
<div class="grid-8 centered error">
|
|
<span>
|
|
{{ flashMessage|raw }}
|
|
</span>
|
|
</div>
|
|
{% endfor %}
|
|
|
|
{% for flashMessage in app.session.flashbag.get('info') %}
|
|
<div class="grid-8 centered notice">
|
|
<span>
|
|
{{ flashMessage|raw }}
|
|
</span>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
{% block personcontent %}<!-- block personcontent empty -->{%endblock%}
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |