From 6602abd7ff7a068d1ddf0d3a15fd788bc4a95c48 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 20 May 2020 19:51:29 +0200 Subject: [PATCH] Product-only: - renamed adminCategoryController to adminProductCategoryController - added column with filter for categoryShownInStatistics flag - added missing i18n key MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- ...inProductCategoryActionWebRequestBean.java | 6 +++--- .../localization/product_de_DE.properties | 1 + .../localization/product_en_US.properties | 1 + .../admin_product_category_edit.xhtml | 2 +- .../admin_product_category_list.xhtml | 20 ++++++++++++++++++- web/guest/user/user_list.xhtml | 2 +- 6 files changed, 26 insertions(+), 6 deletions(-) diff --git a/src/java/org/mxchange/jfinancials/beans/product_category/action/FinancialAdminProductCategoryActionWebRequestBean.java b/src/java/org/mxchange/jfinancials/beans/product_category/action/FinancialAdminProductCategoryActionWebRequestBean.java index 87d7c80e..a147087b 100644 --- a/src/java/org/mxchange/jfinancials/beans/product_category/action/FinancialAdminProductCategoryActionWebRequestBean.java +++ b/src/java/org/mxchange/jfinancials/beans/product_category/action/FinancialAdminProductCategoryActionWebRequestBean.java @@ -115,7 +115,7 @@ public class FinancialAdminProductCategoryActionWebRequestBean extends BaseFinan /** * Adds given category data from request to database */ - public void addCategory () { + public void addProductCategory () { // Is i18n key already used? if (this.productCategoryListController.isCategoryI18nKeyAdded(this.getCategoryI18nKey())) { // Throw exception @@ -255,11 +255,11 @@ public class FinancialAdminProductCategoryActionWebRequestBean extends BaseFinan } /** - * Updates given category data from request to database + * Updates given product category data from request to database. *

* @return Redirection outcome */ - public String updateCategory () { + public String updateProductCategory () { // Check if current category is set if (this.getCurrentCategory() == null) { // Throw NPE diff --git a/src/java/org/mxchange/localization/product_de_DE.properties b/src/java/org/mxchange/localization/product_de_DE.properties index a85a1622..fd4ca7c6 100644 --- a/src/java/org/mxchange/localization/product_de_DE.properties +++ b/src/java/org/mxchange/localization/product_de_DE.properties @@ -213,3 +213,4 @@ ADMIN_EDIT_PRODUCT_CATEGORY_MINIMUM_DATA=Geben Sie mindestens den I18n-Schluesse BUTTON_ADMIN_EDIT_PRODUCT_CATEGORY=Produktkategorie \u00e4ndern ADMIN_EDIT_PRODUCT_CATEGORY_TITLE=Produktkategorie mit Id {0} editieren: ADMIN_PRODUCT_CATEGORY_NOT_UPDATED=Sie haben die Produktkategorie nicht ge\u00e4ndert. +SHOWN_IN_STATISTICS_HEADER=In Statistiken angezeigt: diff --git a/src/java/org/mxchange/localization/product_en_US.properties b/src/java/org/mxchange/localization/product_en_US.properties index aff88ae3..2bebb528 100644 --- a/src/java/org/mxchange/localization/product_en_US.properties +++ b/src/java/org/mxchange/localization/product_en_US.properties @@ -172,3 +172,4 @@ ADMIN_EDIT_PRODUCT_CATEGORY_MINIMUM_DATA=Please enter at least the i18n key to e BUTTON_ADMIN_EDIT_PRODUCT_CATEGORY=Change product category ADMIN_EDIT_PRODUCT_CATEGORY_TITLE=Edit product category Id {0}: ADMIN_PRODUCT_CATEGORY_NOT_UPDATED=You have not changed the product category. +SHOWN_IN_STATISTICS_HEADER=Shown in statistics: diff --git a/web/admin/product_category/admin_product_category_edit.xhtml b/web/admin/product_category/admin_product_category_edit.xhtml index d80f14a1..e7934c14 100644 --- a/web/admin/product_category/admin_product_category_edit.xhtml +++ b/web/admin/product_category/admin_product_category_edit.xhtml @@ -69,7 +69,7 @@ diff --git a/web/admin/product_category/admin_product_category_list.xhtml b/web/admin/product_category/admin_product_category_list.xhtml index 67c61b13..ccbcdcba 100644 --- a/web/admin/product_category/admin_product_category_list.xhtml +++ b/web/admin/product_category/admin_product_category_list.xhtml @@ -155,6 +155,24 @@ + + + + + + + + + + + + + diff --git a/web/guest/user/user_list.xhtml b/web/guest/user/user_list.xhtml index 43392523..349a5a1c 100644 --- a/web/guest/user/user_list.xhtml +++ b/web/guest/user/user_list.xhtml @@ -56,7 +56,7 @@ - + -- 2.39.5