Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
trash
/
vhost_www.traiteur-75.fr_1689065491
/
htdocs
/
templates
/
back
/
command
/
/srv/data/trash/vhost_www.traiteur-75.fr_1689065491/htdocs/templates/back/command/search.html.twig
{% extends 'back/layout.html.twig' %} {% block title %} Gestion des commandes {% endblock %} {% block content %} <section class="section-padding"> <div class="container"> <h1>Gestion des commandes</h1> <div class="shape"></div> <div class="card mt-4 mb-4"> <div class="card-header text-center"> <h4>Liste des commandes</h4> </div> <div class="card-content"> <div class="table-responsive mt-4 mb-4"> <table class="table table-striped table-bordered" id="dataTable" width="100%" cellspacing="0" data-page-length='50'> <thead> <tr> <th>N°</th> <th>Utilisateur</th> <th>Type</th> <th>Date de la commande</th> <th>Date de livraison</th> <th>Total</th> <th>Actions</th> </tr> </thead> <tbody> {% for command in commands %} <tr> <td>{{ command.orderKey }}</td> <td>{{command.user ? "Oui" : "Non"}}</td> <td>{{command.type}}</td> <td>{{ command.createdAt ? command.createdAt|date('d/m/Y') : '' }}</td> <td>{{ command.dateDelivery ? command.dateDelivery|date('d/m/Y') : '' }}</td> <td>{{ command.total }}€</td> <td> <a class='btn-sm btn-secondary' href="{{absolute_url(path('app_home')) ~ 'upload/billing/' ~ command.billing}}" title="Téléchager la facture"> <i class="fas fa-download"></i> </a> </td> </tr> {% else %} <tr> <td colspan="5">Aucun enregistrement</td> </tr> {% endfor %} </tbody> </table> </div> </div> </div> </section> {% endblock %} {% block javascripts %} {{ parent() }} <script> window.addEventListener("DOMContentLoaded", (event) => { $(document).on("click", ".btn-delete", function () { var id = $(this).attr('id'); var title = $(this).attr('data-title'); var path = $(this).attr('data-path'); console.log(id) console.log(title) console.log(path) $('.modal-footer form').attr('action', path); $('#token').val("{{ csrf_token('delete' ~"+id+") }}"); $('.modal-body').html("<p>Confirmez-vous la suppression de: <strong>" + title + "</strong></p>"); }); $('#dataTable').DataTable({ language: { processing: "Traitement en cours...", search: "Rechercher :", lengthMenu: "Afficher _MENU_ éléments", info: "Affichage de l'élement _START_ à _END_ sur _TOTAL_ éléments", infoEmpty: "Affichage de l'élement 0 à 0 sur 0 éléments", infoFiltered: "(filtré de _MAX_ éléments au total)", infoPostFix: "", loadingRecords: "Chargement en cours...", zeroRecords: "Aucun élément à afficher", emptyTable: "Aucune donnée disponible dans le tableau", paginate: { first: "Premier", previous: "Précédent", next: "Suivant", last: "Dernier" }, aria: { sortAscending: ": activer pour trier la colonne par ordre croissant", sortDescending: ": activer pour trier la colonne par ordre décroissant" } }, aaSorting: [] }); }); </script> {% endblock %}