From 88256b303ab6c51fc1a90bb0290b3df7d91a85d6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 19 Aug 2017 16:11:42 +0200 Subject: [PATCH] Please cherry-pick: - renamed JSF views with "contact_business" to "business_data" - moved selection boxes to own template folder "selection_boxes" - renamed + moved locale_selection_box.tpl to widgets/locale_change_widget.tpl - renamed "generic" templates folder to "messages" - TODO: moving out "country selection box" to a template can be done: + for each type, land-line and fax number have a separate template + the target controllers must all then have same naming, e.g. landLineCountry MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- web/WEB-INF/faces-config.xml | 8 ++++---- web/WEB-INF/templates/admin/admin_menu.tpl | 4 ++-- .../admin/contact/admin_contact_links.tpl | 2 +- .../admin/contact/admin_form_contact_data.tpl | 14 ++++---------- .../templates/admin/fax/admin_fax_add_show.tpl | 2 +- .../templates/admin/fax/admin_fax_data.tpl | 2 +- .../templates/admin/fax/admin_fax_links.tpl | 2 +- .../admin/fax/admin_form_add_contact_fax.tpl | 2 +- .../templates/admin/fax/admin_form_fax_data.tpl | 2 +- .../landline/admin_form_add_contact_landline.tpl | 2 +- .../admin/landline/admin_form_landline_data.tpl | 2 +- .../admin/landline/admin_landline_add_show.tpl | 2 +- .../admin/landline/admin_landline_data.tpl | 2 +- .../admin/landline/admin_landline_links.tpl | 2 +- .../mobile/admin_form_add_contact_mobile.tpl | 2 +- .../admin/mobile/admin_form_mobile_data.tpl | 2 +- .../admin/mobile/admin_mobile_add_show.tpl | 2 +- .../templates/admin/mobile/admin_mobile_data.tpl | 2 +- .../admin/mobile/admin_mobile_links.tpl | 2 +- .../admin/user/admin_form_user_data.tpl | 2 +- .../templates/admin/user/admin_user_links.tpl | 2 +- web/WEB-INF/templates/base.tpl | 3 ++- .../templates/contact/form_contact_data.tpl | 16 +++++----------- .../templates/input_fields/fax_input_fields.tpl | 2 +- .../input_fields/landline_input_fields.tpl | 2 +- .../input_fields/mobile_input_fields.tpl | 14 ++++---------- web/WEB-INF/templates/login/user/user_base.tpl | 2 +- .../{generic => messages}/message_box.tpl | 0 .../{generic => messages}/message_box_mini.tpl | 0 .../mobile_selection_box.tpl | 0 .../personal_title_selection_box.tpl | 2 +- .../profile_mode_selection_box.tpl | 0 web/WEB-INF/templates/user/user_profile_link.tpl | 2 +- .../locale_change_widget.tpl} | 0 .../admin_business_data_list.xhtml} | 12 ++++++------ web/admin/contact/admin_contact_delete.xhtml | 2 +- web/admin/contact/admin_contact_edit.xhtml | 2 +- web/admin/contact/admin_contact_export.xhtml | 2 +- web/admin/contact/admin_contact_list.xhtml | 2 +- web/admin/contact/admin_contact_show.xhtml | 2 +- .../unlink/admin_contact_fax_unlink.xhtml | 4 ++-- .../unlink/admin_contact_landline_unlink.xhtml | 4 ++-- .../unlink/admin_contact_mobile_unlink.xhtml | 4 ++-- web/admin/fax/admin_fax_delete.xhtml | 2 +- web/admin/fax/admin_fax_edit.xhtml | 2 +- web/admin/fax/admin_fax_list.xhtml | 2 +- web/admin/landline/admin_landline_delete.xhtml | 2 +- web/admin/landline/admin_landline_edit.xhtml | 2 +- web/admin/landline/admin_landline_list.xhtml | 2 +- web/admin/mobile/admin_mobile_delete.xhtml | 2 +- web/admin/mobile/admin_mobile_edit.xhtml | 2 +- web/admin/mobile/admin_mobile_list.xhtml | 2 +- web/admin/user/admin_user_activity_log.xhtml | 2 +- web/admin/user/admin_user_delete.xhtml | 2 +- web/admin/user/admin_user_edit.xhtml | 2 +- web/admin/user/admin_user_export.xhtml | 2 +- web/admin/user/admin_user_list.xhtml | 2 +- web/admin/user/admin_user_lock.xhtml | 2 +- .../admin_user_resend_confirmation_link.xhtml | 2 +- web/admin/user/admin_user_show.xhtml | 2 +- web/admin/user/admin_user_unlock.xhtml | 2 +- web/guest/user/user_confirm_account.xhtml | 4 ++-- web/guest/user/user_list.xhtml | 2 +- web/guest/user/user_login.xhtml | 2 +- web/guest/user/user_lost_password.xhtml | 2 +- web/guest/user/user_profile.xhtml | 4 ++-- web/guest/user/user_register.xhtml | 4 ++-- web/guest/user/user_register_page2.xhtml | 2 +- web/guest/user/user_resend_done.xhtml | 2 +- web/guest/user/user_resend_link.xhtml | 2 +- web/user/login_contact_data_saved.xhtml | 2 +- web/user/login_data_saved.xhtml | 2 +- web/user/login_user_change_email_address.xhtml | 2 +- web/user/login_user_change_password.xhtml | 4 ++-- web/user/login_user_change_personal_data.xhtml | 2 +- web/user/login_user_contact_data_saved.xhtml | 4 ++-- web/user/login_user_data_saved.xhtml | 2 +- 77 files changed, 100 insertions(+), 117 deletions(-) rename web/WEB-INF/templates/{generic => messages}/message_box.tpl (100%) rename web/WEB-INF/templates/{generic => messages}/message_box_mini.tpl (100%) rename web/WEB-INF/templates/{generic => selection_boxes}/mobile_selection_box.tpl (100%) rename web/WEB-INF/templates/{generic => selection_boxes}/personal_title_selection_box.tpl (94%) rename web/WEB-INF/templates/{generic => selection_boxes}/profile_mode_selection_box.tpl (100%) rename web/WEB-INF/templates/{generic/locale_selection_box.tpl => widgets/locale_change_widget.tpl} (100%) rename web/admin/{contact_business/admin_contact_business_list.xhtml => business_data/admin_business_data_list.xhtml} (79%) diff --git a/web/WEB-INF/faces-config.xml b/web/WEB-INF/faces-config.xml index a7fc0766..b8264608 100644 --- a/web/WEB-INF/faces-config.xml +++ b/web/WEB-INF/faces-config.xml @@ -109,12 +109,12 @@ /admin/contact/admin_contact_export.xhtml - admin_list_contact_business - /admin/contact_business/admin_contact_business_list.xhtml + admin_list_business_data + /admin/business_data/admin_business_data_list.xhtml - admin_export_contact_business - /admin/contact_business/admin_contact_business_export.xhtml + admin_export_business_data + /admin/business_data/admin_business_data_export.xhtml admin_list_user diff --git a/web/WEB-INF/templates/admin/admin_menu.tpl b/web/WEB-INF/templates/admin/admin_menu.tpl index 12d3bb23..05270cc2 100644 --- a/web/WEB-INF/templates/admin/admin_menu.tpl +++ b/web/WEB-INF/templates/admin/admin_menu.tpl @@ -39,8 +39,8 @@
    -
  • -
  • +
  • +
