From 7c046a3f8cfb6e312890c1dcaf5ac082fca09a72 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 10 Feb 2011 12:25:29 -0500 Subject: [PATCH] login form cleanup and implementation of login-failure handling; more to come --- .../templates/default/opac/parts/login/form.tt2 | 86 ++++++++++++---------- 1 file changed, 46 insertions(+), 40 deletions(-) diff --git a/Open-ILS/web/templates/default/opac/parts/login/form.tt2 b/Open-ILS/web/templates/default/opac/parts/login/form.tt2 index e140bcb3f5..939cd1774b 100644 --- a/Open-ILS/web/templates/default/opac/parts/login/form.tt2 +++ b/Open-ILS/web/templates/default/opac/parts/login/form.tt2 @@ -1,4 +1,6 @@ - + + + + + +[% IF ctx.login_failed_event; + IF ctx.login_failed_event.textcode == 'PATRON_CARD_INACTIVE'; + l("The barcode used to login is marked as inactive. Please contact your local library."); + ELSIF ctx.login_failed_event.textcode == 'PATRON_INACTIVE'; + l("This account has been deactivated. Please contact your local library."); + ELSE; + l("Login failed. The username or password provided was not valid. Ensure Caps-Lock is off and try again or contact your local library."); + END; +END %] + + +
-
+ @@ -99,33 +113,27 @@ @@ -133,22 +141,20 @@

-
- Library Card Number or Username
+ [% l('Library Card Number or Username') %] +
- Please include leading zeros and no spaces. -
Example: 0026626051
+ [% l('Please include leading zeros and no spaces.') %] +
+ [% l('Example: 0026626051') %] +

- +
- PIN Number or Password
- If this is your first time - logging in, please enter
- the last 4 digits of your phone number.
- Example: 0926
+ [% l('PIN Number or Password') %]
+ + [% l('If this is your first time logging in, please enter [_1] the last 4 digits of your phone number. [_2] Example: 0926', '
', '
') %] +
- +
- - + [% l('Remember Me?') %]
- Log in - - +
- -- 2.11.0