{% if isEditing %}
  • {{ form_start(form, { attr: { 'data-model': 'norender|*', class: 'flex flex-col gap-2 justify-evenly w-full' } }) }}
    {{ form_widget(form.entrerAt) }} {{ form_widget(form.exitAt) }}
    {{ form_widget(form.location, {'attr': {'data-model': 'locationId'}}) }} {{ form_widget(form.enclosure) }}
    {{ form_end(form) }}
  • {% elseif locationFellow.id %}
  • {% if locationFellow.exitAt %}
    Du {{ locationFellow.entrerAt|date('d/m/Y') }} au {{ locationFellow.exitAt|date('d/m/Y') }} :
    {{ locationFellow.location.name ~ " - " ~ locationFellow.enclosure.name }}
    {% else %}
    Depuis le {{ locationFellow.entrerAt|date('d/m/Y') }} :
    {{ locationFellow.location.name ~ " - " ~ locationFellow.enclosure.name }}
    {% endif %}
    {% include "front/species/fellows/partials/_delete_form_location_fellow.html.twig" %}
  • {% endif %}