{% include "front/species/fellows/partials/_button_zims.html.twig" %}
{{fellow.name}} {% if fellow.number > 1 %} x{{fellow.number}} {% endif %} {% if fellow.infos %} {{ ux_icon('tabler:info-square-rounded', {class: "w-4 h-4", 'data-tooltip-target': "tooltip-bottom-" ~ fellow.id, 'data-tooltip-placement': "bottom"}) }} {% endif %}
{% if fellow.isSterilized %}
{{ ux_icon('streamline:syringe-solid', {class: "w-4 h-4"}) }}
{% endif %} {% if fellow.isPending %}
{{ ux_icon('material-symbols:pending-actions-rounded', {class: "w-5 h-5"}) }}
{% endif %}
{{ ux_icon('wpf:birthday', {class: "w-4 h-4"}) }}

Naissance

{% if fellow.birthday and fellow.birthdayBis == null %} {% if fellow.justYear %} En {{fellow.birthday|date("Y")}} {% elseif fellow.justMonth %} En {{fellow.birthday|format_datetime(pattern='MMM Y')}} {% else %} Le {{fellow.birthday|date("d/m/Y")}} {% endif %} {% elseif fellow.birthday and fellow.birthdayBis %} Entre le {{fellow.birthday|date("d/m/Y")}} et le {{fellow.birthdayBis|date('d/m/Y')}} {% else %} Date de naissance inconnue {% endif %}
{% if birthday %}
{% if deathAfterDeparture %} {{this.calculateDeath(birthday, deathAfterDeparture, birthdayBis)}} {% elseif departureAt and fellow.departureStatus == "décès" %} {{this.calculateDeath(birthday, departureAt, birthdayBis)}} {% else %} {{this.calculateAge(birthday, birthdayBis)}} {% endif %}
{% endif %} {% if fellow.type == 'adult' %} {{ ux_icon('fa6-solid:archway', {class: "w-4 h-4"}) }} {{birthplace ? birthplace.name}} {% endif %} {% if fellow.type == 'adult' %} {% if fellow.fatherName == null and fellow.motherName == null %} {{ ux_icon('mdi:dna', {class: "w-4 h-4"}) }} De parents inconnus {% else %} {{ ux_icon('mdi:dna', {class: "w-4 h-4"}) }} {% if fellow.motherName %} {{fellow.motherName}} {% else %} Mère inconnue {% endif %} & {% if fellow.fatherName %} {{fellow.fatherName}} {% else %} Père inconnu {% endif %} {% endif %} {% elseif fellow.type == 'young' %} {% if father == null and mother == null %} {{ ux_icon('mdi:dna', {class: "w-4 h-4"}) }} De parents inconnus {% else %} {{ ux_icon('mdi:dna', {class: "w-4 h-4"}) }} {% if mother %} {{mother.name}} {% else %} Mère inconnue {% endif %} & {% if father %} {{father.name}} {% else %} Père inconnu {% endif %} {% endif %} {% endif %}
{% if fellow.type == 'adult' %}
{{ ux_icon('majesticons:door-enter-line', {class: "w-4 h-4"}) }}

Arrivée à Beauval

{% if arrivalAt %} {% if fellow.infoArrival == "En" %} {{fellow.infoArrival ~ " " ~ arrivalAt|date('m/Y')}} {% elseif fellow.infoArrival != "En" %} {{(fellow.infoArrival == null ? "Le" : "") ~ " " ~ arrivalAt|date('d/m/Y')}} {% endif %} {% else %} Date d'arrivée inconnue {% endif %} {{ ux_icon('fa6-solid:archway', {class: "w-4 h-4"}) }} {{fellow.provenance ? fellow.provenance.name}}
{% endif %} {% if fellow.departureStatus %}
{{ ux_icon(this.getDepartureInfos(fellow.departureStatus).icon, {class: "w-4 h-4"}) }}

{{ this.getDepartureInfos(fellow.departureStatus).title }}

{% if departureAt %} {% if fellow.infoDeparture == "En" %} {{fellow.infoDeparture ~ " " ~ departureAt|date('m/Y')}} {% elseif fellow.infoDeparture != "En" %} {{(fellow.infoDeparture == null ? "Le" : fellow.infoDeparture) ~ " " ~ departureAt|date('d/m/Y')}} {% endif %} {% else %} Date de {{fellow.departureStatus}} inconnue {% endif %} {% if destination %} {{ ux_icon('fa6-solid:archway', {class: "w-4 h-4"}) }} {{destination.name}} {% endif %} {% if deathAfterDeparture %} {{ ux_icon('ph:cross-fill', {class: "w-4 h-4"}) }} {{deathAfterDeparture|date('d/m/Y')}} {% endif %}
{% endif %}
{{ ux_icon('grommet-icons:map-location', {class: "w-4 h-4"}) }}

Dernière localisation connue à Beauval

{{location.name}} / {{enclosure.name}}

{% if fellow.documentary %}
{{ ux_icon('solar:book-2-bold', {class: "w-4 h-4"}) }}

Documentation

{% for part in fellow.documentary|split('-') %}
{% if loop.index > 1 %} -{{ part }} {% else %} {{ part }} {% endif %}
{% endfor %}
{% endif %}
{{this.progressBar}}%
{% if fellow.number > 1 and fellow.departureStatus == null %} {% include 'partials/_modal.html.twig' with { modalId: 'divide-modal-' ~ fellow.id, modalTitle: "Diviser le groupe", modalBody: (include("front/species/fellows/partials/_form_divide_fellow.html.twig")), } %} {% endif %} {% include 'partials/_modal.html.twig' with { modalId: 'edit-modal-' ~ fellow.id, modalTitle: "Modifier " ~ (fellow.number > 1 ? "le groupe" : "l'individu"), modalBody: (include("front/species/fellows/partials/_form_edit_fellow.html.twig")), } %} {% include 'partials/_modal.html.twig' with { modalId: 'move-modal-' ~ fellow.id, modalTitle: "Déplacer " ~ (fellow.number > 1 ? "le groupe" : "l'individu") ~ " dans un autre enclos", modalBody: (include("front/species/fellows/partials/_form_move_fellow.html.twig")), } %} {% include 'partials/_modal.html.twig' with { modalId: 'departure-modal-' ~ fellow.id, modalTitle: "Transférer, déclarer mort ou disparu", modalBody: (include("front/species/fellows/partials/_form_departure_fellow.html.twig")), } %}