From 7131257e73ee0becf33a51c5330420efe5e98621 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 29 Apr 2016 11:46:33 +0200 Subject: [PATCH] Continued with contacts: - showing contact data is "basicly finished" - introduced template admin_contact_data.tpl" - added missing navigation cases - contact personal data is not user - fixed - include always gender - added new page for deleting contact data - added CSS class for delete buttons - added template for administrative contact links - added missing i18n strings MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- nbproject/faces-config.NavData | 104 ++++++++--------- .../localization/bundle_de_DE.properties | 13 ++- .../localization/bundle_en_US.properties | 13 ++- web/WEB-INF/faces-config.xml | 11 ++ .../admin/contact/admin_contact_data.tpl | 107 ++++++++++++++++++ .../admin/contact/admin_contact_links.tpl | 34 ++++++ web/admin/contact/admin_contact_delete.xhtml | 48 ++++++++ web/admin/contact/admin_contact_edit.xhtml | 2 +- web/admin/contact/admin_contact_show.xhtml | 22 +++- web/resources/css/cssLayout.css | 6 + 10 files changed, 304 insertions(+), 56 deletions(-) create mode 100644 web/WEB-INF/templates/admin/contact/admin_contact_data.tpl create mode 100644 web/WEB-INF/templates/admin/contact/admin_contact_links.tpl create mode 100644 web/admin/contact/admin_contact_delete.xhtml diff --git a/nbproject/faces-config.NavData b/nbproject/faces-config.NavData index c3b04490..b30638dc 100644 --- a/nbproject/faces-config.NavData +++ b/nbproject/faces-config.NavData @@ -2,58 +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 aeff4ec1..cec1aaec 100644 --- a/src/java/org/mxchange/localization/bundle_de_DE.properties +++ b/src/java/org/mxchange/localization/bundle_de_DE.properties @@ -135,7 +135,7 @@ PAGE_TITLE_ADMIN_ADD_USER=Neues Benutzeraccount hinzufuegen CONTENT_TITLE_ADMIN_ADD_USER=Neues Benutzeraccount hinzufuegen: TABLE_SUMMARY_ADMIN_LIST_USERS=Administration, alle Benutzer auflisten ADMIN_ADD_USER_TITLE=Neues Benutzeraccount anlegen -ADMIN_USER_PERSONAL_DATA_MINIMUM_NOTICE=Bitte geben Sie mindestens Vor- und Nachnamen, sowie Benutzernamen und Email-Adresse ein. +ADMIN_USER_PERSONAL_DATA_MINIMUM_NOTICE=Bitte geben Sie mindestens Anrede, Vor- und Nachnamen, sowie Benutzernamen und Email-Adresse ein. ADMIN_CONTACT_PERSONAL_DATA_LEGEND=Pers\u00f6nliche Daten des Benutzers: ADMIN_CONTACT_PERSONAL_DATA_LEGEND_TITLE=Geben Sie hier die pers\u00f6nlichen Daten des neuen Benutzers ein. ADMIN_PERSONAL_DATA_GENDER=Anrede ausw\u00e4hlen: @@ -370,3 +370,14 @@ ADMIN_LINK_UNLOCK_CUSTOMER=Kunde ent-/sperren ADMIN_LINK_DELETE_CUSTOMER=Kundendaten l\u00f6schen ADMIN_LINK_DELETE_CUSTOMER_TITLE=Kundendaten l\u00f6schen (mit Best\u00e4tigung). ADMIN_LINK_UNLOCK_CUSTOMER_TITLE=Kunde sperren oder entsperren. Bitte einen Grund mit angeben. +ERROR_PARAMETER_CONTACT_NOT_SET=Fehler: Parameter 'contact' nicht gesetzt. +ADMIN_HEADER_SHOW_CONTACT=Kontaktdaten f\u00fcr {0}: +ADMIN_CONTACT_UPDATED=Kontaktdaten aktualisiert: +ADMIN_LINK_DELETE_CONTACT=Kontaktdaten l\u00f6schen +ADMIN_LINK_DELETE_CONTACT_TITLE=L\u00f6scht die Kontaktdaten, es wird eine Best\u00e4tigung verlangt. +PAGE_TITLE_ADMIN_DELETE_CONTACT=Kontaktdaten l\u00f6schen +CONTENT_TITLE_ADMIN_DELETE_CONTACT=Kontakdaten l\u00f6schen: +ADMIN_DELETE_CONTACT_TITLE=Kontaktdaten unwiederruflich l\u00f6schen +BUTTON_ADMIN_DELETE_CONTACT=Kontaktdaten l\u00f6schen +ADMIN_DELETE_CONTACT_NOTICE=Sie wollen Kontaktdaten l\u00f6schen. Diese k\u00f6nnten noch evtl. mit anderen Daten verkn\u00fcft sein, was zu Fehlern f\u00fchrt. Bitte l\u00f6schen Sie nur, wenn Sie sich absolut sicher sind, dass keine fremden Daten auf diesen Datensatz mehr verweisen. +ADMIN_CONTACT_PERSONAL_DATA_MINIMUM_NOTICE=Bitte geben Sie mindestens Anrede, Vor- und Nachnamen ein. diff --git a/src/java/org/mxchange/localization/bundle_en_US.properties b/src/java/org/mxchange/localization/bundle_en_US.properties index 309ba566..ff183ae6 100644 --- a/src/java/org/mxchange/localization/bundle_en_US.properties +++ b/src/java/org/mxchange/localization/bundle_en_US.properties @@ -136,7 +136,7 @@ PAGE_TITLE_ADMIN_ADD_USER=Add new user account CONTENT_TITLE_ADMIN_ADD_USER=Add new user account: TABLE_SUMMARY_ADMIN_LIST_USERS=Administration, list all users ADMIN_ADD_USER_TITLE=Create a new user account -ADMIN_USER_PERSONAL_DATA_MINIMUM_NOTICE=Please enter at least first name, family name, user name and email address. +ADMIN_USER_PERSONAL_DATA_MINIMUM_NOTICE=Please enter at least gender, first name, family name, user name and email address. ADMIN_CONTACT_PERSONAL_DATA_LEGEND=Personal data of the user: ADMIN_CONTACT_PERSONAL_DATA_LEGEND_TITLE=Here you can enter the personal data of the new user. ADMIN_PERSONAL_DATA_GENDER=Select gender: @@ -371,3 +371,14 @@ ADMIN_LINK_UNLOCK_CUSTOMER=Un-/lock customer ADMIN_LINK_DELETE_CUSTOMER=Delete customer data ADMIN_LINK_DELETE_CUSTOMER_TITLE=Delete customer data (with confirmation). ADMIN_LINK_UNLOCK_CUSTOMER_TITLE=Lock or unlock customer. Please provide a reason. +ERROR_PARAMETER_CONTACT_NOT_SET=Error: Parameter 'contact' is not set. +ADMIN_HEADER_SHOW_CONTACT=Contact data for {0}: +ADMIN_CONTACT_UPDATED=Contact data updated: +ADMIN_LINK_DELETE_CONTACT=Kontakt l\u00f6schen +ADMIN_LINK_DELETE_CONTACT_TITLE=Deletes contact data, a confirmation is needed. +PAGE_TITLE_ADMIN_DELETE_CONTACT=Delete contact data +CONTENT_TITLE_ADMIN_DELETE_CONTACT=Delete contact data: +ADMIN_DELETE_CONTACT_TITLE=Delete contact data unreverseable +BUTTON_ADMIN_DELETE_CONTACT=Delete contact data +ADMIN_DELETE_CONTACT_NOTICE=You want to delete contact data. This data could be still linked with other data which could lead to errors. Please delete only, if you are sure that no foreign data links to this record. +ADMIN_CONTACT_PERSONAL_DATA_MINIMUM_NOTICE=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 d7d03f2e..ee7a6fe6 100644 --- a/web/WEB-INF/faces-config.xml +++ b/web/WEB-INF/faces-config.xml @@ -288,6 +288,17 @@ /admin/contact/admin_contact_edit.xhtml + + /admin/contact/admin_contact_show.xhtml + + admin_edit_contact + /admin/contact/admin_contact_edit.xhtml + + + admin_delete_contact + /admin/contact/admin_contact_delete.xhtml + + /admin/cellphone/admin_contact_cellphone_list.xhtml diff --git a/web/WEB-INF/templates/admin/contact/admin_contact_data.tpl b/web/WEB-INF/templates/admin/contact/admin_contact_data.tpl new file mode 100644 index 00000000..997d8272 --- /dev/null +++ b/web/WEB-INF/templates/admin/contact/admin_contact_data.tpl @@ -0,0 +1,107 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/web/WEB-INF/templates/admin/contact/admin_contact_links.tpl b/web/WEB-INF/templates/admin/contact/admin_contact_links.tpl new file mode 100644 index 00000000..26f287c1 --- /dev/null +++ b/web/WEB-INF/templates/admin/contact/admin_contact_links.tpl @@ -0,0 +1,34 @@ + + + + + + +
+
+ +
+ +
+
    +
  • + + + +
  • + +
  • + + + + +
  • +
