HegreLand/templates/ride/_delete_form.html.twig

5 lines
279 B
Twig
Raw Normal View History

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