Généalogie
{% if not isEditing %}
{{ ux_icon('iconamoon:edit-light', {class: "w-5 h-5"}) }}
{% else %}
{{ ux_icon('material-symbols:check', {class: "w-5 h-5"}) }}
{{ ux_icon('material-symbols:close', {class: "w-5 h-5"}) }}
{% 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) }}
{{ ux_icon('uis:lock-alt', {class: "w-5 h-5"}) }}
{{ form_widget(form.mother) }}
{{ ux_icon('uis:lock-alt', {class: "w-5 h-5"}) }}
{% 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 %}
{% endif %}