aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/pages/index.tmpl21
-rw-r--r--templates/pages/notice.tmpl11
-rw-r--r--templates/partials/head0.tmpl18
-rw-r--r--templates/partials/head1.tmpl4
4 files changed, 54 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"}}
diff --git a/templates/partials/head0.tmpl b/templates/partials/head0.tmpl
new file mode 100644
index 0000000..83450dc
--- /dev/null
+++ b/templates/partials/head0.tmpl
@@ -0,0 +1,18 @@
+{{define "head0"}}
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width,initial-scale=1.0">
+
+ <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>💩</text></svg>">
+ <link rel="stylesheet" href="https://unpkg.com/normalize.css/normalize.css" type="text/css">
+ <link rel="stylesheet" href="https://unpkg.com/sakura.css/css/sakura.css" type="text/css">
+
+ <title>bowl</title>
+ </head>
+
+ <body>
+ <h1>bowl</h1>
+{{end}}
diff --git a/templates/partials/head1.tmpl b/templates/partials/head1.tmpl
new file mode 100644
index 0000000..9149e31
--- /dev/null
+++ b/templates/partials/head1.tmpl
@@ -0,0 +1,4 @@
+{{ define "head1" }}
+ </body>
+</html>
+{{ end }}