aboutsummaryrefslogtreecommitdiff
path: root/templates/login.html
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-02-09 16:46:26 +0100
committerAlex Auvolat <alex@adnab.me>2020-02-09 16:46:26 +0100
commitebb7553cc87b5a2504edc8e06ee12375fd925029 (patch)
tree83b17cb90ed9e631a8056a26e6a09334a747e68f /templates/login.html
parent3fe43f85aefedc6223aee45171df483e2f57c381 (diff)
downloadguichet-ebb7553cc87b5a2504edc8e06ee12375fd925029.tar.gz
guichet-ebb7553cc87b5a2504edc8e06ee12375fd925029.zip
Implement logout
Diffstat (limited to 'templates/login.html')
-rw-r--r--templates/login.html21
1 files changed, 15 insertions, 6 deletions
diff --git a/templates/login.html b/templates/login.html
index 80642ea..0801884 100644
--- a/templates/login.html
+++ b/templates/login.html
@@ -1,12 +1,21 @@
-{{define "title"}}Log in{{end}}
+{{define "title"}}{{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">
+ {{if .ErrorMessage}}
+ <div class="alert alert-danger">Impossible de se connecter.
+ <div style="font-size: 0.8em">{{ .ErrorMessage }}</div>
+ </div>
+ {{end}}
+ <div class="form-group">
+ <label for="username">Nom d'utilisateur:</label>
+ <input type="text" name="username" id="username" class="form-control" value="{{ .Username }}" />
+ </div>
+ <div class="form-group">
+ <label for="password">Mot de passe:</label>
+ <input type="password" name="password" id="password" class="form-control" />
+ </div>
+ <button type="submit" class="btn btn-primary">Se connecter</button>
</form>
{{end}}