Skip to content

Commit 7093e13

Browse files
authored
Update index.blade.php
Moved JS confirm on the delete button.
1 parent a61e99e commit 7093e13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/views/products/index.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
<a href="{{ route('products.edit', $product->id) }}" class="btn btn-primary btn-sm"><i class="bi bi-pencil-square"></i> Edit</a>
4545

46-
<button type="submit" class="btn btn-danger btn-sm"><i class="bi bi-trash" onclick="return confirm('Do you want to delete this product?');"></i> Delete</button>
46+
<button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('Do you want to delete this product?');"><i class="bi bi-trash"></i> Delete</button>
4747
</form>
4848
</td>
4949
</tr>
@@ -64,4 +64,4 @@
6464
</div>
6565
</div>
6666

67-
@endsection
67+
@endsection

0 commit comments

Comments
 (0)