From 41c1eba5a2acce5c0af831f7a7d3a47adcddaabb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 25 Aug 2016 16:39:14 +0200 Subject: [PATCH] Please cherry-pick: - added new page that admins can send out a new confirmation link to users - added navigation rule for new page - added missing i18n strings - using ui:fragment is now no longer required (it hid the
  • tag if unconfirmed) - fixed i18n usage --- .../localization/bundle_de_DE.properties | 9 ++ .../localization/bundle_en_US.properties | 10 ++ web/WEB-INF/faces-config.xml | 4 + .../templates/admin/user/admin_user_links.tpl | 24 ++-- .../admin_user_resend_confirmation_link.xhtml | 108 ++++++++++++++++++ web/admin/user/admin_user_unlock.xhtml | 2 +- 6 files changed, 145 insertions(+), 12 deletions(-) create mode 100644 web/admin/user/admin_user_resend_confirmation_link.xhtml diff --git a/src/java/org/mxchange/localization/bundle_de_DE.properties b/src/java/org/mxchange/localization/bundle_de_DE.properties index 5e660eb0..1feae44c 100644 --- a/src/java/org/mxchange/localization/bundle_de_DE.properties +++ b/src/java/org/mxchange/localization/bundle_de_DE.properties @@ -726,3 +726,12 @@ BUTTON_ADMIN_DELETE_LAND_LINE_NUMBER=Festnetznummer l\u00f6schen ADMIN_CONTACT_LIST_EMPTY=Keine Kontaktdaten in Datenbank gefunden. ADMIN_USER_LIST_EMPTY=Keine Benutzerdaten in Datenbank gefunden. ADMIN_PERSONAL_DATA_COMMENT=Kommentar: (optional) +ADMIN_LINK_RESEND_USER_CONFIRMATION_LINK=Neuen Best\u00e4tigungslink zusenden +ADMIN_LINK_RESEND_USER_CONFIRMATION_LINK_TITLE=Sendet einen neuen Best\u00e4tigungslink an die im Account hinterlegte Email-Adresse. +ERROR_ADMIN_CANNOT_RESEND_USER_CONFIRMATION_LINK_ACCOUNT_UNLOCKED=Fehler: Kann keinen neuen Best\u00e4tigungslink aussenden, Benutzeraccount ist bereits best\u00e4tigt. +ERROR_ADMIN_CANNOT_RESEND_USER_CONFIRMATION_LINK_ACCOUNT_LOCKED=Fehler: Kann keinen neuen Best\u00e4tigungslink aussenden, Benutzeraccount ist gesperrt. +BUTTON_ADMIN_RESEND_USER_CONFIRMATION_LINK_ACCOUNT=Neuen Best\u00e4tigungslink aussenden +ADMIN_RESEND_USER_CONFIRMATION_LINK_TITLE=M\u00f6chten Sie dem Benutzer {0} (Id-Nummer {1}) einen neuen Best\u00e4tigungslink zusenden? +ADMIN_RESEND_USER_CONFIRMATION_LINK_NOTICE=Durch das Zuschicken eines neuen Best\u00e4tigungslinkes wird der alte ung\u00fcltig und nur noch der neue Link kann verwendet werden. +PAGE_TITLE_ADMIN_RESEND_USER_CONFIRMATION_LINK=Neuen Best\u00e4tigungslink versenden +CONTENT_TITLE_ADMIN_RESEND_USER_CONFIRMATION_LINK=Neuen Best\u00e4tigungslink versenden: diff --git a/src/java/org/mxchange/localization/bundle_en_US.properties b/src/java/org/mxchange/localization/bundle_en_US.properties index 940e7168..18851803 100644 --- a/src/java/org/mxchange/localization/bundle_en_US.properties +++ b/src/java/org/mxchange/localization/bundle_en_US.properties @@ -726,3 +726,13 @@ BUTTON_ADMIN_DELETE_LAND_LINE_NUMBER=Delete land-line number ADMIN_CONTACT_LIST_EMPTY=No contact data found in database. ADMIN_USER_LIST_EMPTY=No user data found in database. ADMIN_PERSONAL_DATA_COMMENT=Comment: (optional) +ADMIN_LINK_RESEND_USER_CONFIRMATION_LINK=Send new confirmation key +ADMIN_LINK_RESEND_USER_CONFIRMATION_LINK_TITLE=Sends out a new confirmation link to the user's assigned email address. +ERROR_ADMIN_CANNOT_RESEND_USER_CONFIRMATION_LINK_ACCOUNT_UNLOCKED=Error: Cannot send new confirmation link to user, account is already confirmed. +ERROR_ADMIN_CANNOT_RESEND_USER_CONFIRMATION_LINK_ACCOUNT_LOCKED=Error: Cannot send new confirmation link to user, account is locked. +BUTTON_ADMIN_RESEND_USER_CONFIRMATION_LINK_ACCOUNT=Send new confirmation link +ADMIN_RESEND_USER_CONFIRMATION_LINK_TITLE=Do you want to send a new confirmation link to user {0} (id numer {1})? +#Durch das Zuschicken eines neuen Best\u00e4tigungslinkes wird der alte ung\u00fcltig und nur noch der neue Link kann verwendet werden. +ADMIN_RESEND_USER_CONFIRMATION_LINK_NOTICE=By sending a new confirmation link to the user, the old link becomes invalid and only the new link can be used. +PAGE_TITLE_ADMIN_RESEND_USER_CONFIRMATION_LINK=Send new confirmation link +CONTENT_TITLE_ADMIN_RESEND_USER_CONFIRMATION_LINK=Send new confirmation link: diff --git a/web/WEB-INF/faces-config.xml b/web/WEB-INF/faces-config.xml index 6b921d25..ed5b92c8 100644 --- a/web/WEB-INF/faces-config.xml +++ b/web/WEB-INF/faces-config.xml @@ -368,6 +368,10 @@ admin_delete_user /admin/user/admin_user_delete.xhtml + + admin_resend_user_confirm_link + /admin/user/admin_user_resend_confirmation_link.xhtml + admin_lock_user /admin/user/admin_user_lock.xhtml 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 a00b77df..d42ad00e 100644 --- a/web/WEB-INF/templates/admin/user/admin_user_links.tpl +++ b/web/WEB-INF/templates/admin/user/admin_user_links.tpl @@ -31,17 +31,19 @@
  • - -
  • - - - - - - - -
  • -
    +
  • + + + + + + + + + + + +
  • diff --git a/web/admin/user/admin_user_resend_confirmation_link.xhtml b/web/admin/user/admin_user_resend_confirmation_link.xhtml new file mode 100644 index 00000000..e27b8546 --- /dev/null +++ b/web/admin/user/admin_user_resend_confirmation_link.xhtml @@ -0,0 +1,108 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + +
    + +
    +
    + +
    + +
    + + + +
    +
    + +
    +
    + +
    + +
    + +
    +
    + +
    +
    + +
    + +
    + +
    +
    + +
    +
    + +
    + +
    + +
    +
    + +
    + +
    + + +
    +
    + + + + + + + + + + +
    +
    + diff --git a/web/admin/user/admin_user_unlock.xhtml b/web/admin/user/admin_user_unlock.xhtml index 95e4cca6..d714d885 100644 --- a/web/admin/user/admin_user_unlock.xhtml +++ b/web/admin/user/admin_user_unlock.xhtml @@ -42,7 +42,7 @@
    - +
    -- 2.39.5