From: Dan Scott Date: Mon, 2 May 2011 01:25:38 +0000 (-0400) Subject: Debrand the login form X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b28cc4cfea28b1ce31680d80b59b7f0ba3230363;p=evergreen%2Fequinox.git Debrand the login form Breaking the password hint and login help sections out into separate templates enables sites to adjust the hint and login help links without touching the rest of the interface. Signed-off-by: Dan Scott --- 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 df78841d67..a8cd3d7980 100644 --- a/Open-ILS/web/templates/default/opac/parts/login/form.tt2 +++ b/Open-ILS/web/templates/default/opac/parts/login/form.tt2 @@ -111,9 +111,7 @@ END %] [% 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', '
', '
') %] -
+ [% INCLUDE "default/opac/parts/login/password_hint.tt2" %]
@@ -145,18 +143,7 @@ END %]

- - - [% l('Questions?') %] - -
- [% l('Visit our FAQs section for answers to common questions about how to use your account.') %] -
- - [% l('FAQs') %] - + [% INCLUDE "default/opac/parts/login/help.tt2" %] diff --git a/Open-ILS/web/templates/default/opac/parts/login/help.tt2 b/Open-ILS/web/templates/default/opac/parts/login/help.tt2 new file mode 100644 index 0000000000..16db31fe7e --- /dev/null +++ b/Open-ILS/web/templates/default/opac/parts/login/help.tt2 @@ -0,0 +1,12 @@ + + + [% l('Questions?') %] + +
+ [% l('Visit our FAQs section for answers to common questions about how to use your account.') %] +
+ + [% l('FAQs') %] + diff --git a/Open-ILS/web/templates/default/opac/parts/login/password_hint.tt2 b/Open-ILS/web/templates/default/opac/parts/login/password_hint.tt2 new file mode 100644 index 0000000000..a95b47fa78 --- /dev/null +++ b/Open-ILS/web/templates/default/opac/parts/login/password_hint.tt2 @@ -0,0 +1,5 @@ + + [% | l('
', '
') %] + If this is your first time logging in, please enter [_1] the last 4 digits of your phone number. [_2] Example: 0926 + [% END %] +
diff --git a/Open-ILS/web/templates_kcls/default/opac/parts/login/form.tt2 b/Open-ILS/web/templates_kcls/default/opac/parts/login/form.tt2 deleted file mode 100644 index c0624ae2a8..0000000000 --- a/Open-ILS/web/templates_kcls/default/opac/parts/login/form.tt2 +++ /dev/null @@ -1,171 +0,0 @@ - - -[% 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 %] - -
-
-
- - - - - - -
-
-
-
diff --git a/Open-ILS/web/templates_kcls/default/opac/parts/login/help.tt2 b/Open-ILS/web/templates_kcls/default/opac/parts/login/help.tt2 new file mode 100644 index 0000000000..a6d7ebbeb9 --- /dev/null +++ b/Open-ILS/web/templates_kcls/default/opac/parts/login/help.tt2 @@ -0,0 +1,12 @@ + + + [% l('Questions?') %] + +
+ [% l('Visit our FAQs section for answers to common questions about how to use your account.') %] +
+ + [% l('FAQs') %] +