guichet/templates/passwd.html

46 lines
1.4 KiB
HTML
Raw Normal View History

2023-07-23 15:23:03 +00:00
{{define "title"}}Mal de passe{{end}}
2020-02-09 16:45:22 +00:00
2023-07-23 15:14:32 +00:00
{{define "admenu"}}
<li><a href="/logout">Se déconnecter</a></li>
2023-07-24 08:52:50 +00:00
<li> &lt;&nbsp;<a href="#">Se connecter</a>
2023-07-23 15:14:32 +00:00
{{end}}
2020-02-09 16:45:22 +00:00
{{define "body"}}
2020-02-09 18:56:01 +00:00
<div class="d-flex">
2023-07-21 14:18:40 +00:00
<h2>Modifier mon mot de passe</h2>
2020-02-09 18:56:01 +00:00
</div>
2020-02-09 16:45:22 +00:00
{{if .ErrorMessage}}
2020-02-09 18:56:01 +00:00
<div class="alert alert-danger mt-4">Impossible d'effectuer la modification.
2020-02-09 16:45:22 +00:00
<div style="font-size: 0.8em">{{ .ErrorMessage }}</div>
</div>
{{end}}
{{if .Success}}
2020-02-09 18:56:01 +00:00
<div class="alert alert-success mt-4">
2020-02-09 16:45:22 +00:00
Nouveau mot de passe enregistré.
</div>
{{else}}
2020-02-09 18:56:01 +00:00
<form method="POST" class="mt-4">
2020-02-09 16:45:22 +00:00
<div class="form-group">
<label for="password">Nouveau mot de passe :</label>
<input type="password" id="password" name="password" class="form-control" />
</div>
2020-02-09 18:56:01 +00:00
{{if .TooShortError}}
<div class="alert alert-warning">
Le mot de passe choisi est trop court (minimum 8 caractères).
</div>
{{end}}
2020-02-09 16:45:22 +00:00
<div class="form-group">
<label for="password2">Répéter le mot de passe :</label>
<input type="password" id="password2" name="password2" class="form-control" />
</div>
{{if .NoMatchError}}
<div class="alert alert-warning">
Les deux mots de passe entrés ne correspondent pas.
</div>
{{end}}
2020-02-09 18:56:01 +00:00
<button type="submit" class="btn btn-primary">Changer de mot de passe</button>
2020-02-09 16:45:22 +00:00
</form>
{{end}}
{{end}}