{# * 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 "@ChillMain/layout.html.twig" %} {% block title %}{{ 'Add a person'|trans }}{% endblock title %} {% block content %}

{{ 'Add a person'|trans }}

{% if alternatePersons is not empty %}
{% transchoice alternatePersons|length with { '%nb%': alternatePersons|length } %} %nb% person with similar name. Please verify that this is a new person {% endtranschoice %}
{% for person in alternatePersons %} {% endfor %}
{{ 'Name'|trans }} {{ 'Date of birth'|trans }} {{ 'Nationality'|trans }}
{{ person|chill_entity_render_string }}{% apply spaceless %} {% if person.isOpen == false %} {% endif %} {% endapply %} {% if person.birthdate is not null %}{{ person.birthdate|format_date('long') }}{% else %} {% endif %} {% if person.nationality is not null %}{{ person.nationality.name|localize_translatable_string }}{% else %}{{ 'Without nationality'|trans }}{% endif %}
{% endif %} {{ form_start(form) }} {{ form_row(form.firstName, { 'label' : 'First name'|trans }) }} {{ form_row(form.lastName, { 'label' : 'Last name'|trans }) }} {% if form.altNames is defined %} {{ form_widget(form.altNames) }} {% endif %} {{ form_row(form.birthdate, { 'label' : 'Date of birth'|trans }) }} {{ form_row(form.gender, { 'label' : 'Gender'|trans }) }}
{# TODO remove this field (vendee) #} {{ form_row(form.center, { 'label' : 'Center'|trans }) }}
{{ form_end(form) }}
{% endblock content %}