Informations
{% if not isEditing %}
{% else %}
{% endif %}
{% include "partials/_flash.html.twig" %}
{% if isEditing %}
{{ form_start(form, {
attr: {
'data-model': 'norender|*',
class: 'flex flex-col gap-2 text-left m-2'
}
}) }}
-
Infos :
{{ form_widget(form.infos) }}
-
Statut en attente :
{{ form_widget(form.pending) }}
{{ form_widget(form.dateOfPending) }}
-
Contraception :
{{ form_widget(form.sterilized) }}
{{ form_widget(form.infosSterilized) }}
{{ form_end(form) }}
{% else %}
-
Infos :
{{ fellow.infos ?: "Pas d'informations" }}
-
Statut :
{% if fellow.departureStatus %}
{% if fellow.departureStatus == "décès" %}
Individu décédé
{% elseif fellow.departureStatus == "transfert" %}
Individu transféré
{% elseif fellow.departureStatus == "disparition" %}
Individu disparu
{% endif %}
{% else %}
{% if fellow.pending %}
🕒 En attente depuis le
{{ fellow.dateOfPending|date('d/m/Y') }}
{% else %}
Individu actif
{% endif %}
{% endif %}
-
Contraception :
{% if fellow.sterilized %}
{{ fellow.infosSterilized }}
{% else %}
Pas de contraception active
{% endif %}
{% endif %}