<commit_before>{#
 * 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 "ChillPersonBundle::layout.html.twig"  %}

{% set activeRouteKey = '' %}

{% block title %}{{ 'Update details for %name%'|trans({ '%name%': person.firstName|capitalize ~ ' ' ~ person.lastName } )|capitalize }}{% endblock %}

{% block personcontent %}
    
    <h1>{{ 'Update details for %name%'|trans({ '%name%': person.firstName|capitalize ~ ' ' ~ person.lastName|capitalize } ) }}</h1>

{% form_theme form 'ChillMainBundle:Form:fields.html.twig' %}

{{ form_start(form) }}

<fieldset>
    <legend><h2>{{ 'Memo'|trans }}</h2></legend>
{{ form_row(form.memo, {'label' : 'Memo'} ) }}
</fieldset>

<fieldset>
    <legend><h2>{{ 'General information'|trans }}</h2></legend>
    {{ form_row(form.firstName, {'label' : 'First name'}) }}
    {{ form_row(form.lastName, {'label' : 'Last name'}) }}
    {{ form_row(form.gender, {'label' : 'Gender'}) }}
</fieldset>

<fieldset>
    <legend><h2>{{ 'Birth information'|trans }}</h2></legend>
    {{ form_row(form.birthdate, {'label': 'Date of birth'} ) }}
    {%- if form.placeOfBirth is defined -%}
    {{ form_row(form.placeOfBirth, { 'label' : 'Place of birth'} ) }}
    {%- endif -%}
    {%- if form.countryOfBirht is defined -%}
    {{ form_row(form.countryOfBirth, { 'label' : 'Country of birth' } ) }}
    {%- endif -%}
</fieldset>

{%- if form.nationality is defined or form.spokenLanguages is defined or form.maritalStatus is defined -%}
<fieldset>
    <legend><h2>{{ 'Administrative information'|trans }}</h2></legend>
    {%- if form.nationality is defined -%}<commit_msg>fix condition which prevent countryOfBirth to be shown<commit_after>{#
 * 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 "ChillPersonBundle::layout.html.twig"  %}

{% set activeRouteKey = '' %}

{% block title %}{{ 'Update details for %name%'|trans({ '%name%': person.firstName|capitalize ~ ' ' ~ person.lastName } )|capitalize }}{% endblock %}

{% block personcontent %}
    
    <h1>{{ 'Update details for %name%'|trans({ '%name%': person.firstName|capitalize ~ ' ' ~ person.lastName|capitalize } ) }}</h1>

{% form_theme form 'ChillMainBundle:Form:fields.html.twig' %}

{{ form_start(form) }}

<fieldset>
    <legend><h2>{{ 'Memo'|trans }}</h2></legend>
{{ form_row(form.memo, {'label' : 'Memo'} ) }}
</fieldset>

<fieldset>
    <legend><h2>{{ 'General information'|trans }}</h2></legend>
    {{ form_row(form.firstName, {'label' : 'First name'}) }}
    {{ form_row(form.lastName, {'label' : 'Last name'}) }}
    {{ form_row(form.gender, {'label' : 'Gender'}) }}
</fieldset>

<fieldset>
    <legend><h2>{{ 'Birth information'|trans }}</h2></legend>
    {{ form_row(form.birthdate, {'label': 'Date of birth'} ) }}
    {%- if form.placeOfBirth is defined -%}
    {{ form_row(form.placeOfBirth, { 'label' : 'Place of birth'} ) }}
    {%- endif -%}
    {%- if form.countryOfBirth is defined -%}
    {{ form_row(form.countryOfBirth, { 'label' : 'Country of birth' } ) }}
    {%- endif -%}
</fieldset>

{%- if form.nationality is defined or form.spokenLanguages is defined or form.maritalStatus is defined -%}
<fieldset>
    <legend><h2>{{ 'Administrative information'|trans }}</h2></legend>
    {%- if form.nationality is defined -%}
{'fraction_non_alphanumeric': 0.16698779704560052, 'fraction_numerical': 0.006422607578676943, 'mean_word_length': 4.0672451193058565, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 57, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2216432', 'n_tokens_mistral': 1594, 'n_tokens_neox': 1501, 'n_words': 443}