HegreLand/templates/representation/_delete_form.html.twig

5 lines
331 B
Twig
Raw Permalink Normal View History

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