]> git.proxmox.com Git - ceph.git/blame - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/pool-edit-mode-modal/pool-edit-mode-modal.component.html
import 15.2.0 Octopus source
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / block / mirroring / pool-edit-mode-modal / pool-edit-mode-modal.component.html
CommitLineData
92f5a8d4 1<cd-modal [modalRef]="modalRef">
11fdf7f2
TL
2 <ng-container i18n
3 class="modal-title">Edit pool mirror mode</ng-container>
4
5 <ng-container class="modal-content">
6 <form name="editModeForm"
7 class="form"
8 #formDir="ngForm"
9 [formGroup]="editModeForm"
10 novalidate>
11 <div class="modal-body">
12 <p>
13 <ng-container i18n>To edit the mirror mode for pool&nbsp;
14 <kbd>{{ poolName }}</kbd>, select a new mode from the list and click&nbsp;
15 <kbd>Update</kbd>.</ng-container>
16 </p>
17
9f95a23c
TL
18 <div class="form-group">
19 <label class="col-form-label"
11fdf7f2
TL
20 for="mirrorMode">
21 <span i18n>Mode</span>
22 </label>
23 <select id="mirrorMode"
24 name="mirrorMode"
9f95a23c 25 class="form-control custom-select"
11fdf7f2
TL
26 formControlName="mirrorMode">
27 <option *ngFor="let mirrorMode of mirrorModes"
28 [value]="mirrorMode.id">{{ mirrorMode.name }}</option>
29 </select>
9f95a23c 30 <span class="invalid-feedback"
11fdf7f2
TL
31 *ngIf="editModeForm.showError('mirrorMode', formDir, 'cannotDisable')"
32 i18n>Peer clusters must be removed prior to disabling mirror.</span>
33 </div>
34 </div>
35
36 <div class="modal-footer">
37 <div class="button-group text-right">
38 <cd-submit-button i18n
39 [form]="editModeForm"
40 (submitAction)="update()">Update</cd-submit-button>
41 <cd-back-button [back]="modalRef.hide"
42 name="Cancel"
43 i18n-name>
44 </cd-back-button>
45 </div>
46 </div>
47 </form>
48 </ng-container>
49</cd-modal>