This repository has been archived on 2025-08-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
web-app-template/template/auth/delete_account.templ
Tim Wundenberg f2951985c2
All checks were successful
Build Docker Image / Build-Docker-Image (push) Successful in 2m37s
Build and Push Docker Image / Build-And-Push-Docker-Image (push) Successful in 2m47s
fix(deps): migrate tailwindcss to v4 and remove daisyui
2025-02-03 23:18:51 +01:00

32 lines
675 B
Plaintext

package auth
templ DeleteAccountComp() {
<form
class="max-w-xl px-2 mx-auto flex flex-col gap-4 h-full justify-center"
hx-post="/api/auth/delete-account"
hx-swap="none"
>
<h2 class="text-6xl mb-6">
Delete Account
</h2>
<p class="text-xl text-red-500 mb-4">
Are you sure you want to delete your account? This action is irreversible.
</p>
<label class="flex items-center gap-2">
<input
type="password"
class="grow"
placeholder="Password"
name="password"
spellcheck="false"
autocomplete="off"
autocorrect="off"
autocapitalize="off"
/>
</label>
<button class="self-end">
Delete Account
</button>
</form>
}