diff --git a/recopytex/dashboard/assets/style.css b/recopytex/dashboard/assets/style.css index 00b81a7..08d1947 100644 --- a/recopytex/dashboard/assets/style.css +++ b/recopytex/dashboard/assets/style.css @@ -19,6 +19,12 @@ main { margin: auto; } +section { + margin-top: 20px; + margin-bottom: 20px; + +} + /* Exam analysis */ #select { diff --git a/recopytex/dashboard/create_exam/app.py b/recopytex/dashboard/create_exam/app.py index 8bbdb8e..61d8aec 100644 --- a/recopytex/dashboard/create_exam/app.py +++ b/recopytex/dashboard/create_exam/app.py @@ -56,68 +56,76 @@ layout = html.Div( ), html.Main( children=[ - html.Form( - id="new-exam", + html.Section( children=[ - html.Label( + html.Form( + id="new-exam", children=[ - "Classe", - dcc.Dropdown( - id="tribe", - options=[ - {"label": t["name"], "value": t["name"]} - for t in config["tribes"] - ], - value=config["tribes"][0]["name"], + html.Label( + children=[ + "Classe", + dcc.Dropdown( + id="tribe", + options=[ + {"label": t["name"], "value": t["name"]} + for t in config["tribes"] + ], + value=config["tribes"][0]["name"], + ), + ] ), - ] - ), - html.Label( - children=[ - "Nom de l'évaluation", - dcc.Input( - id="exam_name", - type="text", - placeholder="Nom de l'évaluation", + html.Label( + children=[ + "Nom de l'évaluation", + dcc.Input( + id="exam_name", + type="text", + placeholder="Nom de l'évaluation", + ), + ] ), - ] - ), - html.Label( - children=[ - "Date", - dcc.DatePickerSingle( - id="date", - date=date.today(), - **get_current_year_limit(), + html.Label( + children=[ + "Date", + dcc.DatePickerSingle( + id="date", + date=date.today(), + **get_current_year_limit(), + ), + ] ), - ] - ), - html.Label( - children=[ - "Trimestre", - dcc.Dropdown( - id="term", - options=[ - {"label": i + 1, "value": i + 1} - for i in range(3) - ], - value=1, + html.Label( + children=[ + "Trimestre", + dcc.Dropdown( + id="term", + options=[ + {"label": i + 1, "value": i + 1} + for i in range(3) + ], + value=1, + ), + ] ), - ] + ], ), - ], + ] ), - html.Div( - id="exercises", - children=[], - ), - html.Button( - "Ajouter un exercice", - id="add-exercise", - className="add-exercise", - ), - html.Div( - id="summary", + html.Section( + children=[ + html.Div( + id="exercises", + children=[], + ), + html.Button( + "Ajouter un exercice", + id="add-exercise", + className="add-exercise", + ), + html.Div( + id="summary", + ) + ] ), ] ),