diff options
author | Alex Auvolat <alex@adnab.me> | 2020-02-09 15:44:18 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-02-09 15:44:18 +0100 |
commit | e72034c430eb8e78a87d4b1d312e4a9c11f3df14 (patch) | |
tree | 6aa953d3969757ab2de76b525f0840abf0b23e99 /templates | |
parent | 8f5ab6cab3d21029d08e66c5ce99159bdd8a4c7f (diff) | |
download | guichet-e72034c430eb8e78a87d4b1d312e4a9c11f3df14.tar.gz guichet-e72034c430eb8e78a87d4b1d312e4a9c11f3df14.zip |
Implement login
Diffstat (limited to 'templates')
-rw-r--r-- | templates/layout.html | 13 | ||||
-rw-r--r-- | templates/login.html | 12 |
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}} |