1 <cd-modal [modalRef]="activeModal">
2 <ng-container i18n="form title"
3 class="modal-title">Delete Zonegroup</ng-container>
5 <ng-container class="modal-content">
6 <form name="zonegroupForm"
7 [formGroup]="zonegroupForm"
9 <div class="modal-body ms-4">
11 This will delete your <strong>{{zonegroup?.name}}</strong> Zonegroup.
13 <ng-container *ngIf="zonesList.length > 0">
16 Do you want to delete the associated zones and pools with the <strong>{{zonegroup?.name}}</strong> Zonegroup?</label>
17 <ng-container *ngIf="includedPools.size > 0">
19 This will delete the following:</label>
21 <strong class="mt-3 mb-2 h5 block">Zones:</strong>
23 <strong *ngFor="let zone of zonesList"
24 class="block">{{zone}}</strong>
26 <ng-container *ngIf="includedPools.size > 0">
27 <strong class="mt-3 mb-2 h5 block">Pools:</strong>
30 <strong *ngFor="let pool of includedPools"
31 class="block">{{ pool }}</strong>
35 <div class="form-group">
36 <div class="custom-control custom-checkbox mt-2">
37 <input type="checkbox"
38 class="custom-control-input"
41 formControlName="deletePools"
42 (change)="showDangerText()">
43 <ng-container *ngIf="includedPools.size > 0 else noPoolsConfirmation">
44 <label class="custom-control-label"
46 i18n>Yes, I want to delete the zones and their pools.</label>
49 <div *ngIf="displayText"
51 <cd-alert-panel type="danger"
53 This will delete all the data in the pools!
60 <div class="modal-footer">
61 <cd-form-button-panel (submitActionEvent)="submit()"
62 [form]="zonegroupForm"
63 [submitText]="actionLabels.DELETE ">
64 </cd-form-button-panel>
71 <ng-template #noPoolsConfirmation>
72 <label class="custom-control-label"
74 i18n>Yes, I want to delete the zones.</label>