LP#1942220: add missed files for previous commit
authorGalen Charlton <gmc@equinoxOLI.org>
Thu, 9 Dec 2021 17:00:27 +0000 (12:00 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Thu, 9 Dec 2021 17:00:27 +0000 (12:00 -0500)
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/acq/lineitem/export-attributes-dialog.component.html [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/acq/lineitem/export-attributes-dialog.component.ts [new file with mode: 0644]

diff --git a/Open-ILS/src/eg2/src/app/staff/acq/lineitem/export-attributes-dialog.component.html b/Open-ILS/src/eg2/src/app/staff/acq/lineitem/export-attributes-dialog.component.html
new file mode 100644 (file)
index 0000000..6ffb3dd
--- /dev/null
@@ -0,0 +1,38 @@
+<ng-template #dialogContent>
+  <form class="form-validated">
+    <div class="modal-header bg-info">
+      <h3 class="modal-title" i18n>Add Items to Selected Line Items</h3>
+      <button type="button" class="close"
+        i18n-aria-label aria-label="Close" (click)="close()">
+        <span aria-hidden="true">&times;</span>
+      </button>
+    </div>
+    <div class="modal-body">
+      <h4 i18n>Lineitem(s) selected:
+        <span *ngFor="let id of ids; last as isLast">
+          {{id}}<span *ngIf="!isLast">,</span>
+        </span>
+      </h4>
+      <h4 i18n>Download a text file of ISBN, ISSN, or UPC
+        values for selected line item(s).
+      </h4>
+      <div class="form-group form-inline">
+        <label for="export-attr-select" class="form-check-label mr-1">Filter by:</label>
+        <select name="export-attr-select" id="export-attr-select"
+          [(ngModel)]="selectedAttr"
+          class="form-control">
+          <option value="isbn" i18n>ISBN</option>
+          <option value="issn" i18n>ISSN</option>
+          <option value="upc"  i18n>UPC</option>
+        </select> 
+      </div>
+    </div>
+    <div class="modal-footer">
+      <button type="button" class="btn btn-success"
+        (click)="close(selectedAttr)" i18n>Download</button>
+      <button type="button" class="btn btn-warning"
+        (click)="close()" i18n>Cancel</button>
+    </div>
+  </form>
+</ng-template>
+
diff --git a/Open-ILS/src/eg2/src/app/staff/acq/lineitem/export-attributes-dialog.component.ts b/Open-ILS/src/eg2/src/app/staff/acq/lineitem/export-attributes-dialog.component.ts
new file mode 100644 (file)
index 0000000..d6e8a66
--- /dev/null
@@ -0,0 +1,18 @@
+import {Component, Input, ViewChild, TemplateRef, OnInit} from '@angular/core';
+import {NgbModal} from '@ng-bootstrap/ng-bootstrap';
+import {DialogComponent} from '@eg/share/dialog/dialog.component';
+import {IdlService, IdlObject} from '@eg/core/idl.service';
+import {ComboboxEntry} from '@eg/share/combobox/combobox.component';
+
+@Component({
+  selector: 'eg-acq-export-attributes-dialog',
+  templateUrl: './export-attributes-dialog.component.html'
+})
+
+export class ExportAttributesDialogComponent extends DialogComponent {
+    @Input() ids: number[];
+    selectedAttr = 'isbn';
+    constructor(private modal: NgbModal) { super(modal); }
+}
+
+