Généalogie {% if not isEditing %} {% else %}
{% endif %}

{% include "partials/_flash.html.twig" %}

Parents

{% if isEditing %} {{ form_start(form, { attr: { 'data-model': 'norender|*', class: 'flex justify-evenly w-full' } }) }} {% if fellow.type == 'adult' %} {{ form_widget(form.fatherName) }} {{ form_widget(form.motherName) }} {% else %}
{{ form_widget(form.father) }}
{{ form_widget(form.mother) }}
{% endif %} {{ form_end(form) }} {% else %}
{% if fellow.fatherName and fellow.type == "adult" %}

{{ fellow.fatherName }}

{% elseif fellow.father and fellow.type == "young" %} {{ fellow.father.name }} {% else %}

Inconnu

{% endif %} {% if fellow.motherName and fellow.type == "adult" %}

{{ fellow.motherName }}

{% elseif fellow.mother and fellow.type == "young" %} {{ fellow.mother.name }} {% else %}

Inconnu

{% endif %}
{% endif %}

Progénitures - {{ this.nbrChildren }}

{% if this.nbrChildren > 0 %}
{{ render_chart(this.chartChildrenBySex) }}
{{ render_chart(this.chartChildrenByDepartur) }}
{% endif %}
Date Individu Statut
{% for child in this.children %}
{% if child.birthdayBis == null %} {% if child.justMonth %} En {{ child.birthday|date('m/Y') }} {% elseif child.justYear %} En {{ child.birthday|date('Y') }} {% else %} Le {{ child.birthday|date('d/m/Y') }} {% endif %} {% else %} Entre le {{ child.birthday|date('d/m/Y') }} et le {{ child.birthdayBis|date('d/m/Y') }} {% endif %}
{% if child.departureStatus is same as('transfert') %} Tranféré {% elseif child.departureStatus is same as('décès') %} Décédé {% elseif child.departureStatus is same as('disparition') %} Disparu {% else %} Encore au parc {% endif %}
{% else %}
Aucun petit enregistré
{% endfor %}
{% if this.showPasswordModal %}

Mot de passe requis

{% endif %}