home.html 557 Bytes
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Page d'accueil</title>
</head>
<body>

    <div th:switch="${customerRole}">
        <div th:case="'ADMIN'"><a th:href="@{/registration}">Enregistrer des utilisateurs</a></div>
        <div th:case="'USER'"></div>
    </div>
    <form th:action="@{/logout}" method="GET">
        <button type="Submit">Logout </button>
    </form>

    <h1><span th:text="${customerName}" th:remove="tag"></span> est connecté(e) !</h1>

</body>
</html>