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
/
Option
/
/srv/data/web/vhosts/716cf56cb2.url-de-test.ws/htdocs/templates/Back/Option/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="searchoptionBack"> <h1>Gérez vos prestations</h1> <a href="{{ path('app_create_option') }}" class="btn btn-primary my-2">Ajouter une prestations</a> <table class="table table-hover"> <thead> <tr> <th scope="col">Nom</th> <th scope="col">Alias</th> <th scope="col">Prix</th> <th scope="col">Description (visible sur le site)</th> <th scope="col">Type</th> <th scope="col">Action</th> </tr> </thead> <tbody> {% for option in options %} {% set tableClass = loop.index is even ? 'table-primary' : 'table-default' %} <tr class="{{ tableClass }}"> <td scope="row">{{ option.name }}</td> <td scope="row">{{ option.alias }}</td> <td scope="row">{{ option.price|amount }}</td> <td scope="row">{{ option.description }}</td> <td scope="row">{{ option.isRequired ? 'obligatoire' : 'facultative' }}</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_option', {'id': option.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-option-name="{{ option.name }}" data-bs-target="#staticBackdrop{{option.id}}" data-option-id="{{option.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{{option.id}}" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel{{option.id}}" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="staticBackdropLabel{{option.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 {{ option.name }} </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button> <a href="{{ path('app_delete_option', {'id': option.id}) }}" class="btn btn-danger">Supprimer</a> </div> </div> </div> </div> {% endfor %} </tbody> </table> </div> </div> </div> </div> {% endblock %}