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

{% if persons|length == 0 %}

{{ 'No persons matching search %pattern%'|trans({'%pattern%' : pattern}) }}

{% else %}

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

{% 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 %} {{person.dateOfBirth.format(date_format)|default( 'Unknown date of birth'|trans )}} {% if person.nationality is not null %} {{person.nationality.name | localize_translatable_string }} {% else %} {{ 'Without nationality'|trans }} {% endif %}
{% endif %}