]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/eg2/src/app/staff/acq/lineitem/add-to-po-dialog.component.html
LP2023803 Use gray buttons for modal Cancel actions
[Evergreen.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">
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>
7     </div>
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>
12         </span>
13       </h4>
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>
21     </div>
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>
27     </div>
28   </form>
29 </ng-template>
30