Skip to content

Commit 93e0ae6

Browse files
committed
Add confirmation prompt to task delete button
1 parent 93f4046 commit 93e0ae6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

resources/views/tasks/view.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
<div class="uk-flex uk-flex-between uk-flex-middle">
8888
<span>
8989
<a href="{{ route('totem.task.edit', ['totemTask' => $task]) }}" class="uk-button uk-button-primary uk-button-small">Edit</a>
90-
<form class="uk-display-inline" action="{{route('totem.task.delete', ['totemTask' => $task])}}" method="post">
90+
<form class="uk-display-inline" action="{{route('totem.task.delete', ['totemTask' => $task])}}" method="post" onsubmit="return confirm('Are you sure you want to delete this task?')">
9191
{{ csrf_field() }}
9292
{{ method_field('delete') }}
9393
<button type="submit" class="uk-button uk-button-danger uk-button-small">Delete</button>

0 commit comments

Comments
 (0)