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