Nuestro burocrata preferido: Sam Lowry https://lowry.sindominio.net
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lowry/tmpl/password.html

35 lines
1.4 KiB

5 years ago
{{template "header.html"}}
{{template "navbar.html" "password"}}
<div class="container">
<br />
{{if eq . "PassChanged"}}
<h1 class="row justify-content-center">La contraseña ha sido actualizada</h1>
{{else}}
<h1 class="row justify-content-center">Cambia tu contraseña</h1>
{{end}}
<br />
<div class="row justify-content-center">
<form class="col-4" id="needs-validation" action="/password/" method="post" novalidate>
<div class="form-group">
<label for="oldpass">Antigua contraseña:</label>
<input type="password" class="form-control {{if eq . "WrongOldpass"}}is-invalid{{end}}" id="oldpass" name="oldpass" placeholder="Contraseña">
<div class="invalid-feedback">Contraseña incorrecta.</div>
</div>
<div class="form-group">
<label for="password">Nueva contraseña:</label>
<input type="password" class="form-control" id="password" name="password" placeholder="Contraseña">
</div>
<div class="form-group">
<label for="password2">Repite la contraseña:</label>
<input type="password" class="form-control {{if eq . "WrongPass"}}is-invalid{{end}}" id="password2" name="password2" placeholder="Contraseña">
<div class="invalid-feedback">No son la misma contraseña.</div>
</div>
<button type="submit" class="btn btn-primary">Entrar</button>
</form>
</div>
</div>
{{template "footer.html"}}