8 lines
368 B
Twig
8 lines
368 B
Twig
<form method="post" action="{{ path('app_product_delete', {'id': product.id}) }}" onsubmit="return confirm('Are you sure you want to delete this item?');">
|
|
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ product.id) }}">
|
|
<button class="btn btn-danger delete-button">
|
|
<i class="fas fa-trash"></i>
|
|
Delete
|
|
</button>
|
|
</form>
|