guichet/templates/passwd.html

64 lines
1.9 KiB
HTML
Raw Normal View History

2020-02-09 16:45:22 +00:00
{{define "title"}}Mot de passe |{{end}}
2023-07-23 15:14:32 +00:00
{{define "admenu"}}
{{if .Login.CanAdmin}}
<li><a href="/admin/activate">Administrer LDAP</a>
<ul class="submenu">
<li><a href="/admin/activate">Activer des Utilisateur·ices</a></li>
<li><a href="/admin/users">Utilisateur·ices</a></li>
<li><a href="/admin/groups">Groupes</a></li>
</ul>
</li>
{{end}}
{{if .Login}}
<li><a href="/logout">Se déconnecter</a></li>
{{else}}
<li><a href="/">Se connecter</a>
<ul class="submenu">
<li><a href="/">Se connecter</a></li>
<li><a href="/gpas">Mal de passe oublié</a></li>
<li><a href="/invite/new_account">S'enregistrer</a></li>
</ul>
</li>
{{end}}
{{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}}