diff options
| author | Alexander Kavon <hawk@alexkavon.com> | 2023-11-28 05:24:30 -0500 |
|---|---|---|
| committer | Alexander Kavon <hawk@alexkavon.com> | 2023-11-28 05:24:30 -0500 |
| commit | 629b0189b7bf20c748a1d37f8803ad0e3ffb8a49 (patch) | |
| tree | 6692374508230b46be3aee323acd7aa25b3d4a91 /ui/pages/user/login.tmpl.html | |
| parent | 7d7059d53891bc1abb284d9b288505a5d406b307 (diff) | |
working container compose w/database, no more auth package, message template partial, working html template writing, auth routes in user/routes.go
Diffstat (limited to 'ui/pages/user/login.tmpl.html')
| -rw-r--r-- | ui/pages/user/login.tmpl.html | 16 |
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}} |
