templates/contact/_delete_form.html.twig line 1

Open in your IDE?
  1. <form
  2.     method="post"
  3.     action="{{ path('contact_delete', {'id': contact.id}) }}"
  4.     onsubmit="return confirm('Voulez-vous vraiment supprimer ce contact ?');"
  5.     class="d-inline"
  6. >
  7.     <input type="hidden" name="_method" value="DELETE">
  8.     <input type="hidden" name="_token" value="{{ csrf_token('delete' ~ contact.id) }}">
  9.     <button class="btn btn-sm btn-secondary btn-action">
  10.         <i class="fa fa-trash"></i>
  11.         <span class="sr-only">
  12.             Delete
  13.         </span>
  14.     </button>
  15. </form>