LP1823041 Angular dialogs return observables
[Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / catalog / record / part-merge-dialog.component.html
1 <ng-template #dialogContent>
2   <div class="modal-header bg-info">
3     <h4 class="modal-title" i18n>Merge Monograph Parts</h4>
4     <button type="button" class="close" 
5       i18n-aria-label aria-label="Close" (click)="close()">
6       <span aria-hidden="true">&times;</span>
7     </button>
8   </div>
9   <div class="modal-body">
10     <h5 i18n>Select a Lead Part</h5>
11     <div class="row" *ngFor="let part of parts">
12       <div class="col-lg-10 offset-lg-1">
13         <div class="form-check">
14           <input class="form-check-input" type="radio" name="lead"
15             value="{{part.id()}}" [(ngModel)]="leadPart">
16           <label class="form-check-label">{{part.label()}}</label>
17         </div>
18       </div>
19     </div>
20   </div>
21   <div class="modal-footer">
22     <button type="button" class="btn btn-success" 
23       (click)="mergeParts()" i18n>Merge</button>
24     <button type="button" class="btn btn-warning" 
25       (click)="close()" i18n>Cancel</button>
26   </div>
27 </ng-template>