Files
herbarium/templates/species/_delete_form.html.twig
clfreville2 49d60871c9 Add post and species forms
Squashed commit of the following:
Author: Hugo PRADIER <Hugo.PRADIER2@etu.uca.fr>
Author: bastien ollier <bastien.ollier@etu.uca.fr>
Author: clfreville2 <clement.freville2@etu.uca.fr>
Reviewed on #7
2024-06-07 18:31:20 +02:00

5 lines
292 B
Twig

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