{% extends 'base.html.twig' %} {% block title %}Intervention {% endblock %} {% block body %}

Détail de l'intervention sur le vélo N° {{intervention.velo.identifiant}}

Date de réception {{ intervention.dateReception ? intervention.dateReception|date('d-m-Y H:i') : '' }}
Provenance {% if intervention.velo.particulier != null %} {{intervention.velo.particulier.nom}} {{intervention.velo.particulier.prenom}} {% endif %}
Vélo {{intervention.velo.marque}} {{intervention.velo.couleur}} de taille {{intervention.velo.taille}} pouce
Réparation {% if intervention.reparation !=null %}
Effectuée le {{intervention.reparation.datePriseEnCharge|date('d-m-Y H:i')}}
{% if intervention.reparation.dateFinReparation !=null %}
Validée le {{intervention.reparation.dateFinReparation|date('d-m-Y H:i')}}
{% if intervention.velo.particulier %} {% if intervention.facturation !=null %}
Facturé le {{intervention.facturation.dateFacturation|date('d-m-Y')}}
{% else %} Pas encore facturé {% endif %} {% endif %} {% else %} Réparation en cours {% endif %} {% else %} Ajouter une réparation {% endif %}
Opérateurs {% if intervention.operateur != null %} {% for operateur in intervention.operateur %}
{{operateur.nom}} {{operateur.prenom}} {{operateur.poste}}
{% endfor %} {% else %} Aucun opérateur enregistré {% endif %}
{% if is_granted("ROLE_MANAGER") %} {{ include('intervention/_delete_form.html.twig') }} Modifier {% endif %}
{% endblock %}