guichet/templates/lost_password.html
2023-07-23 08:36:59 +02:00

35 lines
No EOL
1.1 KiB
HTML

{{define "title"}}G Pas | Je n'ai pas mon mal de passe{{end}}
{{define "body"}}
<h2>G Pas</h2>
<p>Refaire son mot de passe</p>
{{if .ErrorMessage}}
<div class="alert alert-danger">Impossible
<div style="font-size: 0.8em">{{ .ErrorMessage }}</div>
</div>
{{end}}
{{if .Success}}
<div class="alert alert-success mt-4">
Email envoyé au courriel de secours.
</div>
{{end}}
<form method="POST">
<div class="form-group">
<label for="username">Identifiant :</label>
<input type="text" name="username" id="username" class="form-control" value="{{ .Username }}" />
</div>
<div class="form-group">
<label for="mail">Mail (interne aux GV) :</label>
<input type="text" name="mail" id="mail" class="form-control" value="{{ .Mail }}" />
</div>
<div class="form-group">
<label for="othermailbox">Mail de secours :</label>
<input type="text" name="othermailbox" id="othermailbox" class="form-control" value="{{ .OtherMailbox }}" />
</div>
<button type="submit" class="btn btn-primary">Refaire son mal de passe</button>
</form>
<script src="/static/javascript/minio.js"></script>
{{end}}