Prompt user for confirmation prior to deleting exercise

This commit is contained in:
Peter Stockings
2024-11-04 16:55:31 +11:00
parent 7d65f9b8e8
commit 64c3335c29

View File

@@ -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"