9567e2e7b0cb870f4c9d75e2328f2a2b1f90af32
[evergreen-equinox.git] / Open-ILS / src / eg2 / src / app / staff / acq / lineitem / add-to-po-dialog.component.html
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">&times;</span>
8       </button>
9     </div>
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>
14         </span>
15       </h4>
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>
23     </div>
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>
29     </div>
30   </form>
31 </ng-template>
32