aboutsummaryrefslogtreecommitdiff
path: root/templates/pages
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-01-20 16:03:08 -0800
committerFuwn <[email protected]>2022-01-20 16:03:08 -0800
commit8070becd846a5b59b0ee32015d02eb00a2652f4e (patch)
treee4bb4d40792d75bcb7649ca56b36239753489ad0 /templates/pages
downloadbowl-8070becd846a5b59b0ee32015d02eb00a2652f4e.tar.xz
bowl-8070becd846a5b59b0ee32015d02eb00a2652f4e.zip
bowl: :star:
Diffstat (limited to 'templates/pages')
-rw-r--r--templates/pages/index.tmpl21
-rw-r--r--templates/pages/notice.tmpl11
2 files changed, 32 insertions, 0 deletions
diff --git a/templates/pages/index.tmpl b/templates/pages/index.tmpl
new file mode 100644
index 0000000..75992c5
--- /dev/null
+++ b/templates/pages/index.tmpl
@@ -0,0 +1,21 @@
+{{template "head0"}}
+
+<form method="post" action="api/v1/entry">
+ <label for="type">type</label>
+
+ <input type="radio" id="type_poo" name="type" value="poo" checked> poo
+ <input type="radio" id="type_pee" name="type" value="pee"> pee
+ <br>
+
+ <label for="notes">notes</label>
+ <textarea id="notes" name="notes"></textarea>
+ <br>
+
+ <label for="access_code">access code</label>
+ <input type="password" id="access_code" name="access_code">
+ <br>
+
+ <input type="submit" value="submit">
+</form>
+
+{{template "head1"}}
diff --git a/templates/pages/notice.tmpl b/templates/pages/notice.tmpl
new file mode 100644
index 0000000..3cd9eb4
--- /dev/null
+++ b/templates/pages/notice.tmpl
@@ -0,0 +1,11 @@
+{{template "head0"}}
+
+<p>{{.Notice}}</p>
+
+{{if .Data}}
+ <h2>data</h2>
+
+ {{.Data}}
+{{end}}
+
+{{template "head1"}}