aboutsummaryrefslogtreecommitdiff
path: root/ui/pages/user/create.tmpl.html
diff options
context:
space:
mode:
authorAlexander Kavon <hawk@alexkavon.com>2023-11-28 05:24:30 -0500
committerAlexander Kavon <hawk@alexkavon.com>2023-11-28 05:24:30 -0500
commit629b0189b7bf20c748a1d37f8803ad0e3ffb8a49 (patch)
tree6692374508230b46be3aee323acd7aa25b3d4a91 /ui/pages/user/create.tmpl.html
parent7d7059d53891bc1abb284d9b288505a5d406b307 (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/create.tmpl.html')
-rw-r--r--ui/pages/user/create.tmpl.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/ui/pages/user/create.tmpl.html b/ui/pages/user/create.tmpl.html
new file mode 100644
index 0000000..5e1087a
--- /dev/null
+++ b/ui/pages/user/create.tmpl.html
@@ -0,0 +1,20 @@
+{{define "title"}}Create User{{end}}
+
+{{define "main"}}
+ <h1>Create User</h1>
+ <form hx-post="/user" action="/user" method="POST" hx-target="#messages" hx-swap="outerHTML">
+ <label>
+ Email
+ <input type="email" placeholder="email" name="email" />
+ </label>
+ <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">Create</button>
+ </form>
+{{end}}