Connexion page

This commit is contained in:
jleroy
2024-04-23 08:55:19 +02:00
parent b253aa55b0
commit 0a156ee2f7
8 changed files with 41 additions and 13 deletions

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 82 KiB

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="fr" th:replace="~{modele-page :: layout('Accueil',~{::link} , ~{::#container-main})}" xmlns:th="http://www.thymeleaf.org">
<html lang="fr" th:replace="~{modele-page :: layout('Accueil - ENI-Enchères',~{::link} , ~{::#container-main})}" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Accueil</title>
@@ -31,7 +31,7 @@
<div class="d-flex justify-content-between align-items-center">
<div>
<h6>Prix de vente: <span th:text="${article.prixVente}"></span></h6>
<h6 class="text-muted">Fin de l'enchere: <span th:text="${#dates.format(article.dateFinEnch, 'dd/MM/yyyy')}"></span></h6>
<h6 class="text-muted">Fin de l'enchere: <span th:text="${#dates.format(article.dateFinEnch, 'dd/MM/yyyy')}"></span></h6>
</div>
</div>

View File

@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="fr" th:replace="~{modele-page :: layout('Login',~{::link} , ~{::#container-main})}" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
</head>
<body>
<div id="container-main">
<h2>Pour se Connecter :</h2>
<br>
<form th:action="@{/login}" method="post">
<div><label>Identifiant: <input type="text" name="username"/> </label></div>
<div><label>Mot de passe: <input type="password" name="password"/> </label></div>
<div><input type="submit" value="Connexion"/></div>
</form>
<div th:if="${param.error}">
Identifiant ou mot de passe incorrect
</div>
<div th:if="${param.logout}">
Vous avez été déconnecté
</div>
</div>
</body>
</html>

View File

@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<title>[[${title}]]</title>
<link rel="icon" th:href="@{favicon.ico}" />
<link rel="icon" th:href="@{img/favicon.ico}" />
<link href="css/bootstrap/bootstrap.min.css" rel="stylesheet">
<link href="assets/bootstrap-icons/bootstrap-icons.min.css" rel="stylesheet">
</head>
@@ -11,7 +11,7 @@
<header>
<nav class="navbar navbar-expand-lg navbar navbar-dark bg-dark navbar-">
<a class="navbar-brand" href="#">
<img src="logo.png" width="70" height="70" alt="Logo">
<img src="img/logo.png" width="70" height="70" alt="Logo">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>