From: Galen Charlton Date: Thu, 7 Jun 2018 20:58:59 +0000 (-0400) Subject: warn if attempting to print or email an empty cart X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7d6111fe31be80fd4e3966c852b5b189e37a6d40;p=working%2FEvergreen.git warn if attempting to print or email an empty cart Also: * make styling of the warning message consistent * add return to referrer button --- diff --git a/Open-ILS/src/templates/opac/mylist.tt2 b/Open-ILS/src/templates/opac/mylist.tt2 index b09f5f8c1c..650786c0e3 100644 --- a/Open-ILS/src/templates/opac/mylist.tt2 +++ b/Open-ILS/src/templates/opac/mylist.tt2 @@ -13,7 +13,8 @@ [% IF ctx.mylist.size; INCLUDE "opac/parts/anon_list.tt2"; ELSE %] -
[% l("You have not created a cart yet."); %]
+
[% l("You have not created a cart yet."); %]
+ [% END %]
diff --git a/Open-ILS/src/templates/opac/mylist/email.tt2 b/Open-ILS/src/templates/opac/mylist/email.tt2 index 9271d8ed4b..773ea8d302 100644 --- a/Open-ILS/src/templates/opac/mylist/email.tt2 +++ b/Open-ILS/src/templates/opac/mylist/email.tt2 @@ -7,6 +7,7 @@ [% INCLUDE "opac/parts/searchbar.tt2" %]
+ [% IF ctx.mylist.size %]

[% l('Please confirm that you want to email the [_1] titles in the cart.', ctx.mylist.size) %]

@@ -18,6 +19,10 @@ alt="[% l('Confirm') %]" class="opac-button" />
+ [% ELSE %] +
[% l("You have not created a cart yet."); %]
+ + [% END %]
diff --git a/Open-ILS/src/templates/opac/mylist/print.tt2 b/Open-ILS/src/templates/opac/mylist/print.tt2 index 118c7d9491..1916681307 100644 --- a/Open-ILS/src/templates/opac/mylist/print.tt2 +++ b/Open-ILS/src/templates/opac/mylist/print.tt2 @@ -7,6 +7,7 @@ [% INCLUDE "opac/parts/searchbar.tt2" %]
+ [% IF ctx.mylist.size %]

[% l('Please confirm that you want to print the [_1] titles in the cart.', ctx.mylist.size) %]

@@ -18,6 +19,10 @@ alt="[% l('Confirm') %]" class="opac-button" />
+ [% ELSE %] +
[% l("You have not created a cart yet."); %]
+ + [% END %]