From 920b10a2834ee41b2d2a61eba4eee8f6a3bbcba4 Mon Sep 17 00:00:00 2001 From: Kathy Lussier Date: Tue, 13 Nov 2018 12:27:02 -0500 Subject: [PATCH] LP#1787479: Some CSS and other formatting changes Moved most of the CSS to cat.css.tt2; removed most borders since they aren't needed as much without the full settings descriptions on the page; added some more help text and removed Windows carriage returns. Signed-off-by: Kathy Lussier Signed-off-by: Chris Sharp --- .../src/templates/staff/cat/printlabels/t_view.tt2 | 107 +++++++-------------- Open-ILS/src/templates/staff/css/cat.css.tt2 | 64 ++++++++++++ .../web/js/ui/default/staff/cat/printlabels/app.js | 6 +- 3 files changed, 100 insertions(+), 77 deletions(-) diff --git a/Open-ILS/src/templates/staff/cat/printlabels/t_view.tt2 b/Open-ILS/src/templates/staff/cat/printlabels/t_view.tt2 index b059f8e9ac..6d2e5ea30c 100644 --- a/Open-ILS/src/templates/staff/cat/printlabels/t_view.tt2 +++ b/Open-ILS/src/templates/staff/cat/printlabels/t_view.tt2 @@ -9,59 +9,6 @@ page-break-before: always; } - div.print-label-toolbox input[type=number], div.print-label-toolbox input[type=text] { - border: 1px solid #999; - border-radius: 3px; - margin-right: 12px; - width: 56px; - } - - div.print-label-toolbox div.eg-print-label-section { - border-bottom: 1px solid #DED; - display: block; - margin: 0 0 10px 0; - padding: 0 0 10px 0; - } - - div.print-label-toolbox input.ng-invalid { - background-color: #FFFF00; - color: #FF0000; - } - - div.print-label-toolbox label { - padding-right: 4px; - } - - div.print-label-toolbox ul { - display: block; - list-style-type: none; - margin: 0; - padding: 0; - } - - div.print-label-toolbox ul li { - display: inline-block; - padding: 0 0 0 6px; - } - - div.print-label-toolbox ul li:first-child { - display: inline-block; - padding: 0 0 0 0; - } - - table.custom-label-table td { - vertical-align: top; - } - - .print-template-text { - height: 36em; - width: 100%; - } - - .cn-template-text { - height: 12em; - width: 100%; - }
@@ -190,6 +137,7 @@
diff --git a/Open-ILS/src/templates/staff/css/cat.css.tt2 b/Open-ILS/src/templates/staff/css/cat.css.tt2 index 9af6bd73b8..ccb2847d78 100644 --- a/Open-ILS/src/templates/staff/css/cat.css.tt2 +++ b/Open-ILS/src/templates/staff/css/cat.css.tt2 @@ -198,3 +198,67 @@ grid[name="-none-"] * label { color: black; } white-space: nowrap; } +/* Print Item Templates Styles */ + +div.print-label-toolbox input[type=number], div.print-label-toolbox input[type=text] { + border: 1px solid #999; + border-radius: 3px; + margin-right: 12px; + width: 56px; + } + +div.print-label-toolbox div.eg-print-label-section { + display: block; + margin: 0 0 10px 0; + } + +div.eg-print-label-group { + border-bottom: 1px solid #DED; + margin: 0 0 10px 0; + padding: 0 0 10px 0; + } + +.eg-print-label-section p { + margin: 0 0 5px 0; + } + +div.print-label-toolbox input.ng-invalid { + background-color: #FFFF00; + color: #FF0000; + } + +div.print-label-toolbox label { + padding-right: 4px; + } + +div.print-label-toolbox ul { + display: block; + list-style-type: none; + margin: 0; + padding: 0; + } + +div.print-label-toolbox ul li { + display: inline-block; + padding: 0 0 0 6px; + } + +div.print-label-toolbox ul li:first-child { + display: inline-block; + padding: 0 0 0 0; + } + +table.custom-label-table td { + vertical-align: top; + } + +.print-template-text { + height: 36em; + width: 100%; + } + +.cn-template-text { + height: 12em; + width: 100%; + } + diff --git a/Open-ILS/web/js/ui/default/staff/cat/printlabels/app.js b/Open-ILS/web/js/ui/default/staff/cat/printlabels/app.js index cf8e15919c..f798f4c4a4 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/printlabels/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/printlabels/app.js @@ -290,9 +290,9 @@ function ($scope, $q, $window, $routeParams, $location, $timeout, egCore, egNet, $scope.rebuild_cn_set(); if ($scope.preview_scope.toolbox_settings && $scope.template_name && $scope.print.template_content) { var re = /eg\_plt/i; - if (re.test($scope.print.template_content)) { - $scope.applyTemplate($scope.template_name); - $scope.redraw_label_table(); + if (re.test($scope.print.template_content)) { + $scope.applyTemplate($scope.template_name); + $scope.redraw_label_table(); } } }); -- 2.11.0