{% extends 'base.html.twig' %} {% block body %}

MON EQUIPE

{% for flashMessage in app.flashes('errLicense') %} {% endfor %} {% for message in app.flashes('mag-refus') %} {% endfor %} {% for operateur in operateur %}

Technicien

{{ operateur.name }} {{ operateur.surname }}

{{ operateur.user.email }}

{% if operateur.tel is defined %}

{{ operateur.tel }}

{% endif %}

{% if operateur.vehicule %}Véhicule : {{ operateur.vehicule }} {% endif %}

{% if operateur.kilometrage %}Kilométrage : {{ operateur.kilometrage }} {% endif %}

{% if operateur.rapport %}-> a fait {{ operateur.rapport|length }}{% if operateur.rapport|length > 1 %} rapports {% else %} rapport {% endif %}{% endif %}

{% if operateur.visitetechnique %}-> a fait {{ operateur.visitetechnique|length }} {% if operateur.visitetechnique|length > 1 %} visites techniques {% else %} visite technique {% endif %}{% endif %}

{% if operateur.interventions is not empty %} a été affecté sur {{ operateur.interventions|length }} {% if operateur.interventions|length > 1 %}interventions{% else %}intervention{% endif %} {% else %} n'a pas encore été affecté à une intervention. {% endif %}

{% if operateur.user.roles == ["ROLE_OPERATEUR","ROLE_MAGASINIER"] %} {% elseif operateur.user.roles == ["ROLE_OPERATEUR"] %} {% endif %}

{# MODAL voir les visites techniques #} {# MODAL voir les interventions #} {# MODAL voir les rapports #} {% endfor %} {% for commercial in commercial %}

Commercial

{{commercial.name}} {{ commercial.surname }}

{{ commercial.user.email }}

{% if commercial.tel is defined %}

{{ commercial.tel }}

{% endif %}

{% if commercial.vehicule %}Véhicule : {{ commercial.vehicule }} {% endif %}

{% if commercial.kilometrage %}Kilométrage : {{ commercial.kilometrage }} {% endif %}

{% if commercial.user.prospections %}-> a fait {{ commercial.user.prospections|length }}{% if commercial.user.prospections|length > 0 %} prospections {% else %} prospection {% endif %}{% endif %}

{% if commercial.intervention is not empty %} a été affecté sur {{ commercial.intervention|length }} {% if commercial.intervention|length > 1 %}interventions{% else %}intervention{% endif %} {% else %} n'a pas encore été affecté à une intervention. {% endif %}

{# MODAL voir les rapports #} {# MODAL voir les interventions #} {% endfor %}
{% endblock %}