Replace native confirms with Ladill custom dialogs.
Deploy Ladill Care / deploy (push) Successful in 1m24s
Deploy Ladill Care / deploy (push) Successful in 1m24s
This commit is contained in:
@@ -67,8 +67,7 @@
|
||||
<button type="submit" class="btn-primary w-full">Save changes</button>
|
||||
</form>
|
||||
|
||||
<form method="POST" action="{{ route('care.practitioners.destroy', $practitioner) }}" class="mt-4"
|
||||
onsubmit="return confirm('Remove this practitioner from Care? Existing appointments keep their history.')">
|
||||
<form method="POST" action="{{ route('care.practitioners.destroy', $practitioner) }}" class="mt-4" data-confirm="Remove this practitioner from Care? Existing appointments keep their history." data-confirm-title="Are you sure?" data-confirm-label="Remove">
|
||||
@csrf
|
||||
@method('DELETE')
|
||||
<button type="submit" class="btn-secondary w-full text-rose-700">Remove practitioner</button>
|
||||
|
||||
Reference in New Issue
Block a user