From 1d194e46e2d99cb9daa45609e4a13af4202f189b Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 7 Aug 2024 18:47:02 +0000 Subject: [PATCH] Bug 30088: (follow-up) Improve behavior when email is ambiguous This patch makes a few changes to the way the form appears when you submit an email which is attached to more than one patron account. Apply the patch and rebuild the OPAC CSS. - If you submit an email address which isn't unique, the "enter your login or your email address" message is hidden. - The login and email fields are marked as required. This patch also changes the behavior of the "I know my..." buttons so that they change style when clicked. Signed-off-by: Laura_Escamilla --- .../opac-tmpl/bootstrap/css/src/opac.scss | 22 ++++++++-- .../en/modules/opac-password-recovery.tt | 42 ++++++++++++------- 2 files changed, 47 insertions(+), 17 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss index 8a10f52252..a2a2d6b397 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss +++ b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss @@ -794,7 +794,6 @@ th { color: #C00; display: block; font-size: 95%; - margin-left: 10rem; margin-top: 3px; } } @@ -1018,6 +1017,12 @@ fieldset { display: block; margin-left: 10rem; } + + .required_label { + &.required { + margin-left: 10rem; + } + } } div { @@ -1680,6 +1685,12 @@ nav { margin-bottom: 1rem; } +#password_recovery_login, +#password_recovery_email, +#password_recovery_submit { + padding: 1rem; +} + #password_recovery_options { background-color: #F0F3F3; display: flex; @@ -1688,8 +1699,8 @@ nav { padding: 1rem; } -#use_login a, -#use_email a { +#use_login, +#use_email { background-color: #FFF; border: 1px solid #0074AD; border-radius: 10px; @@ -1697,6 +1708,11 @@ nav { font-size: 130%; padding: 1rem; white-space: nowrap; + + &.select-login-active { + background-color: #0074AD; + color: #FFF; + } } #renewcontrols { diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt index f7cbf9df6d..b811df7f01 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt @@ -88,29 +88,39 @@ [% INCLUDE 'csrf-token.inc' %] Password recovery -

To reset your password, enter your login or your email address.

+ [% UNLESS ( errMultipleAccountsForEmail ) %] +

To reset your password, enter your login or your email address.

+ [% END %]