]> git.proxmox.com Git - ceph.git/blobdiff - 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
index 7d9e28eb428b6a9be1be973dec3a72b8f0c620c9..7760dd09680caddf7ed04f99d4a304e929376cb5 100644 (file)
@@ -1,18 +1,23 @@
 <cd-modal [modalRef]="bsModalRef">
   <ng-container class="modal-title"
-                i18n>Reweight OSD</ng-container>
+                i18n>Reweight OSD: {{ osdId }}</ng-container>
 
   <ng-container class="modal-content">
-    <form class="form-horizontal"
-          [formGroup]="reweightForm">
-      <div class="modal-body" [ngClass]="{'has-error': weight.errors}">
+    <form [formGroup]="reweightForm">
+      <div class="modal-body">
         <div class="row">
-          <label for="weight" class="col-sm-2 control-label">Weight</label>
+          <label for="weight"
+                 class="col-sm-2 col-form-label">Weight</label>
           <div class="col-sm-10">
-            <input id="weight" class="form-control" type="number"
-                   step="0.1" formControlName="weight" min="0" max="1"
+            <input id="weight"
+                   class="form-control"
+                   type="number"
+                   step="0.1"
+                   formControlName="weight"
+                   min="0"
+                   max="1"
                    [value]="currentWeight">
-            <span class="help-block"
+            <span class="invalid-feedback"
                   *ngIf="weight.errors">
               <span *ngIf="weight.errors?.required"
                     i18n>This field is required.</span>