LP1823041 Angular dialogs return observables
[Evergreen.git] / Open-ILS / src / eg2 / src / app / share / dialog / prompt.component.html
1 <ng-template #dialogContent>
2   <div class="modal-header bg-info">
3     <h4 class="modal-title">{{dialogTitle}}</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     <p>{{dialogBody}}</p>
11     <div class="text-center">
12         <input class="form-control" [(ngModel)]="promptValue"/>
13     </div>
14   </div>
15   <div class="modal-footer">
16     <button type="button" class="btn btn-success" 
17       (click)="close(promptValue)" i18n>Confirm</button>
18     <button type="button" class="btn btn-warning" 
19       (click)="close()" i18n>Cancel</button>
20   </div>
21 </ng-template>