Prompt for confirmation before performing any deletes
This commit is contained in:
@@ -15,6 +15,7 @@
|
|||||||
Edit
|
Edit
|
||||||
</a>
|
</a>
|
||||||
<a hx-delete="{{ url_for('delete_person', person_id=person_id) }}"
|
<a hx-delete="{{ url_for('delete_person', person_id=person_id) }}"
|
||||||
|
hx-confirm="Are you sure you wish to delete {{ name }} from users?"
|
||||||
class="text-sm font-medium text-cyan-600 hover:bg-gray-100 rounded-lg inline-flex items-center p-2 cursor-pointer">
|
class="text-sm font-medium text-cyan-600 hover:bg-gray-100 rounded-lg inline-flex items-center p-2 cursor-pointer">
|
||||||
Remove
|
Remove
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -42,6 +42,7 @@
|
|||||||
Edit
|
Edit
|
||||||
</a>
|
</a>
|
||||||
<a hx-delete="{{ url_for('delete_topset', person_id=person_id, workout_id=workout_id, topset_id=topset_id) }}"
|
<a hx-delete="{{ url_for('delete_topset', person_id=person_id, workout_id=workout_id, topset_id=topset_id) }}"
|
||||||
|
hx-confirm="Are you sure you wish to delete this topset?"
|
||||||
class="text-sm font-medium text-cyan-600 hover:bg-gray-100 rounded-lg inline-flex items-center p-2 cursor-pointer">
|
class="text-sm font-medium text-cyan-600 hover:bg-gray-100 rounded-lg inline-flex items-center p-2 cursor-pointer">
|
||||||
Delete
|
Delete
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -134,7 +134,7 @@
|
|||||||
Add top set
|
Add top set
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button
|
<button hx-confirm="Are you sure you wish to delete this workout?"
|
||||||
hx-delete="{{ url_for('delete_workout', person_id=workout['PersonId'], workout_id=workout['WorkoutId']) }}"
|
hx-delete="{{ url_for('delete_workout', person_id=workout['PersonId'], workout_id=workout['WorkoutId']) }}"
|
||||||
_='on click trigger closeModal'
|
_='on click trigger closeModal'
|
||||||
class="sm:inline-flex text-white bg-red-200 hover:bg-red-700 focus:ring-4 focus:ring-red-200 font-medium rounded-lg text-sm px-5 py-2.5 text-center items-center cursor-pointer">Delete
|
class="sm:inline-flex text-white bg-red-200 hover:bg-red-700 focus:ring-4 focus:ring-red-200 font-medium rounded-lg text-sm px-5 py-2.5 text-center items-center cursor-pointer">Delete
|
||||||
|
|||||||
Reference in New Issue
Block a user