Allows admins to manage grading report templates #14
@ -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())));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user