futtern/templates/menu_item/_delete_form.html.twig
lubiana 674adcba60
All checks were successful
/ ls (pull_request) Successful in 37s
/ ls (push) Successful in 39s
/ ls (release) Successful in 25s
#42: allow updates to menuitems
2024-08-15 18:22:46 +02:00

4 lines
298 B
Twig

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