From 6f972e76c55c729cce569e4a73383863a586819b Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 22 Nov 2016 11:15:42 -0500 Subject: [PATCH] LP#1642761 Hatch print config UI WIP Signed-off-by: Bill Erickson --- .../staff/admin/workstation/t_print_config.tt2 | 50 +++++++++++----------- .../js/ui/default/staff/admin/workstation/app.js | 4 ++ 2 files changed, 30 insertions(+), 24 deletions(-) diff --git a/Open-ILS/src/templates/staff/admin/workstation/t_print_config.tt2 b/Open-ILS/src/templates/staff/admin/workstation/t_print_config.tt2 index f986bf344e..8f4a34dac5 100644 --- a/Open-ILS/src/templates/staff/admin/workstation/t_print_config.tt2 +++ b/Open-ILS/src/templates/staff/admin/workstation/t_print_config.tt2 @@ -16,6 +16,9 @@

[% l('Printer Settings for Remote Printing') %]

+
+ [% l("Hatch is not connected") %] +
@@ -71,10 +74,22 @@ value="{{printConfig[context].printer}}"> +
+ + + + +
+
-

[% l('Printer Options') %]

@@ -257,18 +272,21 @@
- [% l('Right') %] + [% l('Top') %] + ng-model="printConfig[context].topMargin"/>
+
+
+
- [% l('Top') %] + [% l('Right') %] + ng-model="printConfig[context].rightMargin"/>
@@ -296,6 +314,9 @@ ng-checked="!printConfig[context].allPages" ng-click="printConfig[context].allPages=false"/>
+
+
+
[% l('Start') %] @@ -315,26 +336,7 @@
- -
-
-
- -
-
- -
-
- -
-
diff --git a/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js b/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js index f276c1b452..9855a3c6bb 100644 --- a/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js +++ b/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js @@ -228,6 +228,10 @@ function($scope , egCore) { } $scope.setContext('default'); + $scope.hatchNotConnected = function() { + return !egCore.hatch.hatchAvailable; + } + $scope.getPrinterByAttr = function(attr, value) { var printer; angular.forEach($scope.printers, function(p) { -- 2.11.0