aboutsummaryrefslogtreecommitdiff
path: root/templates/login.html
diff options
context:
space:
mode:
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}}