aboutsummaryrefslogtreecommitdiff
path: root/ui/pages/user/login.tmpl.html
diff options
context:
space:
mode:
Diffstat (limited to 'ui/pages/user/login.tmpl.html')
-rw-r--r--ui/pages/user/login.tmpl.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/ui/pages/user/login.tmpl.html b/ui/pages/user/login.tmpl.html
new file mode 100644
index 0000000..5c42f97
--- /dev/null
+++ b/ui/pages/user/login.tmpl.html
@@ -0,0 +1,16 @@
+{{define "title"}}Login{{end}}
+
+{{define "main"}}
+ <h1>Login</h1>
+ <form hx-post="/user" action="/user/auth" method="POST" hx-target="#messages" hx-swap="outerHTML">
+ <label>
+ Username
+ <input type="text" placeholder="username" name="username" />
+ </label>
+ <label>
+ Password
+ <input type="password" placeholder="password" name="password" />
+ </label>
+ <button type="submit" hx-disabled-elt="this">Login</button>
+ </form>
+{{end}}