From 25552117b433dbe39bf245aeda99761def5749eb Mon Sep 17 00:00:00 2001 From: Afreen Date: Wed, 27 Mar 2024 15:05:58 +0530 Subject: [PATCH] mgr/dashboard:Use advanced fieldset for rbd image Fixes https://tracker.ceph.com/issues/65025 - using cd-advanced-fieldset component for advanced section - this will align advanced sections of forms in dashboard - changed heading of sections of rbd-configuration to h5 to better represent it as a sub section. - added unit tests for rbd image config Signed-off-by: Afreen --- .../rbd-configuration-form.component.html | 4 +- .../block/rbd-form/rbd-form.component.html | 134 ++++++++---------- .../block/rbd-form/rbd-form.component.spec.ts | 20 ++- 3 files changed, 77 insertions(+), 81 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-configuration-form/rbd-configuration-form.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-configuration-form/rbd-configuration-form.component.html index 62707db349961..de43588713d27 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-configuration-form/rbd-configuration-form.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-configuration-form/rbd-configuration-form.component.html @@ -4,13 +4,13 @@
-

+

{{ section.heading }} -
+
-
- -
- -
+ +

Striping

- Advanced - -
-

Striping

- - -
- -
- -
+ +
+ +
+
+
- -
- -
- - This field is required because stripe count is defined! - Stripe unit is greater than object size. -
+ +
+ +
+ + This field is required because stripe count is defined! + Stripe unit is greater than object size.
+
- -
- -
- - This field is required because stripe unit is defined! - Stripe count must be greater than 0. -
+ +
+ +
+ + This field is required because stripe unit is defined! + Stripe count must be greater than 0.
-
+