From: Terran McCanna Date: Fri, 29 Jul 2022 16:36:33 +0000 (-0400) Subject: LP1981628 Third follow-up X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=69154c2a2cc457f92bb643fd7396d9915e203b91;p=working%2FEvergreen.git LP1981628 Third follow-up The last follow-up had the inadvertent side-effect of hiding the message directing the patron to contact their library if they had a negative balance. My thought is that if there are negative bills then the patron should see the alert to contact their library about them regardless of whether or not online payments are allowed. So, this additional followup separates that alert from the myopac_cc_allowed logic. This also makes some minor display tweaks to the BooPAC: - Applies the Bootstrap 'alert-warning' to the negative bills message in the BooPAC. - Adds a page header. - Changes the styling and wording of the grocery charges heading to match the circulation charges heading. - Changes the styling of the grocery and circulation tables to be consistent with each other. Signed-off-by: Terran McCanna Signed-off-by: Jason Etheridge Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/templates-bootstrap/opac/myopac/charges.tt2 b/Open-ILS/src/templates-bootstrap/opac/myopac/charges.tt2 index 31e5b107b8..323a417a1d 100755 --- a/Open-ILS/src/templates-bootstrap/opac/myopac/charges.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/myopac/charges.tt2 @@ -17,6 +17,8 @@ END; IF neg_or_zero > 0; myopac_cc_allowed = 0; END; %] + +

[% l("Current Charges") %]

[% IF myopac_cc_allowed; %]
[% END %] @@ -36,8 +38,8 @@ - - +
+
@@ -131,6 +133,7 @@ [% END %]
+ *Items may have been renewed. @@ -139,9 +142,16 @@ [% IF ctx.fines.grocery.size > 0 %]
-

- [% l("Charges On Your Account") %] -

+
+ + + [% IF myopac_cc_allowed %] + [% l("Pay Selected Other Fines and Fees") %] + [% ELSE %] + [% l("Other Fines and Fees") %] + [% END %] + +
[% IF myopac_cc_allowed %]
@@ -152,8 +162,8 @@
[% END %] -
- +
+
@@ -212,22 +222,21 @@ [% END %]
-
- +
[% END %] [% UNLESS ctx.fines.grocery.size OR ctx.fines.circulation.size %]
[% l('You have no current fines.') %]
[% ELSIF myopac_cc_allowed %] - [% IF neg_or_zero > 0 %] -
[% l('There are negative bills on your account that must be resolved before you are able to make a payment. Please contact your library for assistance.') %] - [% ELSE %] -
- +
+ -
- [% END %] +
+ [% END %] + [% IF neg_or_zero > 0 %] +
[% l('Note: There are negative bills on your account that must be resolved + before you are able to make a payment. Please contact your library for assistance.') %] [% END %] [% IF myopac_cc_allowed %] diff --git a/Open-ILS/src/templates/opac/myopac/main.tt2 b/Open-ILS/src/templates/opac/myopac/main.tt2 index b7e3b5a9b3..ddf26ae5db 100644 --- a/Open-ILS/src/templates/opac/myopac/main.tt2 +++ b/Open-ILS/src/templates/opac/myopac/main.tt2 @@ -209,19 +209,18 @@ [% UNLESS ctx.fines.grocery.size OR ctx.fines.circulation.size %]
[% l('You have no current fines.') %]
[% ELSIF myopac_cc_allowed %] - [% IF neg_or_zero > 0 %] -
[% l('There are negative bills on your account that must be resolved before you are able to make a payment. Please contact your library for assistance.') %] - [% ELSE %] -
- -
- [% END %] +
+ +
[% END %] [% IF myopac_cc_allowed %] [% END %] +[% IF neg_or_zero > 0 %] +
[% l('There are negative bills on your account that must be resolved before you are able to make a payment. Please contact your library for assistance.') %] +[% END %] [% END %]