LSBC/templates/episode/_delete_form.html.twig

5 lines
303 B
Twig
Raw Permalink Normal View History

<form method="post" action="{{ path('app_episode_delete', {'id': episode.id}) }}" onsubmit="return confirm('Are you sure you want to delete this item?');">
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ episode.id) }}">
2024-02-25 20:18:24 +01:00
<button class="btn btn-danger">Delete</button>
</form>