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
/
716cf56cb2.url-de-test.ws
/
htdocs
/
templates
/
Back
/
Taxe
/
/srv/data/web/vhosts/716cf56cb2.url-de-test.ws/htdocs/templates/Back/Taxe/search.html.twig
{% extends "Back/layout.html.twig" %} {% block content %} <div class="container my-5"> <div class="row"> <div class="col-sm-12"> <div id="searchtaxeBack"> <h1>Gérez vos taxes</h1> <a href="{{ path('app_create_taxe') }}" class="btn btn-primary my-2">Ajouter une taxe</a> <table class="table table-hover"> <thead> <tr> <th scope="col">Nom</th> <th scope="col">Taux</th> <th scope="col">Action</th> </tr> </thead> <tbody> {% for taxe in taxes %} {% set tableClass = loop.index is even ? 'table-primary' : 'table-default' %} <tr class="{{ tableClass }}"> <td scope="row">{{ taxe.name }}</td> <td scope="row">{{ taxe.taux }}</td> <td scope="row"> <div class="dropdown"> <button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false"> Actions </button> <ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1"> <li> <a href="{{ path('app_edit_taxe', {'id': taxe.id}) }}" class="dropdown-item btn btn-warning"> <i class="fa-solid fa-pen-to-square"></i> Modifier </a> </li> <li> <a href="#" data-bs-toggle="modal" data-taxe-name="{{ taxe.name }}" data-bs-target="#staticBackdrop{{taxe.id}}" data-taxe-id="{{taxe.id}}" class="dropdown-item btn btn-danger delete"> <i class="fa-solid fa-trash"></i> Suprimmer </a> </li> </ul> </div> </td> </tr> <!-- Modal --> <div class="modal fade" id="staticBackdrop{{taxe.id}}" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel{{taxe.id}}" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="staticBackdropLabel{{taxe.id}}">Supprimer</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> Vous allez supprimer définitivement {{ taxe.name }} </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Fermer</button> <a href="{{ path('app_delete_taxe', {'id': taxe.id}) }}" class="btn btn-danger">Supprimer</a> </div> </div> </div> </div> {% endfor %} </tbody> </table> </div> </div> </div> </div> {% endblock %}