{% extends 'base.html.twig' %} {% block title %}Expliquer le problème lié à l'intervention{% endblock %} {% block body %}

Rédigez ici votre rapport

Précisez pourquoi l'intervention n'a pas pu aboutir.

{% if intervention is defined %}

{{ intervention.name }}

{{ intervention.description }}

{{ intervention.adresse }}

{% endif %}
{{ form_start(echecForm) }} {{ form_row(echecForm.activite, { label: 'Activite' }) }} {{ form_row(echecForm.detail_echec) }} {# Vérifier si la route est "rapport_edit", on affiche les images #}

Images

{% if app.request.attributes.get('_route') == 'rapport_edit' %} {% for image in echec.images %}
{{ image.name }} Supprimer
{% endfor %} {% endif %}
{{ form_row(echecForm.image, {'attr': {'multiple': 'multiple'}}) }}

Video

{% if app.request.attributes.get('_route') == 'vt_edit' %} {% for video in echec.videos %}
{{ video.name }} Supprimer
{% endfor %} {% endif %} {{ form_row(echecForm.video) }} {{ form_row(echecForm.nouveau_rdv, { label: 'Le client souhaite un nouveau rendez-vous ?' }) }} {{ form_row(echecForm.equipement_a_prevoir, { label: 'Préciser s\'il faut prévoir des équipements' }) }} {{ form_row(echecForm.commentaire, { label: 'Commentaire' }) }} {{ form_row(echecForm.numero_client, { label: 'Le numero de téléphone du client' }) }} {{ form_row(echecForm.adresse_mail_client, { label: 'L\'adresse email du client *' }) }} {{ form_end(echecForm) }}
{% endblock %} {% block javascripts %} {% endblock %}