summaryrefslogtreecommitdiff
path: root/pages/login.templ
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--pages/login.templ (renamed from templ/login.tpl)16
1 files changed, 12 insertions, 4 deletions
diff --git a/templ/login.tpl b/pages/login.templ
index 7a9a049..fed611e 100644
--- a/templ/login.tpl
+++ b/pages/login.templ
@@ -1,10 +1,18 @@
-{{define "body"}}
+package pages
+
+import (
+ "gosten/form"
+)
+
+templ login(u user) {
+ @base() {
<main class="d-flex align-items-center min-vh-100">
<form action="/login" method="post" class="container mx-auto" style="max-width: 440px;">
<img src="/static/euro-money.svg" width="96" height="96" class="mb-4"/>
- {{inputs_and_errors_for . .Errors}}
- {{.CsrfField}}
+ @form.Form(u, u.Errors)
+ @u.Csrf()
<button class="btn btn-primary w-100" type="submit">Log In!</button>
</form>
</main>
-{{end}} \ No newline at end of file
+ }
+} \ No newline at end of file