guichet/templates/login.html
2020-02-09 17:45:22 +01:00

22 lines
700 B
HTML

{{define "title"}}{{end}}
{{define "body"}}
<h4>S'identifier</h4>
<form method="POST">
{{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}}