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