futtern/templates/order_item/_delete_form.html.twig
lubiana 1dc5306967
All checks were successful
/ ls (pull_request) Successful in 27s
/ ls (push) Successful in 27s
add order
2024-06-14 17:41:00 +02:00

4 lines
301 B
Twig

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