From 7d892e1865557ae20d7b199f9cd689ab7eabddf8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 25 Apr 2016 14:34:37 +0200 Subject: [PATCH] added customer pages (may be cherry-picked to pizzaservice) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- nbproject/faces-config.NavData | 101 ++++++++++-------- .../localization/bundle_de_DE.properties | 11 ++ .../localization/bundle_en_US.properties | 11 ++ web/WEB-INF/faces-config.xml | 38 +++++++ web/WEB-INF/templates/admin/admin_menu.tpl | 8 ++ .../customer/admin_customer_delete.xhtml | 22 ++++ web/admin/customer/admin_customer_edit.xhtml | 22 ++++ web/admin/customer/admin_customer_list.xhtml | 22 ++++ web/admin/customer/admin_customer_show.xhtml | 22 ++++ .../customer/admin_customer_unlock.xhtml | 22 ++++ 10 files changed, 234 insertions(+), 45 deletions(-) create mode 100644 web/admin/customer/admin_customer_delete.xhtml create mode 100644 web/admin/customer/admin_customer_edit.xhtml create mode 100644 web/admin/customer/admin_customer_list.xhtml create mode 100644 web/admin/customer/admin_customer_show.xhtml create mode 100644 web/admin/customer/admin_customer_unlock.xhtml diff --git a/nbproject/faces-config.NavData b/nbproject/faces-config.NavData index baa26860..e97c6287 100644 --- a/nbproject/faces-config.NavData +++ b/nbproject/faces-config.NavData @@ -2,51 +2,62 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/java/org/mxchange/localization/bundle_de_DE.properties b/src/java/org/mxchange/localization/bundle_de_DE.properties index 44e420ae..a5d2b57a 100644 --- a/src/java/org/mxchange/localization/bundle_de_DE.properties +++ b/src/java/org/mxchange/localization/bundle_de_DE.properties @@ -312,3 +312,14 @@ ADMIN_EDIT_CONTACT_TITLE=Kontaktdaten editieren (Id-Nummer: {0}) BUTTON_ADMIN_EDIT_CONTACT=Kontaktdaten \u00e4ndern PAGE_TITLE_ADMIN_LIST_CONTACT=Kotakte auflisten CONTENT_TITLE_ADMIN_LIST_CONTACT=Kontakte auflisten: +LINK_ADMIN_LIST_CUSTOMER=Kunden auflisten +LINK_ADMIN_LIST_CUSTOMER_TITLE=Alle bestehenden Kunden auflisten. +PAGE_TITLE_ADMIN_LIST_CUSTOMER=Kunden auflisten +CONTENT_TITLE_ADMIN_LIST_CUSTOMER=Auflisten von Kunden: +PAGE_TITLE_ADMIN_EDIT_CUSTOMER=Benuzteraccount editieren +CONTENT_TITLE_ADMIN_EDIT_CUSTOMER=\u00c4ndern von Kunden: +PAGE_TITLE_ADMIN_UNLOCK_CUSTOMER=Ent-/Sperren von Kunden +CONTENT_TITLE_ADMIN_UNLOCK_CUSTOMER=Ent-/Sperren von Kunden: +PAGE_TITLE_ADMIN_SHOW_CUSTOMER=Anzeigen des Kundenaccounts +CONTENT_TITLE_ADMIN_SHOW_CUSTOMER=Anzeigen des Kundenaccounts: +ADMIN_MENU_CUSTOMER_TITLE=Kundenverwaltung diff --git a/src/java/org/mxchange/localization/bundle_en_US.properties b/src/java/org/mxchange/localization/bundle_en_US.properties index f49ec507..19907f0d 100644 --- a/src/java/org/mxchange/localization/bundle_en_US.properties +++ b/src/java/org/mxchange/localization/bundle_en_US.properties @@ -314,3 +314,14 @@ ADMIN_EDIT_CONTACT_TITLE=Edit contact data (id number: {0}) BUTTON_ADMIN_EDIT_CONTACT=Change contact data PAGE_TITLE_ADMIN_LIST_CONTACT=List contacts CONTENT_TITLE_ADMIN_LIST_CONTACT=List contacts: +LINK_ADMIN_LIST_CUSTOMER=List customer accounts +LINK_ADMIN_LIST_CUSTOMER_TITLE=List all existing customer accounts. +PAGE_TITLE_ADMIN_LIST_CUSTOMER=List customer accounts +CONTENT_TITLE_ADMIN_LIST_CUSTOMER=List customer accounts: +PAGE_TITLE_ADMIN_EDIT_CUSTOMER=Edit customer accounts +CONTENT_TITLE_ADMIN_EDIT_CUSTOMER=Edit customer accounts: +PAGE_TITLE_ADMIN_UNLOCK_CUSTOMER=Un-/Lock customer accounts +CONTENT_TITLE_ADMIN_UNLOCK_CUSTOMER=Un-/Lock customer accounts: +PAGE_TITLE_ADMIN_SHOW_CUSTOMER=Shpw customer account +CONTENT_TITLE_ADMIN_SHOW_CUSTOMER=Show customer account: +ADMIN_MENU_CUSTOMER_TITLE=Customer management diff --git a/web/WEB-INF/faces-config.xml b/web/WEB-INF/faces-config.xml index 7e000e1b..fb72a788 100644 --- a/web/WEB-INF/faces-config.xml +++ b/web/WEB-INF/faces-config.xml @@ -95,6 +95,10 @@ admin_list_contact_cellphone /admin/cellphone/admin_contact_cellphone_list.xhtml + + admin_list_customer + /admin/user/admin_customer_list.xhtml + /basket.xhtml @@ -286,6 +290,40 @@ /admin/contact/admin_contact_list.xhtml + + /admin/user/admin_customer_list.xhtml + + admin_show_customer + /admin/user/admin_customer_show.xhtml + + + admin_edit_customer + /admin/user/admin_customer_edit.xhtml + + + admin_delete_customer + /admin/user/admin_customer_delete.xhtml + + + admin_unlock_customer + /admin/user/admin_customer_unlock.xhtml + + + + /admin/user/admin_customer_show.xhtml + + admin_edit_customer + /admin/user/admin_customer_edit.xhtml + + + admin_delete_customer + /admin/user/admin_customer_delete.xhtml + + + admin_unlock_customer + /admin/user/admin_customer_unlock.xhtml + +