MedicalTrainingTracker/src/main/webapp/vue/login.jsp

42 lines
1.8 KiB
Plaintext

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ page isELIgnored="false"%>
<%@ include file="base/language.jsp" %>
<!DOCTYPE html>
<html lang="${language}">
<head>
<%@ include file="base/header.jsp"%>
<spring:url value="/static/css/signin.css" var="signinCSS" />
<link href="${signinCSS}" rel="stylesheet">
</head>
<body>
<div class="container">
<spring:url value="/login" var="loginURL_POST" />
<form id="loginForm" class="form-signin" action="${loginURL_POST}" method="POST">
<h2 class="form-signin-heading"><fmt:message key="authentication.title"></fmt:message></h2>
<label for="username"><fmt:message key="authentication.label.login"></fmt:message></label>
<input type="text" id="username" name="username" class="form-control" placeholder="<fmt:message key="authentication.placeholder.login"></fmt:message>" required autofocus />
<label for="username"><fmt:message key="authentication.label.password"></fmt:message></label>
<input type="password" id="inputPassword" name="password" class="form-control" placeholder="<fmt:message key="authentication.placeholder.password"></fmt:message>" required />
<button class="btn btn-lg btn-primary btn-block" type="submit"><fmt:message key="authentication.button.submit"></fmt:message></button>
<br/>
<p id="errorAuth" style="color: red;" hidden>Erreur lors de l'authentification</p>
<p id="errorBDD" style="color: red;" hidden></p>
</form>
</div>
<%@ include file="base/footer.jsp"%>
</body>
</html>