aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/pages/user/create.tmpl.html8
-rw-r--r--ui/pages/user/me.tmpl.html5
2 files changed, 9 insertions, 4 deletions
diff --git a/ui/pages/user/create.tmpl.html b/ui/pages/user/create.tmpl.html
index 5e1087a..47143c6 100644
--- a/ui/pages/user/create.tmpl.html
+++ b/ui/pages/user/create.tmpl.html
@@ -2,7 +2,7 @@
{{define "main"}}
<h1>Create User</h1>
- <form hx-post="/user" action="/user" method="POST" hx-target="#messages" hx-swap="outerHTML">
+ <form action="/user" method="POST">
<label>
Email
<input type="email" placeholder="email" name="email" />
@@ -12,9 +12,9 @@
<input type="text" placeholder="username" name="username" />
</label>
<label>
- Password
- <input type="password" placeholder="password" name="password" />
+ Secret
+ <input type="password" placeholder="secret" name="secret" />
</label>
- <button type="submit" hx-disabled-elt="this">Create</button>
+ <button type="submit">Create</button>
</form>
{{end}}
diff --git a/ui/pages/user/me.tmpl.html b/ui/pages/user/me.tmpl.html
new file mode 100644
index 0000000..3f3950c
--- /dev/null
+++ b/ui/pages/user/me.tmpl.html
@@ -0,0 +1,5 @@
+{{ define "title"}}Profile{{end}}
+
+{{ define "main"}}
+<h1>Welcome, {{.Username}}</h1>
+{{end}}