]> git.proxmox.com Git - ceph.git/blame - ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/components/critical-confirmation-modal/critical-confirmation-modal.component.html
import 15.2.5
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / shared / components / critical-confirmation-modal / critical-confirmation-modal.component.html
CommitLineData
11fdf7f2
TL
1<cd-modal #modal
2 [modalRef]="modalRef">
3 <ng-container class="modal-title">
4 <ng-container *ngTemplateOutlet="deletionHeading"></ng-container>
5 </ng-container>
6
7 <ng-container class="modal-content">
8 <form name="deletionForm"
9 #formDir="ngForm"
10 [formGroup]="deletionForm"
11 novalidate>
12 <div class="modal-body">
13 <ng-container *ngTemplateOutlet="bodyTemplate; context: bodyContext"></ng-container>
14 <div class="question">
eafe8130
TL
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>
20 <ul>
21 <li *ngFor="let itemName of itemNames"><strong>{{ itemName }}</strong></li>
22 </ul>
23 </ng-template >
24 </span>
25 <ng-template #noNames>
26 <p i18n>Are you sure that you want to {{ actionDescription | lowercase }} the selected {{ itemDescription }}?</p>
27 </ng-template>
f6b5b4d7 28 <ng-container *ngTemplateOutlet="childFormGroupTemplate; context:{form:deletionForm}"></ng-container>
9f95a23c
TL
29 <div class="form-group">
30 <div class="custom-control custom-checkbox">
11fdf7f2 31 <input type="checkbox"
9f95a23c 32 class="custom-control-input"
11fdf7f2
TL
33 name="confirmation"
34 id="confirmation"
35 formControlName="confirmation"
36 autofocus>
9f95a23c
TL
37 <label class="custom-control-label"
38 for="confirmation"
39 i18n>Yes, I am sure.</label>
11fdf7f2
TL
40 </div>
41 </div>
42 </div>
43 </div>
44 <div class="modal-footer">
45 <cd-submit-button #submitButton
46 [form]="deletionForm"
47 (submitAction)="callSubmitAction()">
48 <ng-container *ngTemplateOutlet="deletionHeading"></ng-container>
49 </cd-submit-button>
50 <cd-back-button [back]="modalRef.hide"
51 name="Cancel"
52 i18n-name>
53 </cd-back-button>
54 </div>
55 </form>
56 </ng-container>
57</cd-modal>
58
59<ng-template #deletionHeading>
60 {{ actionDescription | titlecase }} {{ itemDescription }}
61</ng-template>