From: Stephan Müller Date: Tue, 19 Nov 2019 08:28:26 +0000 (+0100) Subject: mgr/dashboard: Make form modal more flexible X-Git-Tag: v15.1.0~488^2~3 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=0341c785f9487c1508f61d30631bf10bd74e0642;p=ceph-ci.git mgr/dashboard: Make form modal more flexible Now any input type is supported and the special binary type which will use the cd-binary input and automatically format the binary size into bytes when submitting. Now any field can have custom validators and error messages. The form will fallback on predefined error messages if not configured. It will use the error messages provided by the binary min and max validators. It still provides the error message for a required field. Fixes: https://tracker.ceph.com/issues/38287 Signed-off-by: Stephan Müller --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/form-modal/form-modal.component.html b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/form-modal/form-modal.component.html index 35fedeb5f6d..a7c76941afd 100755 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/form-modal/form-modal.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/form-modal/form-modal.component.html @@ -5,54 +5,49 @@