From 50efeda747cfaae52b9b5c6d6829593b64d0d0dd Mon Sep 17 00:00:00 2001 From: nina martinez Date: Tue, 10 Jun 2025 17:08:43 +0200 Subject: [PATCH] Bug 40283: memberentry page. Added Alert and status role to the messages tags. Test plan: 1- Enable the system preference: OPACPatronDetails 2- Log in to an adult patron account, go to Personal details 3- Without making any changes, click on "submit update request", the alert message should be : 'No changes were made', Inspect the HTML code, and notice that there is a role='alert' in the message tag. 4- Change your date of birth to today and submit 5- An error message should appear: "The following fields contain invalid information ... Patron's age ... correct and resubmit". Inspect the HTML code and notice that there is a role='alert' in the message tag. 6- Add or change an information, and submit the update. A message should appear: 'Thank you ... ' Inspect the HTML code, and notice that there is a role='status'. 7- Now disable the system preference OPACPatronDetails. The status message should be: 'To make changes to your record, please contact the library'. Inspect the HTML code, and notice that there is a role='status' in the message tag. 8- Now log out, click on create a new account, fill the required fields, and fail the captcha? You should see the error message: 'You typed the wrong ... Please try again.' Inspect the HTML code, and notice that there is a role='alert' in the message tag. Signed-off-by: Owen Leonard --- .../en/modules/opac-memberentry-update-submitted.tt | 2 +- .../opac-tmpl/bootstrap/en/modules/opac-memberentry.tt | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry-update-submitted.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry-update-submitted.tt index 488c069e7b1..03d15448eb7 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry-update-submitted.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry-update-submitted.tt @@ -32,7 +32,7 @@
-
+

Thank you

[% IF ( Koha.Preference('AutoApprovePatronProfileSettings') ) %]

Your updates have been submitted and your patron account has been modified.

diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt index b6621ad7411..f4149bff834 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt @@ -77,10 +77,10 @@
[% IF op == 'edit' %] [% UNLESS OPACPatronDetails %] -
To make changes to your record please contact the library.
+
To make changes to your record please contact the library.
[% END %] [% IF nochanges %] -
No changes were made.
+ [% END %] [% END %] @@ -89,7 +89,7 @@ [% END %] [% IF invalid_form_fields %] -