3 class="modal-title">Edit pool mirror mode</ng-container>
5 <ng-container class="modal-content">
6 <form name="editModeForm"
9 [formGroup]="editModeForm"
11 <div class="modal-body">
13 <ng-container i18n>To edit the mirror mode for pool
14 <kbd>{{ poolName }}</kbd>, select a new mode from the list and click
15 <kbd>Update</kbd>.</ng-container>
18 <div class="form-group"
19 [ngClass]="{':invalid': editModeForm.showError('mirrorMode', formDir)}">
20 <label class="col-form-label"
22 <span i18n>Mode</span>
24 <select id="mirrorMode"
27 formControlName="mirrorMode">
28 <option *ngFor="let mirrorMode of mirrorModes"
29 [value]="mirrorMode.id">{{ mirrorMode.name }}</option>
31 <span class="form-text text-muted"
32 *ngIf="editModeForm.showError('mirrorMode', formDir, 'cannotDisable')"
33 i18n>Peer clusters must be removed prior to disabling mirror.</span>
37 <div class="modal-footer">
38 <div class="button-group text-right">
39 <cd-submit-button i18n
41 (submitAction)="update()">Update</cd-submit-button>
42 <cd-back-button [back]="modalRef.hide"