]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/blob
9793d2b369d7274311216e9c43c79e442715957d
[ceph-ci.git] /
1 <cd-modal [modalRef]="activeModal">
2   <ng-container i18n="form title"
3                 class="modal-title">Delete Zone</ng-container>
4
5   <ng-container class="modal-content">
6     <form name="zoneForm"
7           [formGroup]="zoneForm"
8           novalidate>
9       <div class="modal-body ms-4">
10         <label i18n>
11           This will delete your <strong>{{zone?.name}}</strong> Zone.
12         </label>
13         <ng-container *ngIf="includedPools.size">
14           <label class="mt-3"
15                  i18n>
16               Do you want to delete the associated pools with the <strong>{{zone?.name}}</strong> Zone?</label>
17           <label class="mb-4"
18                  i18n>
19               This will delete the following pools and any data stored in these pools:</label>
20             <strong *ngFor="let pool of includedPools"
21                     class="block">{{ pool }}</strong>
22           <div class="form-group">
23             <div class="custom-control custom-checkbox mt-2">
24               <input type="checkbox"
25                      class="custom-control-input"
26                      name="deletePools"
27                      id="deletePools"
28                      formControlName="deletePools"
29                      (change)="showDangerText()">
30               <label class="custom-control-label"
31                      for="deletePools"
32                      i18n>Yes, I want to delete the pools.</label>
33             </div>
34             <div *ngIf="displayText"
35                  class="me-4">
36               <cd-alert-panel type="danger"
37                               i18n>
38                               This will delete all the data in the pools!
39               </cd-alert-panel>
40             </div>
41           </div>
42         </ng-container>
43       </div>
44
45       <div class="modal-footer">
46         <cd-form-button-panel (submitActionEvent)="submit()"
47                               [form]="zoneForm"
48                               [submitText]="actionLabels.DELETE">
49         </cd-form-button-panel>
50       </div>
51     </form>
52   </ng-container>
53
54 </cd-modal>