Prompt for confirmation before performing any deletes

This commit is contained in:
Peter Stockings
2023-03-20 22:52:02 +11:00
parent 2d40ac1720
commit 5cc290601d
3 changed files with 3 additions and 1 deletions

View File

@@ -15,6 +15,7 @@
Edit
</a>
<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">
Remove
</a>