From a38b817f20b9c84b74a0e1fa80447d29796a74ff Mon Sep 17 00:00:00 2001 From: localhorst Date: Wed, 27 May 2020 21:07:31 +0200 Subject: [PATCH 1/5] fixed empty input fields fixes #32 --- .../resources/templates/intern/listedArticles/id.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/prototype/src/main/resources/templates/intern/listedArticles/id.html b/prototype/src/main/resources/templates/intern/listedArticles/id.html index 1fad38c..dceafe0 100644 --- a/prototype/src/main/resources/templates/intern/listedArticles/id.html +++ b/prototype/src/main/resources/templates/intern/listedArticles/id.html @@ -24,7 +24,7 @@

- +

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

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

-  EUR +  EUR

@@ -77,7 +77,7 @@

- +

Lagerbestand: From 08dc4bcb477adeca476598e8469c7513b76f6903 Mon Sep 17 00:00:00 2001 From: localhorst Date: Wed, 27 May 2020 21:43:26 +0200 Subject: [PATCH 2/5] fixed spaces in textarea --- .../controller/intern/InternArticleController.java | 4 ++-- .../main/resources/templates/intern/listedArticles/id.html | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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 dceafe0..874cfa8 100644 --- a/prototype/src/main/resources/templates/intern/listedArticles/id.html +++ b/prototype/src/main/resources/templates/intern/listedArticles/id.html @@ -70,9 +70,9 @@

Bitte jede Kategorien in eine eigene Zeile

- +

@@ -93,7 +93,7 @@

-

From 35861d36648802be421a5edf094bfb05f0408ac9 Mon Sep 17 00:00:00 2001 From: localhorst Date: Wed, 27 May 2020 21:53:58 +0200 Subject: [PATCH 3/5] fixed styling for edit/add btn --- .../main/resources/templates/intern/listedArticles/index.html | 2 +- .../main/resources/templates/intern/offeredArticles/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/prototype/src/main/resources/templates/intern/listedArticles/index.html b/prototype/src/main/resources/templates/intern/listedArticles/index.html index ad33f89..ff25abb 100644 --- a/prototype/src/main/resources/templates/intern/listedArticles/index.html +++ b/prototype/src/main/resources/templates/intern/listedArticles/index.html @@ -56,7 +56,7 @@ - +
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 @@
- +
From 2bf383b113888ceecc78fb90e2e9eaa8d967cba8 Mon Sep 17 00:00:00 2001 From: Seil0 Date: Thu, 28 May 2020 13:20:42 +0200 Subject: [PATCH 4/5] fix html warnings --- .../templates/intern/listedArticles/id.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/prototype/src/main/resources/templates/intern/listedArticles/id.html b/prototype/src/main/resources/templates/intern/listedArticles/id.html index 874cfa8..135147b 100644 --- a/prototype/src/main/resources/templates/intern/listedArticles/id.html +++ b/prototype/src/main/resources/templates/intern/listedArticles/id.html @@ -27,18 +27,18 @@

- + - Details + Details

- +

@@ -47,13 +47,13 @@

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

- +  EUR

@@ -66,17 +66,17 @@
- +

Bitte jede Kategorien in eine eigene Zeile

-

- +

@@ -88,7 +88,7 @@

- Lagerbuchung + Lagerbuchung

From f4b0d6a576fe674a52bfd8a498060e3252489bae Mon Sep 17 00:00:00 2001 From: Seil0 Date: Thu, 28 May 2020 13:22:28 +0200 Subject: [PATCH 5/5] fix html warnings [2] --- .../main/resources/templates/intern/listedArticles/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prototype/src/main/resources/templates/intern/listedArticles/index.html b/prototype/src/main/resources/templates/intern/listedArticles/index.html index ff25abb..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,7 +53,7 @@ - +