2 [modalRef]="activeModal">
3 <ng-container class="modal-title">
4 <ng-container *ngTemplateOutlet="deletionHeading"></ng-container>
7 <ng-container class="modal-content">
8 <form name="deletionForm"
10 [formGroup]="deletionForm"
12 <div class="modal-body">
13 <cd-alert-panel *ngIf="infoMessage"
17 <p>{{ infoMessage }}</p>
19 <ng-container *ngTemplateOutlet="bodyTemplate; context: bodyContext"></ng-container>
20 <div class="question">
21 <span *ngIf="itemNames; else noNames">
22 <p *ngIf="itemNames.length === 1; else manyNames"
23 i18n>Are you sure that you want to {{ actionDescription | lowercase }} <strong>{{ itemNames[0] }}</strong>?</p>
24 <ng-template #manyNames>
25 <p i18n>Are you sure that you want to {{ actionDescription | lowercase }} the selected items?</p>
27 <li *ngFor="let itemName of itemNames"><strong>{{ itemName }}</strong></li>
31 <ng-template #noNames>
32 <p i18n>Are you sure that you want to {{ actionDescription | lowercase }} the selected {{ itemDescription }}?</p>
34 <ng-container *ngTemplateOutlet="childFormGroupTemplate; context:{form:deletionForm}"></ng-container>
35 <div class="form-group">
36 <div class="custom-control custom-checkbox">
37 <input type="checkbox"
38 class="custom-control-input"
41 formControlName="confirmation"
43 <label class="custom-control-label"
45 i18n>Yes, I am sure.</label>
50 <div class="modal-footer">
51 <cd-form-button-panel (submitActionEvent)="callSubmitAction()"
52 (backActionEvent)="backAction ? callBackAction() : hideModal()"
54 [submitText]="(actionDescription | titlecase) + ' ' + itemDescription"></cd-form-button-panel>
60 <ng-template #deletionHeading>
61 {{ actionDescription | titlecase }} {{ itemDescription }}