Show information to the supervisor that they've requested improvements

This commit is contained in:
Andreas Svanberg 2025-02-07 14:48:03 +01:00
parent 305142a862
commit 791ec65633
2 changed files with 24 additions and 0 deletions
view/src/main/java/se/su/dsv/scipro/finalseminar

@ -30,6 +30,17 @@
</div>
</div>
<wicket:enclosure>
<div class="alert alert-info">
<p>
You've requested improvements to the opposition report with the below comment.
If they do not make the requested improvements in time, they will get an automatic failing grade.
The system will notify you when they've submitted a new report.
</p>
<span wicket:id="improvements_requested"></span>
</div>
</wicket:enclosure>
<div class="mb-3">
<label>Points:</label>
<select class="form-select" wicket:id="points"></select>

@ -249,6 +249,19 @@ public class SeminarOppositionPanel extends Panel {
}
);
IModel<String> improvementComment = finalSeminarOpposition.map(
FinalSeminarOpposition::getSupervisorCommentForImprovements
);
add(
new Label("improvements_requested", improvementComment) {
@Override
protected void onConfigure() {
super.onConfigure();
setVisible(!getDefaultModelObjectAsString().isBlank());
}
}
);
FormComponent<OppositionCriteria.Point> pointsField = new DropDownChoice<>(
POINTS,
pointsModel,