feat: extract authentication to domain package
This commit was merged in pull request #393.
This commit is contained in:
31
internal/authentication/template/delete_account.templ
Normal file
31
internal/authentication/template/delete_account.templ
Normal file
@@ -0,0 +1,31 @@
|
||||
package template
|
||||
|
||||
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>
|
||||
}
|
||||
Reference in New Issue
Block a user