mgr/dashboard: minor fixes to crud form UI

Fixes: https://tracker.ceph.com/issues/58864
Signed-off-by: Nizamudeen A <nia@redhat.com>
This commit is contained in:
Nizamudeen A 2023-02-28 11:48:16 +05:30
parent 01ad87ef30
commit 930abb78f2
3 changed files with 10 additions and 2 deletions

View File

@ -275,7 +275,7 @@ class Form:
'displayFlex': True,
'htmlClass': 'd-flex justify-content-end mb-0',
'items': [
{"type": "cancel", "style": self.cancel_style, 'htmlClass': 'mr-2'},
{"type": "cancel", "style": self.cancel_style, 'htmlClass': 'me-2'},
{"type": "submit", "style": self.submit_style, "title": self.action},
]
}

View File

@ -61,7 +61,7 @@ class CephUserEndpoints:
create_cap_container = ArrayHorizontalContainer('Capabilities', 'capabilities',
label_html_class='hidden cd-header mt-1', fields=[
FormField('Entity', 'entity',
field_type=str, html_class='mr-3'),
field_type=str, html_class='me-3'),
FormField('Entity Capabilities',
'cap', field_type=str)
])

View File

@ -230,4 +230,12 @@ json-schema-form {
.ng-touched.ng-valid {
@extend .is-valid;
}
.close {
@extend .btn-close;
span {
display: none;
}
}
}