McDoPlus/templates/avis/_delete_form.html.twig
ExostFlash 755b6c2ccb add
2023-11-27 13:13:11 +01:00

4 lines
281 B
Twig

<form method="post" action="{{ path('app_avis_delete', {'id': avi.id}) }}" onsubmit="return confirm('Are you sure you want to delete this item?');">
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ avi.id) }}">
<button class="btn">Delete</button>
</form>