Refactor AnatomyQuestionForm layout to arrange modality and related fields in a horizontal flex row
This commit is contained in:
+9
-5
@@ -140,11 +140,15 @@ class AnatomyQuestionForm(ModelForm):
|
||||
"question_type",
|
||||
"image",
|
||||
"description",
|
||||
"modality",
|
||||
"region",
|
||||
"structure",
|
||||
"examination",
|
||||
"body_part",
|
||||
# Place modality → body_part fields in a horizontal flex row
|
||||
Div(
|
||||
Div("modality", css_class="flex-fill me-2"),
|
||||
Div("region", css_class="flex-fill me-2"),
|
||||
Div("structure", css_class="flex-fill me-2"),
|
||||
Div("examination", css_class="flex-fill me-2"),
|
||||
Div("body_part", css_class="flex-fill"),
|
||||
css_class="d-flex flex-wrap align-items-start mb-2",
|
||||
),
|
||||
"answer_help",
|
||||
Accordion(
|
||||
AccordionGroup(
|
||||
|
||||
Reference in New Issue
Block a user