From d4ea4c38741660140406df4eca80df260487ec05 Mon Sep 17 00:00:00 2001 From: FyloZ Date: Mon, 17 Feb 2020 09:52:14 -0500 Subject: [PATCH] =?UTF-8?q?Reusinage=20des=20mod=C3=A8les?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 + .../core/io/response/ResponseDataType.java | 8 +- src/main/resources/templates/images/add.html | 2 +- .../resources/templates/material/edit.html | 28 ++-- .../resources/templates/material/remover.html | 2 +- .../resources/templates/material/simdut.html | 2 +- .../templates/materialType/edit.html | 2 +- src/main/resources/templates/recipe/edit.html | 155 +++++++++++------- .../resources/templates/recipe/explore.html | 6 +- src/main/resources/updates.md | 5 + 10 files changed, 127 insertions(+), 86 deletions(-) diff --git a/.gitignore b/.gitignore index 153c933..eeec143 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,6 @@ HELP.md ### VS Code ### .vscode/ + +/logs/ +/workdir/ diff --git a/src/main/java/dev/fyloz/trial/colorrecipesexplorer/core/io/response/ResponseDataType.java b/src/main/java/dev/fyloz/trial/colorrecipesexplorer/core/io/response/ResponseDataType.java index 44bfbeb..6019cf3 100644 --- a/src/main/java/dev/fyloz/trial/colorrecipesexplorer/core/io/response/ResponseDataType.java +++ b/src/main/java/dev/fyloz/trial/colorrecipesexplorer/core/io/response/ResponseDataType.java @@ -9,7 +9,7 @@ import java.util.stream.Stream; public enum ResponseDataType { MATERIAL("material", Material.class), MATERIALS("materials", ArrayList.class, MATERIAL), - MATERIAL_ID("materialId", Integer.class), + MATERIAL_ID("materialId", Long.class), MATERIAL_CODE("materialCode", String.class), MATERIAL_TYPE("materialType", MaterialType.class), @@ -18,7 +18,7 @@ public enum ResponseDataType { RECIPE("recipe", Recipe.class), RECIPES("recipes", ArrayList.class, RECIPE), - RECIPE_ID("recipeId", Integer.class), + RECIPE_ID("recipeId", Long.class), RECIPE_CODE("recipeCode", String.class), RECIPE_MAP("recipeMap", HashMap.class), @@ -27,7 +27,7 @@ public enum ResponseDataType { MIX("mix", Mix.class), MIXES("mixes", ArrayList.class, MIX), - MIX_ID("mixId", Integer.class), + MIX_ID("mixId", Long.class), MIX_TYPE("mixType", MixType.class), MIX_TYPES("mixTypes", ArrayList.class, MIX_TYPE), @@ -37,7 +37,7 @@ public enum ResponseDataType { COMPANY("company", Company.class), COMPANIES("companies", ArrayList.class, COMPANY), - COMPANY_ID("companyId", Integer.class), + COMPANY_ID("companyId", Long.class), COMPANY_NAME("companyName", String.class), IMAGE("image", String.class), diff --git a/src/main/resources/templates/images/add.html b/src/main/resources/templates/images/add.html index bf97a76..f0f0401 100644 --- a/src/main/resources/templates/images/add.html +++ b/src/main/resources/templates/images/add.html @@ -12,7 +12,7 @@
- +
diff --git a/src/main/resources/templates/material/edit.html b/src/main/resources/templates/material/edit.html index 2198091..e96b7e8 100644 --- a/src/main/resources/templates/material/edit.html +++ b/src/main/resources/templates/material/edit.html @@ -87,24 +87,28 @@
- diff --git a/src/main/resources/templates/material/remover.html b/src/main/resources/templates/material/remover.html index 27d6fee..e20cf34 100644 --- a/src/main/resources/templates/material/remover.html +++ b/src/main/resources/templates/material/remover.html @@ -36,7 +36,7 @@ diff --git a/src/main/resources/templates/material/simdut.html b/src/main/resources/templates/material/simdut.html index 7303221..827e641 100644 --- a/src/main/resources/templates/material/simdut.html +++ b/src/main/resources/templates/material/simdut.html @@ -14,7 +14,7 @@

- + diff --git a/src/main/resources/templates/materialType/edit.html b/src/main/resources/templates/materialType/edit.html index a368d36..213f20a 100644 --- a/src/main/resources/templates/materialType/edit.html +++ b/src/main/resources/templates/materialType/edit.html @@ -2,7 +2,7 @@ + th:include="fragments.html :: head(#{materialType.editing.title(${materialType.name})}, 'form')"> diff --git a/src/main/resources/templates/recipe/edit.html b/src/main/resources/templates/recipe/edit.html index 7b012ae..e400c44 100644 --- a/src/main/resources/templates/recipe/edit.html +++ b/src/main/resources/templates/recipe/edit.html @@ -183,102 +183,131 @@