Add prompt before deleting exercise

This commit is contained in:
Peter Stockings
2023-03-21 00:10:18 +11:00
parent 5cc290601d
commit 305b528f64

View File

@@ -15,6 +15,7 @@
Edit
</a>
<a hx-delete="{{ url_for('delete_exercise', exercise_id=exercise_id) }}"
hx-confirm="Are you sure you wish to delete {{ name }} from exercises?"
class="text-sm font-medium text-cyan-600 hover:bg-gray-100 rounded-lg inline-flex items-center p-2 cursor-pointer">
Remove
</a>