1 <ng-template #dialogContent>
2 <form class="form-validated">
3 <div class="modal-header bg-info">
4 <h3 class="modal-title" i18n>Add Line Items to Purchase order</h3>
5 <button type="button" class="close"
6 i18n-aria-label aria-label="Close" (click)="close()">
7 <span aria-hidden="true">×</span>
10 <div class="modal-body">
11 <h4 i18n *ngIf="liIds && liIds.length">Line Item(s) selected:
12 <span *ngFor="let id of liIds; last as isLast">
13 {{id}}<span *ngIf="!isLast">,</span>
16 <h4 i18n>Please select a PO and click "Add to Purchase Order" to add the line items,
17 or "Exit Dialog" to exit without adding the line items to a PO.</h4>
18 <eg-combobox domId="acq-add-to-po-dialog" name="acq-add-to-po-dialog"
19 [asyncSupportsEmptyTermClick]="true"
20 idlClass="acqpo" [idlQueryAnd]="{state: ['new', 'pending']}"
21 idlIncludeLibraryInLabel="ordering_agency"
22 [(ngModel)]="po"></eg-combobox>
24 <div class="modal-footer">
25 <button type="button" class="btn btn-success" [disabled]="!po"
26 (click)="close(po.id)" i18n>Add to Purchase Order</button>
27 <button type="button" class="btn btn-warning"
28 (click)="close()" i18n>Exit Dialog</button>