aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/layout.html13
-rw-r--r--templates/login.html12
2 files changed, 25 insertions, 0 deletions
diff --git a/templates/layout.html b/templates/layout.html
new file mode 100644
index 0000000..dd20e7a
--- /dev/null
+++ b/templates/layout.html
@@ -0,0 +1,13 @@
+<!doctype html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>{{template "title"}}</title>
+ <link rel="stylesheet" href="/static/style.css">
+</head>
+<body>
+ <div id="contents">
+ {{template "body" .}}
+ </div>
+</body>
+</html>
diff --git a/templates/login.html b/templates/login.html
new file mode 100644
index 0000000..80642ea
--- /dev/null
+++ b/templates/login.html
@@ -0,0 +1,12 @@
+{{define "title"}}Log in{{end}}
+
+{{define "body"}}
+<h1>Log in</h1>
+
+<form method="POST">
+ <div>{{ .ErrorMessage }}</div>
+ Username: <input type="text" name="username" value="{{ .Username }}" /><br />
+ Password: <input type="password" name="password" /><br />
+ <input type="submit" value="log in">
+</form>
+{{end}}