From 1d14bf72f67b57bd32b8edd41c55c4eba0a0160f Mon Sep 17 00:00:00 2001
From: Owen Leonard <oleonard@myacpl.org>
Date: Fri, 14 Sep 2018 23:07:27 +0000
Subject: [PATCH] Bug 20959: (Follow-up) Keep informational notes open after
 checkin

This patch modifies the template so that the on-screen messages
about settings like 'Book drop mode' stay open from one checkout to
another.

To test, apply the patch and test checking combinations of 'Forgive
overdue charges' and 'Book drop mode,' verifying that their
corresponding onscreen messages appear correctly and stay visible
(or not) from one checkout to another.

Signed-off-by: Christopher Brannon <cbrannon@cdalibrary.org>
---
 .../intranet-tmpl/prog/en/modules/circ/returns.tt    | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt
index 30b10e1..3ce205f 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt
@@ -622,13 +622,27 @@
                 </div>
             </div>
             <div class="col-sm-6">
-                <div id="exemptfines" class="checkin-active-setting" style="display:none;">
+                [% IF ( exemptfine ) %]
+                    <div id="exemptfines" class="checkin-active-setting">
+                [% ELSE %]
+                    <div id="exemptfines" class="checkin-active-setting" style="display:none;">
+                [% END %]
                     <p><i class="fa fa-check"></i> Fines for returned items are forgiven.</p>
                 </div>
-                <div id="forgivemanualholdsexpire-alert" class="checkin-active-setting" style="display:none;">
+
+                [% IF ( forgivemanualholdsexpire ) %]
+                    <div id="forgivemanualholdsexpire-alert" class="checkin-active-setting">
+                [% ELSE %]
+                    <div id="forgivemanualholdsexpire-alert" class="checkin-active-setting" style="display:none;">
+                [% END %]
                     <p><i class="fa fa-check"></i> Fines are not charged for manually cancelled holds.</p>
                 </div>
-                <div id="dropboxmode" class="checkin-active-setting" style="display:none;">
+
+                [% IF ( dropboxmode ) %]
+                    <div id="dropboxmode" class="checkin-active-setting">
+                [% ELSE %]
+                    <div id="dropboxmode" class="checkin-active-setting" style="display:none;">
+                [% END %]
                     <p><i class="fa fa-check"></i> Book drop mode.  (Effective checkin date is [% dropboxdate %] ).</p>
                 </div>
             </div>
-- 
2.1.4