feat: improve modals

This commit is contained in:
Philipp Dormann 2025-03-28 11:40:35 +01:00
parent 194c3c4886
commit e7a69ebdca
Signed by: philipp
GPG Key ID: 3BB9ADD52DCA4314
5 changed files with 10 additions and 15 deletions

View File

@ -80,13 +80,8 @@
</div> </div>
<div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"> <div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
<h3 class="text-lg leading-6 font-medium text-gray-900"> <h3 class="text-lg leading-6 font-medium text-gray-900">
{$_("confirm-delete")} {$_("please-confirm-the-deletion-of-card")}
</h3> </h3>
<div class="mt-2 mb-6">
<p class="text-sm text-gray-500">
{$_("please-confirm-the-deletion-of-card")}
</p>
</div>
<div class="w-full"> <div class="w-full">
{$_("card")} #{delete_card.code}<br /> {$_("card")} #{delete_card.code}<br />
<span class="inline-block"> <span class="inline-block">
@ -108,7 +103,7 @@
<button <button
on:click={submit} on:click={submit}
type="button" type="button"
class="w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 sm:ml-3 sm:w-auto sm:text-sm" class="w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-red-600 text-base font-medium text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"
> >
{$_("delete")} {$_("delete")}
</button> </button>

View File

@ -151,7 +151,7 @@
(obj) => obj.id !== t.id (obj) => obj.id !== t.id
); );
toast.dismiss(); toast.dismiss();
toast($_("contact-deleted")); toast.success($_("contact-deleted"));
}); });
}} }}
tabindex="0" tabindex="0"

View File

@ -78,10 +78,10 @@
</div> </div>
<div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"> <div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
<h3 class="text-lg leading-6 font-medium text-gray-900"> <h3 class="text-lg leading-6 font-medium text-gray-900">
{$_("confirm-delete")} {$_("please-confirm-the-deletion-of-scan")}
</h3> </h3>
<div class="mt-2 mb-6"> <div class="mt-2 mb-6">
{$_("please-confirm-the-deletion-of-scan")} #{delete_scan.id} #{delete_scan.id}
</div> </div>
</div> </div>
</div> </div>
@ -90,7 +90,7 @@
<button <button
on:click={submit} on:click={submit}
type="button" type="button"
class="w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 sm:ml-3 sm:w-auto sm:text-sm" class="w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-red-600 text-base font-medium text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"
> >
{$_("delete")} {$_("delete")}
</button> </button>

View File

@ -335,9 +335,9 @@
"permissions": "Berechtigungen", "permissions": "Berechtigungen",
"permissions-updated": "Berechtigungen aktualisiert!", "permissions-updated": "Berechtigungen aktualisiert!",
"phone": "Telefon", "phone": "Telefon",
"please-confirm-the-deletion-of-card": "Bitte bestätige die Löschung der Karte", "please-confirm-the-deletion-of-card": "Karte löschen?",
"please-confirm-the-deletion-of-donation": "Sponsoring löschen?", "please-confirm-the-deletion-of-donation": "Sponsoring löschen?",
"please-confirm-the-deletion-of-scan": "Bitte bestätige die Löschung des Scans", "please-confirm-the-deletion-of-scan": "Scan löschen?",
"please-copy-the-token-and-store-it-somewhere-save": "Bitte kopiere dir den Token und bewahre ihn gut auf.", "please-copy-the-token-and-store-it-somewhere-save": "Bitte kopiere dir den Token und bewahre ihn gut auf.",
"please-provide-a-password": "Bitte gebe ein Passwort an...", "please-provide-a-password": "Bitte gebe ein Passwort an...",
"please-provide-the-nessecary-information-to-add-a-new-donor": "Bitte mach die Notwendigen Angaben, um eine neuen Sponsor zu erstellen", "please-provide-the-nessecary-information-to-add-a-new-donor": "Bitte mach die Notwendigen Angaben, um eine neuen Sponsor zu erstellen",

View File

@ -335,9 +335,9 @@
"permissions": "Permissions", "permissions": "Permissions",
"permissions-updated": "Permissions updated!", "permissions-updated": "Permissions updated!",
"phone": "Phone", "phone": "Phone",
"please-confirm-the-deletion-of-card": "Please confirm the deletion of this card", "please-confirm-the-deletion-of-card": "delete card?",
"please-confirm-the-deletion-of-donation": "delete donation?", "please-confirm-the-deletion-of-donation": "delete donation?",
"please-confirm-the-deletion-of-scan": "Please confirm the deletion of scan", "please-confirm-the-deletion-of-scan": "delete scan?",
"please-copy-the-token-and-store-it-somewhere-save": "Please copy the token and store it somewhere safe.", "please-copy-the-token-and-store-it-somewhere-save": "Please copy the token and store it somewhere safe.",
"please-provide-a-password": "Please provide a password...", "please-provide-a-password": "Please provide a password...",
"please-provide-the-nessecary-information-to-add-a-new-donor": "Please provide the nessecary information to add a new donor", "please-provide-the-nessecary-information-to-add-a-new-donor": "Please provide the nessecary information to add a new donor",