From 1c0ac9f73b4d8c887c76ea477eda3ac9163a1d9f Mon Sep 17 00:00:00 2001 From: Terran McCanna Date: Fri, 29 Jul 2022 12:36:33 -0400 Subject: [PATCH] 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 --- .../templates-bootstrap/opac/myopac/charges.tt2 | 43 +++++++++++++--------- Open-ILS/src/templates/opac/myopac/main.tt2 | 19 +++++----- 2 files changed, 35 insertions(+), 27 deletions(-) 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 %] -- 2.11.0