<form
method="post"
action="{{ path('contact_delete', {'id': contact.id}) }}"
onsubmit="return confirm('Voulez-vous vraiment supprimer ce contact ?');"
class="d-inline"
>
<input type="hidden" name="_method" value="DELETE">
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ contact.id) }}">
<button class="btn btn-sm btn-secondary btn-action">
<i class="fa fa-trash"></i>
<span class="sr-only">
Delete
</span>
</button>
</form>