Files
herbarium/templates/comment/_delete_form.html.twig
2024-06-10 20:56:02 +02:00

5 lines
311 B
Twig

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