login.html 917 Bytes
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Add users page</title>
    <meta charset="utf-8"/>
</head>
    <body>
        <div>
            <h5>Add new users</h5>
            <form th:action="@{/login}" method="get">
                <div class="form1">
                    <label for="username">User Name: </label>
                    <input type="text" id="username" placeholder="Enter UserName" name="pseudo"/>
                </div>
                <div class="form2">
                    <label for="password">Password: </label>
                    <input type="password" id="password" placeholder="Enter Password" name="password"/>
                </div>
                <button type="submit">Ajouter</button>
            </form>
            <div th:if="${message != null}">
                <span th:text="${message}"></span>
            </div>
        </div>
    </body>
</html>