+
+
+
+
diff --git a/web/admin/contact/admin_contact_delete.xhtml b/web/admin/contact/admin_contact_delete.xhtml new file mode 100644 index 00000000..5ca8b083 --- /dev/null +++ b/web/admin/contact/admin_contact_delete.xhtml @@ -0,0 +1,48 @@ + + + + + + + + + + + #{msg.PAGE_TITLE_ADMIN_DELETE_CONTACT} + + + #{msg.CONTENT_TITLE_ADMIN_DELETE_CONTACT} + + + + + + +
+
+ + + +
+ +
+ #{msg.ADMIN_DELETE_CONTACT_NOTICE} +
+ + + + +
+
+
+
+ diff --git a/web/admin/contact/admin_contact_edit.xhtml b/web/admin/contact/admin_contact_edit.xhtml index 1b92701f..9f608238 100644 --- a/web/admin/contact/admin_contact_edit.xhtml +++ b/web/admin/contact/admin_contact_edit.xhtml @@ -32,7 +32,7 @@
- #{msg.ADMIN_USER_PERSONAL_DATA_MINIMUM_NOTICE} + #{msg.ADMIN_CONTACT_PERSONAL_DATA_MINIMUM_NOTICE}
diff --git a/web/admin/contact/admin_contact_show.xhtml b/web/admin/contact/admin_contact_show.xhtml index 59f42334..fccf2ebc 100644 --- a/web/admin/contact/admin_contact_show.xhtml +++ b/web/admin/contact/admin_contact_show.xhtml @@ -8,6 +8,11 @@ xmlns:f="http://xmlns.jcp.org/jsf/core" > + + + + + #{msg.PAGE_TITLE_ADMIN_SHOW_CONTACT} @@ -16,7 +21,22 @@ - Here goes your content. + + + + +
+ + + +
+ +
+ + + + +
diff --git a/web/resources/css/cssLayout.css b/web/resources/css/cssLayout.css index f61e527c..2c80675e 100644 --- a/web/resources/css/cssLayout.css +++ b/web/resources/css/cssLayout.css @@ -245,3 +245,9 @@ ul.footer_nav li.footer_copyright { .delete_link { color: #aa0000; } + +.delete_button { + border: #ff0000 1px groove; + background-color: #880000; + color: #ffffff; +} -- 2.39.5