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

Liste des demandes de pièces

{% for commande in commandes %} {% else %} {% endfor %}
Id Date de demande Réparation Pièces neuves Pièces d'occasion Détail Actions
{{ commande.id }} {{ commande.date|date('d-m-Y') }} {{commande.reparation.datePriseEnCharge|date('d-m-Y')}} {% for stockNeuf in commande.stockNeufs %}
{{stockNeuf.nomPiece}}
{% endfor %}
{% for stockOccasion in commande.stockOccasions %}
{{stockOccasion.nomPiece}}
{% endfor %}
{% if is_granted("ROLE_MANAGER") %}
{{ include('commande/_delete_form.html.twig') }} {% else %} Aucune action autorisée {% endif %}
Aucune demande enregistrée
Export CSV {% set totalpage = (total / limit )|round(0, 'ceil') %} {% if totalpage != 0 %}
{% endif %}
{% endblock %}