From ec3ce4b96f1fc790de885f1fa1a63984fec2d496 Mon Sep 17 00:00:00 2001
From: Bill Erickson <berickxx@gmail.com>
Date: Tue, 6 Nov 2018 15:06:19 -0500
Subject: [PATCH] LP#1801998 Deprecate Hatch for data storage

Add a deprecation warning to the Hatch configuration page notifying
users that Hatch for storage is deprecated.  Includes suggestions on how
to migrate away from Hatch for storage.

Remove the unusued "Use Hatch for Offline Files" option.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: John Amundson <jamundson@cwmars.org>
Signed-off-by: Jason Stephenson <jason@sigio.com>
---
 .../templates/staff/admin/workstation/t_hatch.tt2  | 26 ++++++++--------------
 1 file changed, 9 insertions(+), 17 deletions(-)

diff --git a/Open-ILS/src/templates/staff/admin/workstation/t_hatch.tt2 b/Open-ILS/src/templates/staff/admin/workstation/t_hatch.tt2
index 836c893e9a..eed2980986 100644
--- a/Open-ILS/src/templates/staff/admin/workstation/t_hatch.tt2
+++ b/Open-ILS/src/templates/staff/admin/workstation/t_hatch.tt2
@@ -24,6 +24,15 @@
   </div>
 
   <div class="row new-entry">
+    <div class="panel panel-danger">
+      <div class="panel-heading">[% l('Storing settings in Hatch is deprecated') %]</div>
+      <div class="panel-body">
+        [% l("If 'Store Local Settings in Hatch' is enabled.  Use the 'Copy Hatch Settings To Local Storage' button before disabling 'Store Local Settings in Hatch'") %]
+      </div>
+    </div>
+  </div>
+
+  <div class="row new-entry">
     <div class="col-md-4">
       <div class="checkbox">
         <label>
@@ -34,29 +43,12 @@
       </div>
     </div>
     <div class="col-md-3">
-      <button class="btn btn-default" ng-click="copy_to_hatch()">
-        [% l('Copy Local Storage Settings To Hatch') %]
-      </button>
-    </div>
-    <div class="col-md-3">
       <button class="btn btn-default" ng-click="copy_to_local()">
         [% l('Copy Hatch Settings To Local Storage') %]
       </button>
     </div>
   </div>
 
-  <div class="row new-entry">
-    <div class="col-md-4">
-      <div class="checkbox">
-        <label>
-          <input type="checkbox" 
-            ng-model="hatch_offline">
-            [% l('Store Offline Transaction Data in Hatch') %]
-        </label>
-      </div>
-    </div>
-  </div>
-
 </div>
 
 
-- 
2.11.0