From c5913a89ee782884b2411b9fcc55c7f55df98bba 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 | 59 +++++++++------------- 1 file changed, 24 insertions(+), 35 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 4c4b768640..f9ea7b7bd6 100644 --- a/Open-ILS/web/templates/default/opac/parts/login/form.tt2 +++ b/Open-ILS/web/templates/default/opac/parts/login/form.tt2 @@ -1,5 +1,4 @@ -[% IF ctx.login_failed_event %] -
-[% + +[% 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."); + 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 %] +END %]
-
+ @@ -119,14 +112,12 @@ -
- 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') %] +

- +
[% 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 - [% END %] + [% l('If this is your first time logging in, please enter [_1] the last 4 digits of your phone number. [_2] Example: 0926', '
', '
') %]
- +
[% @@ -154,22 +145,20 @@

- -- 2.11.0