Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
web
/
vhosts
/
www.humitest.fr
/
htdocs
/
templates
/
back
/
configuration
/
/srv/data/web/vhosts/www.humitest.fr/htdocs/templates/back/configuration/search.html.twig
{% extends 'back/layout.html.twig' %} {% block title %} Gestion {{'Configuration'|transchoice(2)}} {% endblock %} {% block content %} {# ///////////////// MODAL DELETE ////////////////////#} <div class="modal fade" id="delete" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">Suppression d'un enregistrement</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary rounded" data-dismiss="modal">Fermer</button> <form method="post" action=""> <input id="token" type="hidden" name="_token" value=""> <input type="hidden" name="_method" value="GET"> <button type="submit" class="btn btn-red rounded text-light">Supprimer</button> </form> </div> </div> </div> </div> {# ///////////////// END MODAL DELETE ////////////////////#} <section class="section-padding"> <div class="container"> <h1>Gestion des configuration </h1> <div class="shape"></div> <div class="text-right mt-4"> {# {% if is_granted('ROLE_SUPER_ADMIN') %} #} <a href="{{ path('admin_configuration_create') }}" class="btn btn-red rounded text-light"> <i class="fa fa-plus" aria-hidden="true"></i> Ajouter une configuration </a> {# {% endif %} #} </div> <div class="card mt-4 mb-4"> <!-- <div class="card-header text-center btn-red text-light"> <h4>Liste des configurations</h4> </div> --> <div class="card mt-4 mb-4"> <div class="card-header text-center text-light btn-red" style="background-color:#c11823;"> <h4>Zones d’expédition > France métropolitaine </h4> <h6> Chronopost France métropolitaine </h6> </div> <div class="card-content"> <div class="table-responsive mt-4 mb-4"> <table class="table table-striped table-bordered" width="100%" cellspacing="0" data-page-length='50'> <thead> <tr class="text-center"> {# <th>{% trans %}Id{% endtrans %}</th> #} <th>{% trans %}Zone{% endtrans %}</th> <th>{% trans %}Libellé {% endtrans %}</th> <th>{% trans %}Poids Max{% endtrans %}</th> <th>{% trans %}Coût en € {% endtrans %}</th> <th>Actions</th> {# <th></th> #} </tr> </thead> <tbody> {% for zoneFr in zoneFR %} <tr class="text-center"> {# <td style="width:5%">{{ zoneFr.id }}</td> #} <td style="width:5%"> <img class="w-75" src="https://www.drapeauxdespays.fr/data/flags/w702/fr.png"></td> <td>{{ zoneFr.name }}</td> <td>{{ zoneFr.valeurPoids }} kg</td> <td> {{ zoneFr.value }}€</td> <td style="width:20%" class="text-center"> {% if is_granted('ROLE_ADMIN') %} <a href="{{ path('admin_configuration_update', {'id': zoneFr.id}) }}" title="Modifier" class="btn btn-secondary rounded p-2" aria-label="Modifier"> Modifier <i class="fas fa-edit"></i> </a> {% endif %} {# {% if is_granted('ROLE_SUPER_ADMIN') %} #} <a href="#" title="Supprimer" class="btn-delete btn btn-red rounded p-2 text-light" data-toggle="modal" data-target="#delete" aria-label="Supprimer" id="{{zoneFr.id}}" data-title="{{ zoneFr.name }}" data-path="{{ path('admin_configuration_delete', {'id': zoneFr.id})}}"> <i class="fa fa-times"></i> </a> {# {% endif %} #} </td> </tr> {% else %} <tr> <td colspan="12">Aucun produit phare est selectionné</td> </tr> {% endfor %} </tbody> </table> </div> </div> </div> <div class="card mt-4 mb-4"> <div class="card-header text-center text-light btn-red" style="background-color:#c11823;"> <h4>Zones d’expédition > Dom </h4> <h6> Chronopost DOM : La Réunion, Guadeloupe, Martinique, Guyane Française </h6> </div> <div class="card-content"> <div class="table-responsive mt-4 mb-4"> <table class="table table-striped table-bordered" width="100%" cellspacing="0" data-page-length='50'> <thead> <tr class="text-center"> {# <th>{% trans %}Id{% endtrans %}</th> #} <th>{% trans %}Zone{% endtrans %}</th> <th>{% trans %}Libellé {% endtrans %}</th> <th>{% trans %}Poids Max{% endtrans %}</th> <th>{% trans %}Coût en € {% endtrans %}</th> <th>Actions</th> {# <th></th> #} </tr> </thead> <tbody> {% for zoneDom in zoneDOM %} <tr class="text-center"> {# <td style="width:5%">{{ zoneDom.id }}</td> #} <td style="width:5%"> <img class="w-75" src="https://www.drapeauxdespays.fr/data/flags/w702/gp.png"></td> <td>{{ zoneDom.name }}</td> <td>{{ zoneDom.valeurPoids }} kg</td> <td> {{ zoneDom.value }}€</td> <td style="width:20%" class="text-center"> {% if is_granted('ROLE_ADMIN') %} <a href="{{ path('admin_configuration_update', {'id': zoneDom.id}) }}" title="Modifier" class="btn btn-secondary rounded p-2" aria-label="Modifier"> Modifier <i class="fas fa-edit"></i> </a> {% endif %} {# {% if is_granted('ROLE_SUPER_ADMIN') %} #} <a href="#" title="Supprimer" class="btn-delete btn btn-red rounded p-2 text-light" data-toggle="modal" data-target="#delete" aria-label="Supprimer" id="{{zoneDom.id}}" data-title="{{ zoneDom.name }}" data-path="{{ path('admin_configuration_delete', {'id': zoneDom.id})}}"> <i class="fa fa-times"></i> </a> {# {% endif %} #} </td> </tr> {% else %} <tr> <td colspan="12">Aucun produit phare est selectionné</td> </tr> {% endfor %} </tbody> </table> </div> </div> </div> <div class="card mt-4 mb-4"> <div class="card-header text-center text-light btn-red" style="background-color:#c11823;"> <h4>Zones d’expédition > Europe </h4> <h6>Chronopost Europe :Allemagne, Autriche, Belgique, Danemark, Espagne, Finlande, Grèce, Irlande, Italie, Luxembourg et 4 autres régions </h6> </div> <div class="card-content"> <div class="table-responsive mt-4 mb-4"> <table class="table table-striped table-bordered" width="100%" cellspacing="0" data-page-length='50'> <thead> <tr class="text-center"> {# <th>{% trans %}Id{% endtrans %}</th> #} <th>{% trans %}Zone{% endtrans %}</th> <th>{% trans %}Libellé{% endtrans %}</th> <th>{% trans %}Poids Max{% endtrans %}</th> <th>{% trans %}Coût en € {% endtrans %}</th> <th>Actions</th> {# <th></th> #} </tr> </thead> <tbody> {% for zoneEu in zoneEU %} <tr class="text-center"> {# <td style="width:5%">{{ zoneEu.id }}</td> #} <td style="width:5%"> <img class="w-75" src="https://www.drapeauxdespays.fr/data/org/w580/eu.png"></td> <td>{{ zoneEu.name }}</td> <td>{{ zoneEu.valeurPoids }} kg</td> <td> {{ zoneEu.value }}€</td> <td style="width:20%" class="text-center"> {% if is_granted('ROLE_ADMIN') %} <a href="{{ path('admin_configuration_update', {'id': zoneEu.id}) }}" title="Modifier" class="btn btn-secondary rounded p-2" aria-label="Modifier"> Modifier <i class="fas fa-edit"></i> </a> {% endif %} {# {% if is_granted('ROLE_SUPER_ADMIN') %} #} <a href="#" title="Supprimer" class="btn-delete btn btn-red rounded p-2 text-light" data-toggle="modal" data-target="#delete" aria-label="Supprimer" id="{{zoneEu.id}}" data-title="{{ zoneEu.name }}" data-path="{{ path('admin_configuration_delete', {'id': zoneEu.id})}}"> <i class="fa fa-times"></i> </a> {# {% endif %} #} </td> </tr> {% else %} <tr> <td colspan="12">Aucun produit phare est selectionné</td> </tr> {% endfor %} </tbody> </table> </div> </div> </div> <div class="card-content"> <div class="card-header text-center text-light btn-red" style="background-color:#c11823;"> <h4>Liste des configurations </h4> </div> <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>{% trans %}Id{% endtrans %}</th> <th>{% trans %}Nom{% endtrans %}</th> <th>{% trans %}valeur{% endtrans %}</th> <th>Actions</th> </tr> </thead> <tbody> {% for configuration in configurations %} <tr> <td>{{ configuration.id }}</td> <td>{{ configuration.name }}</td> <td>{{ configuration.value }}</td> <td style="width:20%" class="text-center"> {% if is_granted('ROLE_ADMIN') %} <a href="{{ path('admin_configuration_update', {'id': configuration.id}) }}" title="Modifier" class="btn btn-secondary rounded p-2" aria-label="Modifier"> Modifier <i class="fas fa-edit"></i> </a> {% endif %} {# {% if is_granted('ROLE_SUPER_ADMIN') %} #} <a href="#" title="Supprimer" class="btn-delete btn btn-red rounded p-2 text-light" data-toggle="modal" data-target="#delete" aria-label="Supprimer" id="{{configuration.id}}" data-title="{{ configuration.name }}" data-path="{{ path('admin_configuration_delete', {'id': configuration.id})}}"> <i class="fa fa-times"></i> </a> {# {% endif %} #} </td> </tr> {% else %} <tr> <td colspan="4">Aucun enregistrement</td> </tr> {% endfor %} </tbody> </table> </div> </div> </div> </section> {% endblock %} {% block javascripts %} {{ parent() }} <script src="{{ asset('datatables/jquery.dataTables.js')}}"></script> <script src="{{ asset('datatables/dataTables.bootstrap4.js')}}"></script> <script> $(document).ready(function(){ $(document).on("click", ".btn-delete", function () { var id = $(this).attr('id'); var title = $(this).attr('data-title'); var path = $(this).attr('data-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>"); }); }); </script> <script> $(document).ready(function(){$("#dataTable").DataTable()}); </script> <script type="text/javascript"> $('#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 %}