From b2c241534ddfdaf96fa3c5fa9c52d7abfb183c98 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 17 Jun 2020 11:48:41 -0400 Subject: [PATCH] VOLCOPY Item attr batch component Signed-off-by: Bill Erickson --- .../app/staff/share/holdings/batch-item-attr.component.html | 13 ++++++++----- .../app/staff/share/holdings/batch-item-attr.component.ts | 9 ++++++++- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/share/holdings/batch-item-attr.component.html b/Open-ILS/src/eg2/src/app/staff/share/holdings/batch-item-attr.component.html index 1d673b4f96..3927094296 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/holdings/batch-item-attr.component.html +++ b/Open-ILS/src/eg2/src/app/staff/share/holdings/batch-item-attr.component.html @@ -1,8 +1,8 @@ -
-
{{label}}
-
+
+
{{label}}
+
@@ -14,7 +14,10 @@ {{count.key | currency}} - {{count.key}} + + <Unset> + + {{count.key}}
{{count.value}} copies
diff --git a/Open-ILS/src/eg2/src/app/staff/share/holdings/batch-item-attr.component.ts b/Open-ILS/src/eg2/src/app/staff/share/holdings/batch-item-attr.component.ts index 46b8958306..fe10d345b9 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/holdings/batch-item-attr.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/holdings/batch-item-attr.component.ts @@ -9,7 +9,11 @@ import {StringComponent} from '@eg/share/string/string.component'; @Component({ selector: 'eg-batch-item-attr', - templateUrl: 'batch-item-attr.component.html' + templateUrl: 'batch-item-attr.component.html', + styles: [ + `.header { background-color: #d9edf7; }`, + `.has-changes { background-color: #dff0d8; }` + ] }) export class BatchItemAttrComponent { @@ -33,6 +37,9 @@ export class BatchItemAttrComponent { // Display only @Input() readOnly = false; + // If true, null/undefined/empty-string display as + @Input() emptyIsUnset: boolean; + @Output() changesSaved: EventEmitter = new EventEmitter(); @Output() changesCanceled: EventEmitter = new EventEmitter(); -- 2.11.0