Show project start date in group project selection

This commit is contained in:
Andreas Svanberg 2025-03-04 11:14:02 +01:00
parent 5ae62e771f
commit 5493c35827
2 changed files with 2 additions and 0 deletions
view/src/main/java/se/su/dsv/scipro/group

@ -32,6 +32,7 @@
<div>
<h4 wicket:id="title"></h4>
<h5 class="" wicket:id="type"></h5>
Started at <span wicket:id="start_date"></span>
<div wicket:id="authors">
<span wicket:id="author"></span>
</div>

@ -63,6 +63,7 @@ public class EditGroupPanel extends Panel {
item.add(checkbox);
item.add(new Label("title", item.getModel().map(Project::getTitle)));
item.add(new Label("type", item.getModel().map(Project::getProjectTypeName)));
item.add(new Label("start_date", item.getModel().map(Project::getStartDate)));
IModel<SortedSet<User>> authors = item.getModel().map(Project::getProjectParticipants);
item.add(
new ListView<>("authors", new ListAdapterModel<>(authors)) {