From 97d1c4f8010f1b040f860fe2a207bea1631a87f5 Mon Sep 17 00:00:00 2001 From: Melissa Lefebvre Date: Fri, 10 May 2013 15:19:09 -0400 Subject: [PATCH] TPAC - Password Messages In jspac a message appeared when the patron went to change their password stating the requirements. This same message is missing in TPAC. The wording from jspac has been added to a separate file, update_password_msg.tt2, that can later be easily edited and the original update_password.tt2 has been edited with an INCLUDE statement pointing to the newly created file. Also improved is the message when requesting a forgotten password. Patrons are unaware that a valid email address needs to be in their record until after they try to send a reset. Text has been added to a new file, password_reset_msg.tt2, to explain the need for an email address. Password_reset.tt2 has been edited with an INCLUDE statement pointing to the newly created file. Style.css.tt2 was also updated to remove extra padding on #account-update-email table to raise the table on update_password.tt2. This value is also used on update_username.tt2 and update_email.tt2 without considerable impact to the look of those pages. Signed-off-by: Melissa Lefebvre Signed-off-by: Dan Scott --- Open-ILS/src/templates/opac/css/style.css.tt2 | 8 +++++++- Open-ILS/src/templates/opac/myopac/update_password.tt2 | 2 ++ .../src/templates/opac/myopac/update_password_msg.tt2 | 3 +++ Open-ILS/src/templates/opac/password_reset.tt2 | 1 + Open-ILS/src/templates/opac/password_reset_msg.tt2 | 3 +++ 5 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 Open-ILS/src/templates/opac/myopac/update_password_msg.tt2 create mode 100644 Open-ILS/src/templates/opac/password_reset_msg.tt2 diff --git a/Open-ILS/src/templates/opac/css/style.css.tt2 b/Open-ILS/src/templates/opac/css/style.css.tt2 index 959609ddfe..06897f6b43 100644 --- a/Open-ILS/src/templates/opac/css/style.css.tt2 +++ b/Open-ILS/src/templates/opac/css/style.css.tt2 @@ -1103,7 +1103,7 @@ div.facet_sidebar { .no-dec:hover { text-decoration: none; } .pending-addr td { background-color: [% css_colors.background_alert %] !important; border: 0 !important; } -#account-update-email table { text-align: center; padding: 20px; margin-top: 30px; border-collapse: collapse; } +#account-update-email table { text-align: center; padding: 20px; margin-top: 18px; border-collapse: collapse; } #account-update-email table td { padding: 5px 15px 5px 15px; border-bottom: 1px solid [% css_colors.accent_lighter %]; text-align: left;} #account-update-email-error { font-size: [% css_fonts.size_biggest %]; padding: 10px; border:1px solid [% css_colors.border_standard %];} a.dash-link:hover { text-decoration: underline !important; } @@ -1515,3 +1515,9 @@ a.preflib_change { .record_author { font-style: italic; } + +.password_message { + padding-top: 1em; + padding-bottom: 0.5em; + font-style: italic; +} \ No newline at end of file diff --git a/Open-ILS/src/templates/opac/myopac/update_password.tt2 b/Open-ILS/src/templates/opac/myopac/update_password.tt2 index d9a427d996..8da1666206 100644 --- a/Open-ILS/src/templates/opac/myopac/update_password.tt2 +++ b/Open-ILS/src/templates/opac/myopac/update_password.tt2 @@ -8,6 +8,8 @@
[% l('Update Password') %]
+ +[% INCLUDE "opac/myopac/update_password_msg.tt2" %] [% IF ctx.password_invalid %]
diff --git a/Open-ILS/src/templates/opac/myopac/update_password_msg.tt2 b/Open-ILS/src/templates/opac/myopac/update_password_msg.tt2 new file mode 100644 index 0000000000..23d5914d3b --- /dev/null +++ b/Open-ILS/src/templates/opac/myopac/update_password_msg.tt2 @@ -0,0 +1,3 @@ +
+[% l('Note: The password must be at least 7 characters in length, contain at least one letter (a-z/A-Z), and contain at least one number.'); %] +
\ No newline at end of file diff --git a/Open-ILS/src/templates/opac/password_reset.tt2 b/Open-ILS/src/templates/opac/password_reset.tt2 index 27f079ef47..959cd32f25 100644 --- a/Open-ILS/src/templates/opac/password_reset.tt2 +++ b/Open-ILS/src/templates/opac/password_reset.tt2 @@ -48,6 +48,7 @@ [% END %] [% ELSIF !ctx.pwreset.status %]

[% l('Please enter your user name or barcode to identify your library account and request a password reset') %]

+ [% INCLUDE "opac/password_reset_msg.tt2" %]
diff --git a/Open-ILS/src/templates/opac/password_reset_msg.tt2 b/Open-ILS/src/templates/opac/password_reset_msg.tt2 new file mode 100644 index 0000000000..0d03289d1c --- /dev/null +++ b/Open-ILS/src/templates/opac/password_reset_msg.tt2 @@ -0,0 +1,3 @@ +
+[% l('Note: You must have a valid email address associated with your library account. If not, please contact your local library for further assistance.'); %] +
\ No newline at end of file -- 2.43.2