Prompt user for confirmation prior to deleting exercise
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
<!-- Delete Icon -->
|
||||
<button hx-delete="{{ url_for('delete_exercise', exercise_id=exercise.exercise_id) }}" hx-target="closest li"
|
||||
hx-swap="outerHTML" class="text-red-500 hover:text-red-700 ml-2"
|
||||
hx-confirm="Are you sure you wish to delete {{ exercise.name }} from exercises?"
|
||||
_="on click from me call event.stopPropagation()">
|
||||
<!-- Trash icon SVG -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"
|
||||
|
||||
Reference in New Issue
Block a user