FestinHegre/templates/reservations/_delete_form.html.twig

5 lines
301 B
Twig
Raw Normal View History

<form method="post" action="{{ path('app_reservations_delete', {'id': reservation.id}) }}" onsubmit="return confirm('Es-tu sur de vouloir le supprimer ?');">
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ reservation.id) }}">
<button class="btn">Supprimer</button>
</form>