{# * 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 . #}

{{ 'Person search results'|trans }}

{{ '%total% persons matching the search %pattern%'|transchoice( total, {'%pattern%': pattern, '%total%' : total}) }}

{{ 'Results %start%-%end% of %total%'|trans({ '%start%' : start, '%end%': start + persons|length, '%total%' : total } ) }}

{% if persons|length > 0 %} {% for person in persons %} {% endfor %}
{% trans %}Name{% endtrans %} {% trans %}Date of birth{% endtrans %} {% trans %}Nationality{% endtrans %}
{{person.firstName}} {{person.lastName}} {% spaceless %} {% if person.isOpen == false %} {% endif %} {% endspaceless %} {% if person.birthdate is not null %}{{person.birthdate|localizeddate('long', 'none', app.request.locale) }}{% else %}{{ 'Unknown date of birth'|trans }}{% endif %} {% if person.nationality is not null %} {{person.nationality.name | localize_translatable_string }} {% else %} {{ 'Without nationality'|trans }} {% endif %}
{% endif %} {% if preview == false %} {{ chill_pagination(paginator) }} {% endif %}