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
/
self
/
root
/
proc
/
212
/
root
/
proc
/
70528
/
cwd
/
templates
/
back
/
command
/
//proc/212/root/proc/self/root/proc/212/root/proc/70528/cwd/templates/back/command/read.html.twig
{% extends "back/layout.html.twig" %} {% block content %} <h1>Commande du {{ command.createdAt|date("d/m/Y") }} de {{ command.deliveryLastname ? command.deliveryLastname : command.lastname }} {{ command.deliveryFirstname ? command.deliveryFirstname : command.firstname }} {% if command.cart.payementStatus == "to_be_started" %} <div class="badge bg-danger float-end">Payment pas encore initié</div> {% elseif command.cart.payementStatus == "finished" %} <div class="badge bg-success float-end">Payement reçu !</div> {% elseif command.cart.payementStatus == "initiated" %} <div class="badge bg-secondary float-end">Choix du mode de payement</div> {% elseif command.cart.payementStatus == "aborted" %} <div class="badge bg-danger float-end">Panier annulé</div> {% elseif command.cart.payementStatus == "waiting_for_transfer" %} <div class="badge bg-warning float-end">En attente du virement</div> {% endif %} </h1> <h2>Utilisateur :</h2><hr> <table class="table"> <thead> <tr> <th>Type de compte</th> <th>Email</th> <th>Téléphone</th> </tr> </thead> <tbody> <tr> {% if command.user %} <td> {% if command.user %} Utilisateur {% else %} Invité {% endif %} </td> <td>{{ command.user.email }}</td> <td>{{ command.user.phone }}</td> {% else %} <td> {% if command.user %} Utilisateur {% else %} Invité {% endif %} </td> <td>{{ command.guest.email }}</td> <td>{{ command.guest.phone }}</td> {% endif %} </tr> </tbody> </table> <h2 class="mt-5">Adresses :</h2><hr> <div class="row"> <div class="col-md-6"> <table class="table"> <thead> <tr> <th>Livraison</th> </tr> </thead> <tbody> <tr> <td>Mode de livraison</td> <td>{{ command.deliveryMode }}</td> </tr> <tr> <td>Adresse</td> <td>{{ command.deliveryAddress ? command.deliveryAddress : command.address }}</td> </tr> <tr> <td>Code postal</td> <td>{{ command.deliveryZipcode ? command.deliveryZipcode : command.zipcode }}</td> </tr> <tr> <td>Ville</td> <td>{{ command.deliveryCity ? command.deliveryCity : command.city }}</td> </tr> <tr> <td>Nom</td> <td>{{ command.deliveryLastname ? command.deliveryLastname : command.lastname }}</td> </tr> <tr> <td>Prénom</td> <td>{{ command.deliveryFirstname ? command.deliveryFirstname : command.firstname }}</td> </tr> <tr> <td>Entreprise</td> {% set company = command.company ? command.company : "Non renseigné" %} <td>{{ command.deliveryCompany ? command.deliveryCompany : company }}</td> </tr> </tbody> </table> </div> <div class="col-md-6"> <table class="table"> <thead> <tr> <th>Facturation</th> </tr> </thead> <tbody> <tr> <td>Adresse</td> <td>{{ command.address }}</td> </tr> <tr> <td>Code postal</td> <td>{{ command.zipcode }}</td> </tr> <tr> <td>Ville</td> <td>{{ command.city }}</td> </tr> <tr> <td>Nom</td> <td>{{ command.lastname }}</td> </tr> <tr> <td>Prénom</td> <td>{{ command.firstname }}</td> </tr> <tr> <td>Entreprise</td> <td>{{ command.company ? command.company : "Non renseigné" }}</td> </tr> </tbody> </table> </div> </div> <h2 class="mt-5">Panier :</h2><hr> {% for item in command.cart.items %} <div class="bg-light p-3 my-5"> <h2>{{ item.product.name }} x{{ item.quantity.quantity }}</h2> <hr> <div class="row"> <div class="col-md-4"> <div>Format</div> <div>Pages</div> <div>Quantité</div> <div>Couleur</div> <div>Finition</div> <div>Pliage</div> <div>Prix</div> <div>Design</div> <div>Message</div> </div> <div class="col-md-8"> <div>{{ item.size.name }}</div> <div>{{ item.pages.name }}</div> <div>{{ item.quantity.quantity }}</div> <div>{{ item.color.name }}</div> <div>{{ item.finishing.name }}</div> <div>{{ item.fold.name }}</div> <div>{{ item.price.price }} €</div> <div> {% if item.design ends with ".jpg" or item.design ends with ".jpeg" or item.design ends with ".png" or item.design ends with ".avif" or item.design ends with ".webp" %} <img src="{{ vich_uploader_asset(item, 'designFile') }}" alt="{{ item.product.name }}" style="max-width: 200px"> {% endif %} <a href="{{ path("app_command_attachment_download", { id : item.id }) }}?token={{ item.downloadToken }}" class="download-design">Télécharger</a> </div> <div>{{ item.textMessage }}</div> </div> </div> </div> {% endfor %} {% endblock %}