Réalisation finale
This commit is contained in:
6
templates/membre/_delete_form.html.twig
Normal file
6
templates/membre/_delete_form.html.twig
Normal file
@@ -0,0 +1,6 @@
|
||||
<form method="post" action="{{ path('app_membre_delete', {'id': membre.id}) }}" onsubmit="return confirm('Êtes-vous sûr de vouloir supprimer ce membre ?');">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ membre.id) }}">
|
||||
<button class="btn btn-danger">
|
||||
<i class="fas fa-trash"></i> Supprimer
|
||||
</button>
|
||||
</form>
|
||||
Reference in New Issue
Block a user