From: Bill Erickson Date: Fri, 13 Dec 2013 18:09:01 +0000 (-0500) Subject: web staff: checkout form; make style consistent X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ddca41703391cbf199382ce18dc8c58735b80a2a;p=working%2FEvergreen.git web staff: checkout form; make style consistent Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/templates/staff/circ/checkin/index.tt2 b/Open-ILS/src/templates/staff/circ/checkin/index.tt2 index 066e543af2..72d7b2f542 100644 --- a/Open-ILS/src/templates/staff/circ/checkin/index.tt2 +++ b/Open-ILS/src/templates/staff/circ/checkin/index.tt2 @@ -23,18 +23,26 @@ COPY_ALERT_MSG_DIALOG_TITLE :
-
-
-
- - - +
+ +
+ + + + + +
-
-
+
[% INCLUDE 'staff/parts/column_picker.tt2' listname='checkins' %]
diff --git a/Open-ILS/src/templates/staff/circ/patron/t_checkout.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_checkout.tt2 index 311ecc87d7..d5d517417c 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_checkout.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_checkout.tt2 @@ -1,25 +1,39 @@
-
-
-
- - - + +
+ +
+ + +
+ + - - - -
+ + + +
+
-
+ +
[% INCLUDE 'staff/parts/column_picker.tt2' listname='checkouts' %]
diff --git a/Open-ILS/src/templates/staff/css/style.css.tt2 b/Open-ILS/src/templates/staff/css/style.css.tt2 index 5e4c95c0e8..be00f10daa 100644 --- a/Open-ILS/src/templates/staff/css/style.css.tt2 +++ b/Open-ILS/src/templates/staff/css/style.css.tt2 @@ -95,7 +95,7 @@ but the ones I'm finding aren't quite cutting it..*/ .patron-summary-divider { border-top: 1px solid #CCC} .pad-horiz {padding : 0px 10px 0px 10px; } .pad-vert {padding : 20px 0px 10px 0px;} -#patron-checkout-barcode { width: 18em; } +#patron-checkout-barcode { width: 16em; } #patron-search-form div.form-group { margin-bottom: 5px; diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/app.js b/Open-ILS/web/js/ui/default/staff/circ/patron/app.js index cc4233c17f..0cf69e2ad5 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/app.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/app.js @@ -459,6 +459,18 @@ function($scope, $q, $modal, $routeParams, egNet, egAuth, egUser, patronS $scope.checkouts = patronSvc.checkouts; $scope.checkoutArgs = {type : 'barcode'}; + $scope.selectedNcType = function() { + var type; + if ($scope.nonCatTypes) { + type = $scope.nonCatTypes.filter( + function(t) { + return t.id() == $scope.checkoutArgs.type; + } + )[0]; + } + return type ? type.name() : null; + } + if (egEnv.cnct) { $scope.nonCatTypes = egEnv.cnct.list; } else { @@ -479,6 +491,8 @@ function($scope, $q, $modal, $routeParams, egNet, egAuth, egUser, patronS var type = args.type; var coArgs = angular.copy(args); + if (!args.copy_barcode) return; + args.copy_barcode = ''; // reset for UI delete coArgs.type; // not a valid API arg