fichier langue / bootstrap
This commit is contained in:
@@ -34,4 +34,9 @@ public class LoginController {
|
|||||||
return "redirect:/security/login?error";
|
return "redirect:/security/login?error";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/logout")
|
||||||
|
public String logout(Model modele) {
|
||||||
|
return "security/logout";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ public class WebSecurityConfig{
|
|||||||
http.authorizeHttpRequests((requests) -> requests
|
http.authorizeHttpRequests((requests) -> requests
|
||||||
.requestMatchers("/", "/accueil").permitAll()
|
.requestMatchers("/", "/accueil").permitAll()
|
||||||
.requestMatchers("/accueil", "/login", "/inscription/**", "/searchArticle", "/article/**", "/change-language", "/profile/**").permitAll()
|
.requestMatchers("/accueil", "/login", "/inscription/**", "/searchArticle", "/article/**", "/change-language", "/profile/**").permitAll()
|
||||||
.requestMatchers("/css/**", "/images/**", "/assets/**", "/img/**", "/js/**").permitAll()
|
.requestMatchers("/css/**", "/images/**", "/assets/**", "/img/**", "/js/**", "/assets/**").permitAll()
|
||||||
.requestMatchers("/profile/**").authenticated()
|
.requestMatchers("/profile/**").authenticated()
|
||||||
.requestMatchers("/admin").hasRole("ADMIN")
|
.requestMatchers("/admin").hasRole("ADMIN")
|
||||||
.anyRequest().authenticated())
|
.anyRequest().authenticated())
|
||||||
|
|||||||
@@ -1 +1,3 @@
|
|||||||
accueil.search.title = Rechercher un article par nom...
|
accueil.search.title = Rechercher un article par nom...
|
||||||
|
accueil.search.cat = Toutes les catégories
|
||||||
|
accueil.search.button = Recherche
|
||||||
@@ -1,9 +1,7 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="fr" th:replace="~{modele-page :: layout('Accueil - ENI-Enchères',~{::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>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<link href="css/bootstrap/bootstrap.min.css" rel="stylesheet">
|
|
||||||
<link href="assets/bootstrap-icons/bootstrap-icons.min.css" rel="stylesheet">
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="container-main">
|
<div id="container-main">
|
||||||
@@ -18,11 +16,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<select class="form-control" name="searchCategory">
|
<select class="form-control" name="searchCategory">
|
||||||
<option value="">Toutes les catégories</option>
|
<option value="" th:text="#{accueil.search.cat}"></option>
|
||||||
<option th:each="category : ${categories}" th:value="${category.id}" th:text="${category.libelle}"></option>
|
<option th:each="category : ${categories}" th:value="${category.id}" th:text="${category.libelle}"></option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" class="btn btn-primary">Recherche</button>
|
<button type="submit" class="btn btn-primary"th:text="#{accueil.search.button}"></button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -55,6 +53,5 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="js/bootstrap/bootstrap.min.js"></script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@@ -1,7 +1,9 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="fr" th:replace="~{modele-page :: layout('Modifier votre profile',~{::link} , ~{::#container-main})}" xmlns:th="http://www.thymeleaf.org">
|
<html lang="fr" th:replace="~{modele-page :: layout('Modifier votre profile' , ~{::#link}, ~{::#container-main})}" xmlns:th="http://www.thymeleaf.org">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
|
<link href="css/bootstrap/bootstrap.min.css" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="assets/fontawesome/css/all.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="container-main">
|
<div id="container-main">
|
||||||
@@ -144,5 +146,6 @@
|
|||||||
<button type="submit">Supprimer mon compte</button>
|
<button type="submit">Supprimer mon compte</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
<script src="js/bootstrap/bootstrap.min.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -3,15 +3,15 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>[[${title}]]</title>
|
<title>[[${title}]]</title>
|
||||||
<link rel="icon" th:href="@{img/favicon.ico}" />
|
<link rel="icon" th:href="@{/img/favicon.ico}" />
|
||||||
<link href="css/bootstrap/bootstrap.min.css" rel="stylesheet">
|
<link href="/css/bootstrap/bootstrap.min.css" rel="stylesheet">
|
||||||
<link rel="stylesheet" href="assets/fontawesome/css/all.css">
|
<link rel="stylesheet" href="/assets/fontawesome/css/all.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
<nav class="navbar navbar-expand-lg navbar navbar-dark bg-dark navbar-">
|
<nav class="navbar navbar-expand-lg navbar navbar-dark bg-dark navbar-">
|
||||||
<a class="navbar-brand" href="/accueil">
|
<a class="navbar-brand" href="/accueil">
|
||||||
<img src="img/logo.png" width="70" height="70" alt="Logo">
|
<img src="/img/logo.png" width="70" height="70" alt="Logo">
|
||||||
</a>
|
</a>
|
||||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
<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>
|
<span class="navbar-toggler-icon"></span>
|
||||||
@@ -97,7 +97,6 @@
|
|||||||
© 2024 Copyright:
|
© 2024 Copyright:
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
|
<script src="/js/bootstrap/bootstrap.min.js"></script>
|
||||||
<script src="js/bootstrap/bootstrap.min.js"></script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user