49 lines
1.5 KiB
Text
49 lines
1.5 KiB
Text
package auth
|
|
|
|
import "gitnet.fr/deblan/budget/view/template"
|
|
|
|
templ Page(hasError bool) {
|
|
<!doctype html>
|
|
<html>
|
|
@template.Head("Login")
|
|
<body>
|
|
<section class="vh-100 gradient-custom">
|
|
<div class="container py-5 h-100">
|
|
<div class="row d-flex justify-content-center align-items-center h-100">
|
|
<div class="col-12 col-md-8 col-lg-6 col-xl-5">
|
|
<div class="card bg-dark text-white" style="border-radius: 1rem;">
|
|
<div class="card-body p-5">
|
|
<div class="mb-md-5 mt-md-4 pb-5">
|
|
<form action="/login" method="POST">
|
|
if hasError {
|
|
<div class="alert alert-danger">
|
|
Mauvais identifiants.
|
|
</div>
|
|
}
|
|
|
|
<div class="form-outline form-white mb-4">
|
|
<label class="form-label" for="username">Nom d'utilisateur</label>
|
|
<input type="text" name="username" id="username" class="form-control form-control-lg" />
|
|
</div>
|
|
|
|
<div class="form-outline form-white mb-4">
|
|
<label class="form-label" for="password">Mot de passe</label>
|
|
<input type="password" name="password" id="password" class="form-control form-control-lg" />
|
|
</div>
|
|
|
|
<div class="d-grid gap-2">
|
|
<input class="btn btn-lg btn-primary" type="submit" value="Login" />
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
@template.JS()
|
|
</body>
|
|
</html>
|
|
}
|