From 79fc4ce674b91975868e0cad0cba204d99c0d7d6 Mon Sep 17 00:00:00 2001 From: jleroy Date: Wed, 24 Apr 2024 10:32:03 +0200 Subject: [PATCH] Ajout article v2 --- .../fr/eni/enchere/controllers/ArticleController.java | 2 +- src/main/resources/templates/newArticle.html | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main/java/fr/eni/enchere/controllers/ArticleController.java b/src/main/java/fr/eni/enchere/controllers/ArticleController.java index 0e2b5d3..3a27909 100644 --- a/src/main/java/fr/eni/enchere/controllers/ArticleController.java +++ b/src/main/java/fr/eni/enchere/controllers/ArticleController.java @@ -42,7 +42,7 @@ public class ArticleController { } @GetMapping("/new") - public String test(@PathVariable(name = "slug")int id, Model model) { + public String test(Model model) { model.addAttribute("categories", categorieService.findAllCategories()); return "newArticle"; } diff --git a/src/main/resources/templates/newArticle.html b/src/main/resources/templates/newArticle.html index 50c3ea8..db1fbf7 100644 --- a/src/main/resources/templates/newArticle.html +++ b/src/main/resources/templates/newArticle.html @@ -23,9 +23,11 @@
@@ -54,7 +56,7 @@ -

Retrait

+

Retrait