From: Roland Häder Date: Thu, 28 Apr 2016 12:17:13 +0000 (+0200) Subject: Continued with customers and rewrite a bit: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2d9f83a6aaadc6ad2ac532821eea9af276ece927;p=jjobs-war.git Continued with customers and rewrite a bit: - page show_customer "basicly finished" - removed double redundant i18n strings (no need) - added customer's i18n strings (admin) - now always handle a contact to "cellhpone templates", this is much easier and users/customers don't have cellphones/land-line or fax numbers, only contacts - added template for administrative links for customers (similar to users) - added missing navigation rules Signed-off-by: Roland Häder --- diff --git a/nbproject/faces-config.NavData b/nbproject/faces-config.NavData index 6e950004..d8852080 100644 --- a/nbproject/faces-config.NavData +++ b/nbproject/faces-config.NavData @@ -2,55 +2,58 @@ - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/java/org/mxchange/localization/bundle_de_DE.properties b/src/java/org/mxchange/localization/bundle_de_DE.properties index 414fca11..4f17152d 100644 --- a/src/java/org/mxchange/localization/bundle_de_DE.properties +++ b/src/java/org/mxchange/localization/bundle_de_DE.properties @@ -369,27 +369,27 @@ ERROR_PARAMETER_USER_ID_NOT_SET=Fehler: Benutzer-Id nicht gesetzt (Parameter: us ERROR_USER_ID_NOT_FOUND=Fehler: Benutzer-Id nicht gefunden. ADMIN_TABLE_SUMMARY_SHOW_USER=Zeigt ein Benutzerprofil f\u00fcr administrative Zwecke an. ADMIN_HEADER_SHOW_USER=Benutzer {0} (Nummer {1}): -ADMIN_SHOW_USER_ID=Benutzer-Id: -ADMIN_SHOW_USER_NAME=Benutzername: -ADMIN_SHOW_USER_CREATED=Wann Benutzer erstellt: -ADMIN_SHOW_USER_UPDATED=Wann Benutzerdaten ge\u00e4ndert: -ADMIN_SHOW_USER_ACCOUNT_STATUS=Account-Status: -ADMIN_SHOW_USER_PROFILE_MODE=Profilmodus: -ADMIN_SHOW_USER_LAST_LOCKED=Zuletzt gesperrt: -ADMIN_SHOW_USER_LAST_LOCKED_REASON=Letzter Sperrgrund: -ADMIN_SHOW_USER_CONTACT_CREATED=Wann Kontaktdaten erstellt: -ADMIN_SHOW_USER_CONTACT_UPDATED=Wann Kontaktdaten ge\u00e4ndert: -ADMIN_SHOW_USER_IS_OWN_CONTACT=Eigenes Account: -ADMIN_SHOW_USER_GENDER=Anrede: -ADMIN_SHOW_USER_TITLE=Titel: -ADMIN_SHOW_USER_FIRST_NAME=Vorname: -ADMIN_SHOW_USER_FAMILY_NAME=Nachname: -ADMIN_SHOW_USER_STREET=Strasse: -ADMIN_SHOW_USER_HOUSE_NUMBER=Hausnummer: -ADMIN_SHOW_USER_ZIP_CODE=Postleitzahl: -ADMIN_SHOW_USER_CITY=Stadt: -ADMIN_SHOW_USER_EMAIL_ADDRESS=Email-Adresse: -ADMIN_SHOW_USER_BIRTHDAY=Geburtstag: +ADMIN_USER_ID=Benutzer-Id: +ADMIN_USER_NAME=Benutzername: +ADMIN_USER_CREATED=Wann Benutzer erstellt: +ADMIN_USER_UPDATED=Wann Benutzerdaten ge\u00e4ndert: +ADMIN_USER_ACCOUNT_STATUS=Account-Status: +ADMIN_USER_PROFILE_MODE=Profilmodus: +ADMIN_USER_LAST_LOCKED=Zuletzt gesperrt: +ADMIN_USER_LAST_LOCKED_REASON=Letzter Sperrgrund: +ADMIN_USER_CONTACT_CREATED=Wann Kontaktdaten erstellt: +ADMIN_USER_CONTACT_UPDATED=Wann Kontaktdaten ge\u00e4ndert: +ADMIN_CONTACT_IS_OWN_CONTACT=Eigenes Account: +ADMIN_CONTACT_GENDER=Anrede: +ADMIN_CONTACT_TITLE=Titel: +ADMIN_CONTACT_FIRST_NAME=Vorname: +ADMIN_CONTACT_FAMILY_NAME=Nachname: +ADMIN_CONTACT_STREET=Strasse: +ADMIN_CONTACT_HOUSE_NUMBER=Hausnummer: +ADMIN_CONTACT_ZIP_CODE=Postleitzahl: +ADMIN_CONTACT_CITY=Stadt: +ADMIN_CONTACT_EMAIL_ADDRESS=Email-Adresse: +ADMIN_CONTACT_BIRTHDAY=Geburtstag: ADMIN_LINKS_HEADER=Administrative Links: ADMIN_LINK_EDIT_USER=Benutzerdaten editieren ADMIN_LINK_EDIT_USER_TITLE=Editieren der Benutzerdaten. @@ -443,5 +443,22 @@ ADMIN_USER_DATA_PASSWORD_EDIT_NOTICE=Wenn Sie das Passwort \u00e4ndern wollen, m ERROR_PARAMETER_MODE_NOT_SET=Fehler: Parameter 'modus' nicht gesetzt. 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: +PAGE_TITLE_ADMIN_LIST_CONTACT=Kotaktdaten auflisten +CONTENT_TITLE_ADMIN_LIST_CONTACT=Kontaktdaten auflisten: +PAGE_TITLE_LOGIN_AREA=Benutzerbereich +ADMIN_SELECT_USER_CONTACT_LEGEND=Kontakt f\u00fcr neues Benutzeraccount ausw\u00e4hlen: +ADMIN_SELECT_USER_CONTACT_LEGEND_TITLE=W\u00e4hlen Sie entweder einen Kontakt aus, der mit dem neuen Benutzeraccount verkn\u00fcpft werden soll ... +ADMIN_SELECT_USER_CONTACT=Kontakt zum Verkn\u00fcpfen ausw\u00e4hlen: +ADMIN_ADD_USER_OR_ENTER_CONTACT_DATA=... oder geben Sie mindestens Anrede, Vorname und Nachname ein (Benutzername und Email-Adresse nicht vergessen): +ADMIN_CONTACT_CREATED=Erstellt: +ADMIN_ADD_CONTACT_TITLE=Neue Kontaktdaten hinzuf\u00fcgen +BUTTON_ADMIN_ADD_CONTACT=Kontaktdaten hinzuf\u00fcgen +CONTACT_IS_UNUSED=Nicht verlinkt +CONTACT_IS_USER=Ist Benutzer +ADMIN_CONTACT_USAGE=In Verwendung: +ADMIN_LINK_SHOW_CONTACT_TITLE=Kontaktdaten anzeigen +ADMIN_MENU_CONTACT_TITLE=Manage contact data +LINK_ADMIN_LIST_CONTACT=Kontaktdaten auflisten +LINK_ADMIN_LIST_CONTACT_TITLE=Listet alle Kontaktdaten auf, egal wo her sie angelegt wurden. +ERROR_PARAMETER_CELLPHONE_NUMBER_CONTACT_NOT_SET=Fehler: Parameter 'cellphoneNumber' und 'contact' nicht gesetzt. +ADMIN_ADD_CONTACT_MINIMUM_DATA=Bitte geben Sie mindestens Anrede, Vorname und Nachname an. diff --git a/src/java/org/mxchange/localization/bundle_en_US.properties b/src/java/org/mxchange/localization/bundle_en_US.properties index a48a1e1f..28ac15f2 100644 --- a/src/java/org/mxchange/localization/bundle_en_US.properties +++ b/src/java/org/mxchange/localization/bundle_en_US.properties @@ -349,27 +349,27 @@ ERROR_PARAMETER_USER_ID_NOT_SET=Error: User id not set (parameter userId). ERROR_USER_ID_NOT_FOUND=Error: User id not found. ADMIN_TABLE_SUMMARY_SHOW_USER=Shows a single user profile for administrative purposes. ADMIN_HEADER_SHOW_USER=User {0} (id {1}): -ADMIN_SHOW_USER_ID=User id: -ADMIN_SHOW_USER_NAME=User name: -ADMIN_SHOW_USER_CREATED=When user created: -ADMIN_SHOW_USER_UPDATED=When user data updated: -ADMIN_SHOW_USER_ACCOUNT_STATUS=Account status: -ADMIN_SHOW_USER_PROFILE_MODE=Profile mode: -ADMIN_SHOW_USER_LAST_LOCKED=Last locked: -ADMIN_SHOW_USER_LAST_LOCKED_REASON=Last lock reason: -ADMIN_SHOW_USER_CONTACT_CREATED=When contact data created: -ADMIN_SHOW_USER_CONTACT_UPDATED=When contact data updated: -ADMIN_SHOW_USER_IS_OWN_CONTACT=Own account: -ADMIN_SHOW_USER_GENDER=Gender: -ADMIN_SHOW_USER_TITLE=Title: -ADMIN_SHOW_USER_FIRST_NAME=First name: -ADMIN_SHOW_USER_FAMILY_NAME=Family name: -ADMIN_SHOW_USER_STREET=Street: -ADMIN_SHOW_USER_HOUSE_NUMBER=House number: -ADMIN_SHOW_USER_ZIP_CODE=ZIP code: -ADMIN_SHOW_USER_CITY=City: -ADMIN_SHOW_USER_EMAIL_ADDRESS=Email address: -ADMIN_SHOW_USER_BIRTHDAY=Birthday: +ADMIN_USER_ID=User id: +ADMIN_USER_NAME=User name: +ADMIN_USER_CREATED=When user created: +ADMIN_USER_UPDATED=When user data updated: +ADMIN_USER_ACCOUNT_STATUS=Account status: +ADMIN_USER_PROFILE_MODE=Profile mode: +ADMIN_USER_LAST_LOCKED=Last locked: +ADMIN_USER_LAST_LOCKED_REASON=Last lock reason: +ADMIN_USER_CONTACT_CREATED=When contact data created: +ADMIN_USER_CONTACT_UPDATED=When contact data updated: +ADMIN_CONTACT_IS_OWN_CONTACT=Own account: +ADMIN_CONTACT_GENDER=Gender: +ADMIN_CONTACT_TITLE=Title: +ADMIN_CONTACT_FIRST_NAME=First name: +ADMIN_CONTACT_FAMILY_NAME=Family name: +ADMIN_CONTACT_STREET=Street: +ADMIN_CONTACT_HOUSE_NUMBER=House number: +ADMIN_CONTACT_ZIP_CODE=ZIP code: +ADMIN_CONTACT_CITY=City: +ADMIN_CONTACT_EMAIL_ADDRESS=Email address: +ADMIN_CONTACT_BIRTHDAY=Birthday: ADMIN_LINKS_HEADER=Administrative links: ADMIN_LINK_EDIT_USER=Edit user data ADMIN_LINK_EDIT_USER_TITLE=Editing of user and contact data. @@ -423,5 +423,21 @@ ADMIN_USER_DATA_PASSWORD_EDIT_NOTICE=If you want to change the password, enter i ERROR_PARAMETER_MODE_NOT_SET=Error: Parameter 'modus' is not set. 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: +PAGE_TITLE_ADMIN_LIST_CONTACT=List contact entries +CONTENT_TITLE_ADMIN_LIST_CONTACT=List contact entries: +ADMIN_SELECT_USER_CONTACT_LEGEND=Select contact for new user account: +ADMIN_SELECT_USER_CONTACT_LEGEND_TITLE=Whether choose a contact that should be linked with the new user account or ... +ADMIN_SELECT_USER_CONTACT=Select contact for linking: +ADMIN_ADD_USER_OR_ENTER_CONTACT_DATA=... or enter gender, first name and family name (don't forget to enter user name and email address): +ADMIN_CONTACT_CREATED=Created: +ADMIN_ADD_CONTACT_TITLE=Add new contact data +BUTTON_ADMIN_ADD_CONTACT=Add contact data +CONTACT_IS_UNUSED=Not linked +CONTACT_IS_USER=Is a user +ADMIN_CONTACT_USAGE=Usage: +ADMIN_LINK_SHOW_CONTACT_TITLE=Show contact data +ADMIN_MENU_CONTACT_TITLE=Manage contact data +LINK_ADMIN_LIST_CONTACT=List contact data +LINK_ADMIN_LIST_CONTACT_TITLE=Lists all contact data regardless where they was created. +ERROR_PARAMETER_CELLPHONE_NUMBER_CONTACT_NOT_SET=Error: Parameter 'cellphoneNumber' and 'contact' are not set. +ADMIN_ADD_CONTACT_MINIMUM_DATA=Please enter at least gender, first name and family name. diff --git a/web/WEB-INF/faces-config.xml b/web/WEB-INF/faces-config.xml index c5cdde49..753f2730 100644 --- a/web/WEB-INF/faces-config.xml +++ b/web/WEB-INF/faces-config.xml @@ -251,6 +251,10 @@ /admin/user/admin_user_show.xhtml + + admin_show_mobile_provider + /admin/mobile_provider/admin_mobile_provider_show.xhtml + admin_show_contact_cellphone /admin/cellphone/admin_contact_cellphone_show.xhtml @@ -283,10 +287,6 @@ admin_edit_contact /admin/contact/admin_contact_edit.xhtml - - admin_show_mobile_provider - /admin/mobile_provider/admin_mobile_provider_show.xhtml - /admin/cellphone/admin_contact_cellphone_list.xhtml diff --git a/web/WEB-INF/templates/admin/cellphone/admin_cellphone_add_show.tpl b/web/WEB-INF/templates/admin/cellphone/admin_cellphone_add_show.tpl index 2f3ec755..02a8c00b 100644 --- a/web/WEB-INF/templates/admin/cellphone/admin_cellphone_add_show.tpl +++ b/web/WEB-INF/templates/admin/cellphone/admin_cellphone_add_show.tpl @@ -5,16 +5,20 @@ xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> - + + + + + - + - + - + diff --git a/web/WEB-INF/templates/admin/cellphone/admin_cellphone_data.tpl b/web/WEB-INF/templates/admin/cellphone/admin_cellphone_data.tpl index 47ce5c93..2b870a45 100644 --- a/web/WEB-INF/templates/admin/cellphone/admin_cellphone_data.tpl +++ b/web/WEB-INF/templates/admin/cellphone/admin_cellphone_data.tpl @@ -37,11 +37,20 @@
- - - - - + + + + + + + + + + + + + +
diff --git a/web/admin/cellphone/admin_contact_cellphone_show.xhtml b/web/admin/cellphone/admin_contact_cellphone_show.xhtml index c10bbfcf..e46b92af 100644 --- a/web/admin/cellphone/admin_contact_cellphone_show.xhtml +++ b/web/admin/cellphone/admin_contact_cellphone_show.xhtml @@ -42,31 +42,31 @@ - + - + - + - + - + diff --git a/web/admin/user/admin_user_show.xhtml b/web/admin/user/admin_user_show.xhtml index 9d926375..aa679c85 100644 --- a/web/admin/user/admin_user_show.xhtml +++ b/web/admin/user/admin_user_show.xhtml @@ -31,19 +31,19 @@ - + - + - + @@ -51,7 +51,7 @@ - + @@ -59,19 +59,19 @@ - + - + - + @@ -79,13 +79,13 @@ - + - + @@ -93,7 +93,7 @@ - + @@ -101,61 +101,61 @@ - + - + - + - + - + - + - + - + - + - + @@ -163,7 +163,7 @@ - + @@ -171,14 +171,18 @@ - - - - - - - - +
+ + + +
+ +
+ + + + +