35 lines
1.5 KiB
HTML
35 lines
1.5 KiB
HTML
|
|
<!DOCTYPE html>
|
|
<html xmlns:th="http://www.thymeleaf.org">
|
|
<head>
|
|
<title>Login | Weight Tracker</title>
|
|
<link th:href="@{/css/sb-admin-2.min.css}" rel="stylesheet">
|
|
</head>
|
|
<body class="bg-gradient-primary d-flex align-items-center" style="height:100vh;">
|
|
<div class="container">
|
|
<div class="row justify-content-center">
|
|
<div class="col-md-4">
|
|
<div class="card shadow">
|
|
<div class="card-body">
|
|
<h4 class="text-center mb-3">Iniciar sesión</h4>
|
|
<form th:action="@{/do-login}" method="post">
|
|
<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>
|
|
<div class="mb-3">
|
|
<input class="form-control" name="username" placeholder="Usuario" required>
|
|
</div>
|
|
<div class="mb-3">
|
|
<input class="form-control" type="password" name="password" placeholder="Contraseña" required>
|
|
</div>
|
|
<button class="btn btn-primary w-100" type="submit">Entrar</button>
|
|
</form>
|
|
<div class="text-danger mt-2" th:if="${param.error}">Credenciales incorrectas</div>
|
|
<div class="text-success mt-2" th:if="${param.logout}">Sesión cerrada</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script th:src="@{/js/sb-admin-2.min.js}" defer></script>
|
|
</body>
|
|
</html>
|