diff --git a/web/WEB-INF/templates/admin/contact/admin_contact_links.tpl b/web/WEB-INF/templates/admin/contact/admin_contact_links.tpl index dc8195a6..1fc03955 100644 --- a/web/WEB-INF/templates/admin/contact/admin_contact_links.tpl +++ b/web/WEB-INF/templates/admin/contact/admin_contact_links.tpl @@ -6,7 +6,7 @@ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> - + diff --git a/web/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl b/web/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl index 7ab91ab7..a862af19 100644 --- a/web/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl +++ b/web/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl @@ -17,7 +17,7 @@
- +
@@ -235,15 +235,9 @@
- - - - - - - - - + + +
diff --git a/web/WEB-INF/templates/admin/fax/admin_fax_add_show.tpl b/web/WEB-INF/templates/admin/fax/admin_fax_add_show.tpl index 21f97818..e3cc014a 100644 --- a/web/WEB-INF/templates/admin/fax/admin_fax_add_show.tpl +++ b/web/WEB-INF/templates/admin/fax/admin_fax_add_show.tpl @@ -6,7 +6,7 @@ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> - + diff --git a/web/WEB-INF/templates/admin/fax/admin_fax_data.tpl b/web/WEB-INF/templates/admin/fax/admin_fax_data.tpl index 72230476..532ef872 100644 --- a/web/WEB-INF/templates/admin/fax/admin_fax_data.tpl +++ b/web/WEB-INF/templates/admin/fax/admin_fax_data.tpl @@ -6,7 +6,7 @@ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> - + diff --git a/web/WEB-INF/templates/admin/fax/admin_fax_links.tpl b/web/WEB-INF/templates/admin/fax/admin_fax_links.tpl index 33c33bcf..42e0f26d 100644 --- a/web/WEB-INF/templates/admin/fax/admin_fax_links.tpl +++ b/web/WEB-INF/templates/admin/fax/admin_fax_links.tpl @@ -6,7 +6,7 @@ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> - + diff --git a/web/WEB-INF/templates/admin/fax/admin_form_add_contact_fax.tpl b/web/WEB-INF/templates/admin/fax/admin_form_add_contact_fax.tpl index df6fefcd..180ad4c0 100644 --- a/web/WEB-INF/templates/admin/fax/admin_form_add_contact_fax.tpl +++ b/web/WEB-INF/templates/admin/fax/admin_form_add_contact_fax.tpl @@ -6,7 +6,7 @@ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> - + diff --git a/web/WEB-INF/templates/admin/fax/admin_form_fax_data.tpl b/web/WEB-INF/templates/admin/fax/admin_form_fax_data.tpl index 2665a383..c3aa9fff 100644 --- a/web/WEB-INF/templates/admin/fax/admin_form_fax_data.tpl +++ b/web/WEB-INF/templates/admin/fax/admin_form_fax_data.tpl @@ -6,7 +6,7 @@ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> - + diff --git a/web/WEB-INF/templates/admin/landline/admin_form_add_contact_landline.tpl b/web/WEB-INF/templates/admin/landline/admin_form_add_contact_landline.tpl index 22134c7d..d81e62cc 100644 --- a/web/WEB-INF/templates/admin/landline/admin_form_add_contact_landline.tpl +++ b/web/WEB-INF/templates/admin/landline/admin_form_add_contact_landline.tpl @@ -6,7 +6,7 @@ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> - + diff --git a/web/WEB-INF/templates/admin/landline/admin_form_landline_data.tpl b/web/WEB-INF/templates/admin/landline/admin_form_landline_data.tpl index 0e721a16..52cc1c22 100644 --- a/web/WEB-INF/templates/admin/landline/admin_form_landline_data.tpl +++ b/web/WEB-INF/templates/admin/landline/admin_form_landline_data.tpl @@ -6,7 +6,7 @@ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> - + diff --git a/web/WEB-INF/templates/admin/landline/admin_landline_add_show.tpl b/web/WEB-INF/templates/admin/landline/admin_landline_add_show.tpl index 4ed5e600..82b3ecf4 100644 --- a/web/WEB-INF/templates/admin/landline/admin_landline_add_show.tpl +++ b/web/WEB-INF/templates/admin/landline/admin_landline_add_show.tpl @@ -6,7 +6,7 @@ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> - + diff --git a/web/WEB-INF/templates/admin/landline/admin_landline_data.tpl b/web/WEB-INF/templates/admin/landline/admin_landline_data.tpl index 45d494ec..4e8b11b6 100644 --- a/web/WEB-INF/templates/admin/landline/admin_landline_data.tpl +++ b/web/WEB-INF/templates/admin/landline/admin_landline_data.tpl @@ -6,7 +6,7 @@ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> - + diff --git a/web/WEB-INF/templates/admin/landline/admin_landline_links.tpl b/web/WEB-INF/templates/admin/landline/admin_landline_links.tpl index 4292e6dd..25b36dd3 100644 --- a/web/WEB-INF/templates/admin/landline/admin_landline_links.tpl +++ b/web/WEB-INF/templates/admin/landline/admin_landline_links.tpl @@ -6,7 +6,7 @@ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> - + diff --git a/web/WEB-INF/templates/admin/mobile/admin_form_add_contact_mobile.tpl b/web/WEB-INF/templates/admin/mobile/admin_form_add_contact_mobile.tpl index 0371fcd6..b4892289 100644 --- a/web/WEB-INF/templates/admin/mobile/admin_form_add_contact_mobile.tpl +++ b/web/WEB-INF/templates/admin/mobile/admin_form_add_contact_mobile.tpl @@ -6,7 +6,7 @@ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> - + diff --git a/web/WEB-INF/templates/admin/mobile/admin_form_mobile_data.tpl b/web/WEB-INF/templates/admin/mobile/admin_form_mobile_data.tpl index 6066cbec..9f56cfa1 100644 --- a/web/WEB-INF/templates/admin/mobile/admin_form_mobile_data.tpl +++ b/web/WEB-INF/templates/admin/mobile/admin_form_mobile_data.tpl @@ -6,7 +6,7 @@ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> - + diff --git a/web/WEB-INF/templates/admin/mobile/admin_mobile_add_show.tpl b/web/WEB-INF/templates/admin/mobile/admin_mobile_add_show.tpl index de0dd7e7..9580d1da 100644 --- a/web/WEB-INF/templates/admin/mobile/admin_mobile_add_show.tpl +++ b/web/WEB-INF/templates/admin/mobile/admin_mobile_add_show.tpl @@ -6,7 +6,7 @@ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> - + diff --git a/web/WEB-INF/templates/admin/mobile/admin_mobile_data.tpl b/web/WEB-INF/templates/admin/mobile/admin_mobile_data.tpl index f579fab2..fbcc22db 100644 --- a/web/WEB-INF/templates/admin/mobile/admin_mobile_data.tpl +++ b/web/WEB-INF/templates/admin/mobile/admin_mobile_data.tpl @@ -6,7 +6,7 @@ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> - + diff --git a/web/WEB-INF/templates/admin/mobile/admin_mobile_links.tpl b/web/WEB-INF/templates/admin/mobile/admin_mobile_links.tpl index 48d218af..0458bd9b 100644 --- a/web/WEB-INF/templates/admin/mobile/admin_mobile_links.tpl +++ b/web/WEB-INF/templates/admin/mobile/admin_mobile_links.tpl @@ -6,7 +6,7 @@ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> - + diff --git a/web/WEB-INF/templates/admin/user/admin_form_user_data.tpl b/web/WEB-INF/templates/admin/user/admin_form_user_data.tpl index cc7ce2da..e91047b4 100644 --- a/web/WEB-INF/templates/admin/user/admin_form_user_data.tpl +++ b/web/WEB-INF/templates/admin/user/admin_form_user_data.tpl @@ -6,7 +6,7 @@ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> - + diff --git a/web/WEB-INF/templates/admin/user/admin_user_links.tpl b/web/WEB-INF/templates/admin/user/admin_user_links.tpl index f5855475..d7c209c6 100644 --- a/web/WEB-INF/templates/admin/user/admin_user_links.tpl +++ b/web/WEB-INF/templates/admin/user/admin_user_links.tpl @@ -6,7 +6,7 @@ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> - + diff --git a/web/WEB-INF/templates/base.tpl b/web/WEB-INF/templates/base.tpl index 3c24222d..3ea18220 100644 --- a/web/WEB-INF/templates/base.tpl +++ b/web/WEB-INF/templates/base.tpl @@ -46,7 +46,8 @@ - + + diff --git a/web/WEB-INF/templates/contact/form_contact_data.tpl b/web/WEB-INF/templates/contact/form_contact_data.tpl index 7f80980d..6b75bebe 100644 --- a/web/WEB-INF/templates/contact/form_contact_data.tpl +++ b/web/WEB-INF/templates/contact/form_contact_data.tpl @@ -23,7 +23,7 @@
- +
@@ -267,15 +267,9 @@
- - - - - - - - - + + +
@@ -296,7 +290,7 @@
- +
diff --git a/web/WEB-INF/templates/input_fields/fax_input_fields.tpl b/web/WEB-INF/templates/input_fields/fax_input_fields.tpl index ecddbde6..7849f34e 100644 --- a/web/WEB-INF/templates/input_fields/fax_input_fields.tpl +++ b/web/WEB-INF/templates/input_fields/fax_input_fields.tpl @@ -6,7 +6,7 @@ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> - + diff --git a/web/WEB-INF/templates/input_fields/landline_input_fields.tpl b/web/WEB-INF/templates/input_fields/landline_input_fields.tpl index 6bec8872..da4cb793 100644 --- a/web/WEB-INF/templates/input_fields/landline_input_fields.tpl +++ b/web/WEB-INF/templates/input_fields/landline_input_fields.tpl @@ -6,7 +6,7 @@ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> - + diff --git a/web/WEB-INF/templates/input_fields/mobile_input_fields.tpl b/web/WEB-INF/templates/input_fields/mobile_input_fields.tpl index a9ccc2e1..1bfa5771 100644 --- a/web/WEB-INF/templates/input_fields/mobile_input_fields.tpl +++ b/web/WEB-INF/templates/input_fields/mobile_input_fields.tpl @@ -6,21 +6,15 @@ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> - + - - - - - - - - - + + + diff --git a/web/WEB-INF/templates/login/user/user_base.tpl b/web/WEB-INF/templates/login/user/user_base.tpl index f398c0f2..00c63b1c 100644 --- a/web/WEB-INF/templates/login/user/user_base.tpl +++ b/web/WEB-INF/templates/login/user/user_base.tpl @@ -15,7 +15,7 @@ - + diff --git a/web/WEB-INF/templates/generic/message_box.tpl b/web/WEB-INF/templates/messages/message_box.tpl similarity index 100% rename from web/WEB-INF/templates/generic/message_box.tpl rename to web/WEB-INF/templates/messages/message_box.tpl diff --git a/web/WEB-INF/templates/generic/message_box_mini.tpl b/web/WEB-INF/templates/messages/message_box_mini.tpl similarity index 100% rename from web/WEB-INF/templates/generic/message_box_mini.tpl rename to web/WEB-INF/templates/messages/message_box_mini.tpl diff --git a/web/WEB-INF/templates/generic/mobile_selection_box.tpl b/web/WEB-INF/templates/selection_boxes/mobile_selection_box.tpl similarity index 100% rename from web/WEB-INF/templates/generic/mobile_selection_box.tpl rename to web/WEB-INF/templates/selection_boxes/mobile_selection_box.tpl diff --git a/web/WEB-INF/templates/generic/personal_title_selection_box.tpl b/web/WEB-INF/templates/selection_boxes/personal_title_selection_box.tpl similarity index 94% rename from web/WEB-INF/templates/generic/personal_title_selection_box.tpl rename to web/WEB-INF/templates/selection_boxes/personal_title_selection_box.tpl index 7cd411bd..c09e757a 100644 --- a/web/WEB-INF/templates/generic/personal_title_selection_box.tpl +++ b/web/WEB-INF/templates/selection_boxes/personal_title_selection_box.tpl @@ -6,7 +6,7 @@ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> - + diff --git a/web/WEB-INF/templates/generic/profile_mode_selection_box.tpl b/web/WEB-INF/templates/selection_boxes/profile_mode_selection_box.tpl similarity index 100% rename from web/WEB-INF/templates/generic/profile_mode_selection_box.tpl rename to web/WEB-INF/templates/selection_boxes/profile_mode_selection_box.tpl diff --git a/web/WEB-INF/templates/user/user_profile_link.tpl b/web/WEB-INF/templates/user/user_profile_link.tpl index 1ddb6de7..47abe987 100644 --- a/web/WEB-INF/templates/user/user_profile_link.tpl +++ b/web/WEB-INF/templates/user/user_profile_link.tpl @@ -6,7 +6,7 @@ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> - + diff --git a/web/WEB-INF/templates/generic/locale_selection_box.tpl b/web/WEB-INF/templates/widgets/locale_change_widget.tpl similarity index 100% rename from web/WEB-INF/templates/generic/locale_selection_box.tpl rename to web/WEB-INF/templates/widgets/locale_change_widget.tpl diff --git a/web/admin/contact_business/admin_contact_business_list.xhtml b/web/admin/business_data/admin_business_data_list.xhtml similarity index 79% rename from web/admin/contact_business/admin_contact_business_list.xhtml rename to web/admin/business_data/admin_business_data_list.xhtml index bf0024b8..a2e1553a 100644 --- a/web/admin/contact_business/admin_contact_business_list.xhtml +++ b/web/admin/business_data/admin_business_data_list.xhtml @@ -15,7 +15,7 @@ - + @@ -27,7 +27,7 @@ - + @@ -39,7 +39,7 @@ - + @@ -57,7 +57,7 @@ - + @@ -71,7 +71,7 @@ - +
@@ -81,7 +81,7 @@
- +