Allows admins to manage grading report templates #14

Merged
niat8586 merged 41 commits from 3482-new-grading-criteria into develop 2024-10-30 10:05:23 +01:00
Showing only changes of commit 4c7ef23e5d - Show all commits

View File

@ -50,7 +50,7 @@ public class AdminGradingTemplatesOverviewPage extends AbstractAdminProjectPage
protected void populateItem(ListItem<GradingReportTemplate> item) { protected void populateItem(ListItem<GradingReportTemplate> item) {
item.add(new Label("valid_from", item.getModel().map(GradingReportTemplate::getValidFrom))); item.add(new Label("valid_from", item.getModel().map(GradingReportTemplate::getValidFrom)));
item.add(new NonEmptyLabel("note", Model.of(""))); item.add(new NonEmptyLabel("note", Model.of("")));
item.add(new BookmarkablePageLink<>("edit_template", AdminGradingTemplateEditPage.class, AdminGradingTemplateEditPage.getPageParameters(currentTemplate.getObject()))); item.add(new BookmarkablePageLink<>("edit_template", AdminGradingTemplateEditPage.class, AdminGradingTemplateEditPage.getPageParameters(item.getModelObject())));
} }
}); });
} }