Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
212
/
root
/
proc
/
212
/
root
/
proc
/
self
/
root
/
proc
/
70528
/
cwd
/
templates
/
back
/
command
/
//proc/212/root/proc/212/root/proc/self/root/proc/70528/cwd/templates/back/command/list.html.twig
{% extends "back/layout.html.twig" %} {% block content %} <h1>Liste des commandes</h1> <table class="command-table"> <thead> <tr> <th>ID</th> <th>Payement</th> <th>Statut</th> <th>Prix</th> <th>Articles</th> <th>Adresse - code postal - ville</th> <th>Date</th> <th>Actions</th> </tr> </thead> <tbody> {% for command in commands %} <tr> <td>{{ command.id }}</td> <td> {% if command.cart.payementStatus == "to_be_started" %} <div class="badge bg-danger">Payment pas encore initié</div> {% elseif command.cart.payementStatus == "finished" %} <div class="badge bg-success">Payement reçu !</div> {% elseif command.cart.payementStatus == "initiated" %} <div class="badge bg-secondary">Choix du mode de payement</div> {% elseif command.cart.payementStatus == "aborted" %} <div class="badge bg-danger">Panier annulé</div> {% elseif command.cart.payementStatus == "waiting_for_transfer" %} <div class="badge bg-warning">En attente du virement</div> {% endif %} </td> <td> {% if command.status %} {{ command.status.name }} {% endif %} </td> <td>{{ command.cart.price }} €</td> <td> {% for item in command.cart.items %} {{ item.product.name }} {% endfor %} </td> <td> {{ command.deliveryAddress ? command.deliveryAddress : command.address }} - {{ command.deliveryZipcode ? command.deliveryZipcode : command.zipcode }} - {{ command.deliveryCity ? command.deliveryCity : command.city }} </td> <td>{{ command.createdAt|date("d/m/Y") }}</td> <td style="position: relative"> <a href="{{ path("back_command_read", { id : command.id }) }}" class="btn btn-primary">Voir le détail</a> <div class="status-toggle btn btn-secondary" onclick="document.getElementById('status-popup-{{command.id}}').classList.toggle('open')">Statut</div> <div class="status-popup" id="status-popup-{{ command.id }}"> <div class="status-popup-close" onclick="document.getElementById('status-popup-{{ command.id }}').classList.remove('open')">×</div> <p>Modifier le status de la commande :</p> <p class="text-danger">Attention, ceci aura pour action d'envoyer le mail correspondant au client.</p> <select class="form-control status-lists" id="command-status-{{ command.id }}"> {% for status in statuses %} <option value="{{ status.id }}">{{ status.name }}</option> {% endfor %} </select> <div class="btn btn-primary mt-3" onclick="changeCommandStatus({{ command.id }})">Confirmer et notifier le client</div> </div> </td> </tr> {% endfor %} </tbody> </table> <script src="{{ asset("js/command-list.js") }}"></script> {% endblock %}