From 3a3d821a7d901e3a9caec7111c3348a853889023 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 7 Jul 2017 18:07:28 -0400 Subject: [PATCH] webstaff serials: teach the pattern wizard a view-only mode Signed-off-by: Galen Charlton --- .../src/templates/staff/serials/t_prediction_wizard.tt2 | 16 +++++++++++++--- .../staff/serials/directives/prediction_wizard.js | 6 +++++- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/Open-ILS/src/templates/staff/serials/t_prediction_wizard.tt2 b/Open-ILS/src/templates/staff/serials/t_prediction_wizard.tt2 index 1ee6b68eaf..2596a46362 100644 --- a/Open-ILS/src/templates/staff/serials/t_prediction_wizard.tt2 +++ b/Open-ILS/src/templates/staff/serials/t_prediction_wizard.tt2 @@ -6,12 +6,12 @@ [% l('Back') %] @@ -19,6 +19,7 @@
+
+
+
+
+
+
+
+
+
@@ -402,6 +411,7 @@
+
@@ -432,7 +442,7 @@
-
+
diff --git a/Open-ILS/web/js/ui/default/staff/serials/directives/prediction_wizard.js b/Open-ILS/web/js/ui/default/staff/serials/directives/prediction_wizard.js index 535f41a6fd..b575d48145 100644 --- a/Open-ILS/web/js/ui/default/staff/serials/directives/prediction_wizard.js +++ b/Open-ILS/web/js/ui/default/staff/serials/directives/prediction_wizard.js @@ -7,7 +7,8 @@ angular.module('egSerialsAppDep') scope: { patternCode : '=', onSave : '=', - showShare : '=' + showShare : '=', + viewOnly : '=' }, templateUrl: './serials/t_prediction_wizard', controller: @@ -18,6 +19,9 @@ function($scope , $q , egSerialsCoreSvc , egCore , egGridDataProvider) { if (angular.isUndefined($scope.showShare)) { $scope.showShare = true; } + if (angular.isUndefined($scope.viewOnly)) { + $scope.viewOnly = false; + } // for use by ng-value $scope.True = true; -- 2.11.0