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 <ng-container *
ngTemplateOutlet=
"bodyTemplate; context: bodyContext"></ng-container>
14 <div class=
"question">
15 <span *
ngIf=
"itemNames; else noNames">
16 <p *
ngIf=
"itemNames.length === 1; else manyNames"
17 i18n
>Are you sure that you want to {{ actionDescription | lowercase }}
<strong>{{ itemNames[
0] }}
</strong>?
</p>
18 <ng-template #manyNames
>
19 <p i18n
>Are you sure that you want to {{ actionDescription | lowercase }} the selected items?
</p>
21 <li *
ngFor=
"let itemName of itemNames"><strong>{{ itemName }}
</strong></li>
25 <ng-template #noNames
>
26 <p i18n
>Are you sure that you want to {{ actionDescription | lowercase }} the selected {{ itemDescription }}?
</p>
28 <div class=
"form-group">
29 <div class=
"custom-control custom-checkbox">
30 <input type=
"checkbox"
31 class=
"custom-control-input"
34 formControlName=
"confirmation"
36 <label class=
"custom-control-label"
38 i18n
>Yes, I am sure.
</label>
43 <div class=
"modal-footer">
44 <cd-submit-button #submitButton
46 (submitAction)=
"callSubmitAction()">
47 <ng-container *
ngTemplateOutlet=
"deletionHeading"></ng-container>
49 <cd-back-button [back]=
"modalRef.hide"
58 <ng-template #deletionHeading
>
59 {{ actionDescription | titlecase }} {{ itemDescription }}