From: Roland Häder Date: Fri, 29 Apr 2016 09:46:33 +0000 (+0200) Subject: Continued with contacts: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=948f66dbb4b73748b2624fdef38815cbd57fa011;p=jjobs-war.git 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 Signed-off-by: Roland Häder --- diff --git a/nbproject/faces-config.NavData b/nbproject/faces-config.NavData index d8852080..af90caa5 100644 --- a/nbproject/faces-config.NavData +++ b/nbproject/faces-config.NavData @@ -2,58 +2,59 @@ - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + diff --git a/src/java/org/mxchange/localization/bundle_de_DE.properties b/src/java/org/mxchange/localization/bundle_de_DE.properties index 5f26fee9..6aaf8a51 100644 --- a/src/java/org/mxchange/localization/bundle_de_DE.properties +++ b/src/java/org/mxchange/localization/bundle_de_DE.properties @@ -268,7 +268,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_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: @@ -462,3 +462,14 @@ 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. +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 669b73af..6140ad36 100644 --- a/src/java/org/mxchange/localization/bundle_en_US.properties +++ b/src/java/org/mxchange/localization/bundle_en_US.properties @@ -248,7 +248,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_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: @@ -441,3 +441,14 @@ 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. +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 753f2730..b42a2a8e 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 d2e7ea01..9f608238 100644 --- a/web/admin/contact/admin_contact_edit.xhtml +++ b/web/admin/contact/admin_contact_edit.xhtml @@ -32,7 +32,7 @@
- #{msg.ADMIN_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 457a8646..e48de8b5 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; +}