From b4cdb9520dab5dd92e8d2b16d6fab9b3514980df Mon Sep 17 00:00:00 2001
From: Jason Stephenson <jason@sigio.com>
Date: Mon, 9 Sep 2019 08:47:09 -0400
Subject: [PATCH] Lp 1835085: Update Item Status templates for auto-renewal

Add checks for circ.auto_renewal() == 't' in the circ list and summary
pane views of the web staff client Item Status interface.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
---
 Open-ILS/src/templates/staff/cat/item/t_circ_list_pane.tt2 | 3 ++-
 Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2   | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/Open-ILS/src/templates/staff/cat/item/t_circ_list_pane.tt2 b/Open-ILS/src/templates/staff/cat/item/t_circ_list_pane.tt2
index f4a3d0f455..5165571b14 100644
--- a/Open-ILS/src/templates/staff/cat/item/t_circ_list_pane.tt2
+++ b/Open-ILS/src/templates/staff/cat/item/t_circ_list_pane.tt2
@@ -57,7 +57,8 @@
     <div class="flex-cell well">{{
       circ.phone_renewal() == 't' ||
       circ.desk_renewal() == 't' ||
-      circ.opac_renewal() == 't'
+      circ.opac_renewal() == 't' ||
+      circ.auto_renewal() == 't'
     }}</div>
     <div class="flex-cell">[% l('Stop Fines Reason') %]</div>
     <div class="flex-cell well">{{circ.stop_fines()}}</div>
diff --git a/Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2 b/Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2
index dad5ec94b3..46a6b02f89 100644
--- a/Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2
+++ b/Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2
@@ -74,6 +74,7 @@
       <div ng-if="circ.opac_renewal() == 't'">[% l('OPAC') %]</div>
       <div ng-if="circ.desk_renewal() == 't'">[% l('Desk') %]</div>
       <div ng-if="circ.phone_renewal() == 't'">[% l('Phone') %]</div>
+      <div ng-if="circ.auto_renewal() == 't'">[% l('Automatic') %]</div>
     </div>
 
     <div class="flex-cell">[% l('Checkout Workstation') %]</div>
-- 
2.11.0