Replace native confirms with Ladill custom dialogs.
Deploy Ladill Link / deploy (push) Successful in 1m10s

This commit is contained in:
isaacclad
2026-07-24 20:56:05 +00:00
parent e1ec3d57d5
commit 0f4890cdfe
8 changed files with 216 additions and 54 deletions
@@ -30,7 +30,7 @@
<p class="mt-1 text-sm text-slate-600">{{ $campaign->description }}</p>
@endif
</div>
<form method="POST" action="{{ route('link.campaigns.destroy', $campaign) }}" onsubmit="return confirm('Delete this campaign? Links stay; they are only unassigned.')">
<form method="POST" action="{{ route('link.campaigns.destroy', $campaign) }}" data-confirm="Delete this campaign? Links stay; they are only unassigned." data-confirm-title="Are you sure?" data-confirm-label="Delete">
@csrf @method('DELETE')
<button type="submit" class="text-sm text-red-600 hover:text-red-700">Delete campaign</button>
</form>
@@ -73,7 +73,7 @@
<button class="rounded-lg border border-emerald-200 px-3 py-1.5 text-xs font-medium text-emerald-700 hover:bg-emerald-50">Make default</button>
</form>
@endif
<form method="POST" action="{{ route('link.domains.destroy', $domain) }}" onsubmit="return confirm('Remove this domain?')">
<form method="POST" action="{{ route('link.domains.destroy', $domain) }}" data-confirm="Remove this domain?" data-confirm-title="Remove this domain?" data-confirm-label="Remove">
@csrf @method('DELETE')
<button class="rounded-lg border border-red-200 px-3 py-1.5 text-xs font-medium text-red-700 hover:bg-red-50">Remove</button>
</form>
+1 -1
View File
@@ -19,7 +19,7 @@
</p>
</div>
@if ($link->is_managed_here)
<form method="POST" action="{{ route('user.links.destroy', $link) }}" onsubmit="return confirm('Delete this link?')">
<form method="POST" action="{{ route('user.links.destroy', $link) }}" data-confirm="Delete this link?" data-confirm-title="Delete this link?" data-confirm-label="Delete">
@csrf @method('DELETE')
<button type="submit" class="text-sm text-red-600 hover:text-red-700">Delete</button>
</form>