Commit 7a396f97 authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

css improvment in results of step TestPKDescriptionFormSet

parent 86ab54fa
Pipeline #40884 canceled with stages
in 2 seconds
......@@ -1040,7 +1040,7 @@ class TestActivityDescriptionForm(forms.ModelForm):
super().__init__(*args, **kwargs)
self.fields["test_type"].widget.attrs["onchange"] = "test_type_changed(this);"
self.fields["test_type"].widget.attrs.update({"class": "col-2"})
self.fields["test_name"].widget.attrs.update({"class": "col-9"})
self.fields["test_name"].widget.attrs.update({"class": "col-10"})
self.fields["test_modulation_type"].widget.attrs.update({"class": "col-2"})
self.fields["nb_active_compounds"].widget.attrs.update({"class": "col-3"})
self.fields["cell_line_name"].widget.attrs.update({"class": "col-7"})
......@@ -1396,7 +1396,7 @@ class CompoundPKResultForm(ModelForm):
for f in self.fields.values():
f.widget.attrs.update({"class": "col-3"})
if isinstance(f, forms.BooleanField) and not isinstance(f.widget, forms.Select):
f.widget.attrs.update({"class": "col-3 ml-3"})
f.widget.attrs.update({"class": "col-3 mb-4"})
def has_changed(self):
"""
......
......@@ -268,6 +268,10 @@ Description: IPPI-DB Theme
padding-bottom: 1%;
}
.form-group.form-check{
padding-left: 2.25rem;
}
.form-group.form-check, .compound .input_field input {
text-align: left;
}
......
......@@ -88,7 +88,7 @@ def bootstrap_core(object):
css_classes.add("formset-item-delete")
# HACK: if the css_class is a bootstrap column layout, transfer it to container element
for css_class in css_classes:
if css_class.startswith("col") or css_class.startswith("order-") or css_class.startswith("ml-"):
if css_class.startswith("col") or css_class.startswith("order-") or css_class.startswith("mb-"):
wrapping_classes += f" {css_class}"
css_classes = set(
[
......@@ -97,7 +97,7 @@ def bootstrap_core(object):
if not (
css_class.startswith("col")
or css_class.startswith("order-")
or css_class.startswith("ml-")
or css_class.startswith("mb-")
)
]
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment