diff --git a/prototype/src/main/java/org/hso/ecommerce/controller/intern/InternArticleController.java b/prototype/src/main/java/org/hso/ecommerce/controller/intern/InternArticleController.java index 1d54302..35d76f8 100644 --- a/prototype/src/main/java/org/hso/ecommerce/controller/intern/InternArticleController.java +++ b/prototype/src/main/java/org/hso/ecommerce/controller/intern/InternArticleController.java @@ -83,7 +83,7 @@ public class InternArticleController { @RequestParam(value = "price_netto", required = true) String pricenetto, @RequestParam(value = "reorderMaxPrice", required = true) String reorderMaxPrice, @RequestParam(value = "autobuy", required = true) Boolean shouldReorder, - @RequestParam(value = "categories", required = true) String categories, + @RequestParam(value = "categorie", required = true) String categories, @RequestParam(value = "img", required = true) MultipartFile imgFile) { Article tmpArticle = articleRepository.findArticleById(id); // get the old article @@ -93,7 +93,7 @@ public class InternArticleController { tmpArticle.categories.clear(); // loop through all categories strings and create a new category if a new one; - // also adds the categorys to the article + // also adds the categories to the article for (String category : separatedCategories) { tmpArticle.categories.add(categoryRepository.findCategoryByName(category.trim()) .orElseGet(() -> new Category(category.trim()))); diff --git a/prototype/src/main/resources/templates/intern/listedArticles/id.html b/prototype/src/main/resources/templates/intern/listedArticles/id.html index 1fad38c..135147b 100644 --- a/prototype/src/main/resources/templates/intern/listedArticles/id.html +++ b/prototype/src/main/resources/templates/intern/listedArticles/id.html @@ -24,21 +24,21 @@

- +

- + - Details + Details

- +

@@ -47,14 +47,14 @@

-  EUR
+  EUR
(19% Mwst.)
=  EUR Brutto

- -  EUR + +  EUR

@@ -66,18 +66,18 @@
- +

Bitte jede Kategorien in eine eigene Zeile

- +

- - + +

Lagerbestand: @@ -88,12 +88,12 @@

- Lagerbuchung + Lagerbuchung

-

diff --git a/prototype/src/main/resources/templates/intern/listedArticles/index.html b/prototype/src/main/resources/templates/intern/listedArticles/index.html index ad33f89..6986f0b 100644 --- a/prototype/src/main/resources/templates/intern/listedArticles/index.html +++ b/prototype/src/main/resources/templates/intern/listedArticles/index.html @@ -29,7 +29,7 @@ + data-target-id="main-table"/> @@ -53,10 +53,10 @@ - + - +
diff --git a/prototype/src/main/resources/templates/intern/offeredArticles/index.html b/prototype/src/main/resources/templates/intern/offeredArticles/index.html index 7a18ccc..79d926a 100644 --- a/prototype/src/main/resources/templates/intern/offeredArticles/index.html +++ b/prototype/src/main/resources/templates/intern/offeredArticles/index.html @@ -54,7 +54,7 @@
- +