]> git.proxmox.com Git - ceph.git/blame - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-reweight-modal/osd-reweight-modal.component.html
import 15.2.0 Octopus source
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / cluster / osd / osd-reweight-modal / osd-reweight-modal.component.html
CommitLineData
11fdf7f2
TL
1<cd-modal [modalRef]="bsModalRef">
2 <ng-container class="modal-title"
9f95a23c 3 i18n>Reweight OSD: {{ osdId }}</ng-container>
11fdf7f2
TL
4
5 <ng-container class="modal-content">
9f95a23c
TL
6 <form [formGroup]="reweightForm">
7 <div class="modal-body">
11fdf7f2 8 <div class="row">
9f95a23c
TL
9 <label for="weight"
10 class="col-sm-2 col-form-label">Weight</label>
11fdf7f2 11 <div class="col-sm-10">
9f95a23c
TL
12 <input id="weight"
13 class="form-control"
14 type="number"
15 step="0.1"
16 formControlName="weight"
17 min="0"
18 max="1"
11fdf7f2 19 [value]="currentWeight">
9f95a23c 20 <span class="invalid-feedback"
11fdf7f2
TL
21 *ngIf="weight.errors">
22 <span *ngIf="weight.errors?.required"
23 i18n>This field is required.</span>
24 <span *ngIf="weight.errors?.max || weight.errors?.min"
25 i18n>The value needs to be between 0 and 1.</span>
26 </span>
27 </div>
28 </div>
29 </div>
30
31 <div class="modal-footer">
32 <cd-submit-button (submitAction)="reweight()"
33 [form]="reweightForm"
34 [disabled]="reweightForm.invalid"
35 i18n>Reweight</cd-submit-button>
36 <cd-back-button [back]="bsModalRef.hide"
37 name="Cancel"
38 i18n-name>
39 </cd-back-button>
40 </div>
41 </form>
42 </ng-container>
43</cd-modal>