Populate initial data when editing grading templates
This commit is contained in:
parent
a02291897e
commit
55b6552d6a
view/src/main/java/se/su/dsv/scipro/admin/pages/grading
@ -17,6 +17,7 @@ class EditingGradingTemplate implements Serializable {
|
|||||||
|
|
||||||
EditingGradingTemplate(GradingReportTemplate template) {
|
EditingGradingTemplate(GradingReportTemplate template) {
|
||||||
this.note = "";
|
this.note = "";
|
||||||
|
this.validFrom = template.getValidFrom();
|
||||||
this.gradeLimits = new GradeLimits();
|
this.gradeLimits = new GradeLimits();
|
||||||
this.criteria = new ArrayList<>();
|
this.criteria = new ArrayList<>();
|
||||||
for (var criteria : template.getCriteria()) {
|
for (var criteria : template.getCriteria()) {
|
||||||
|
@ -10,7 +10,6 @@ class GradeLimits implements Serializable {
|
|||||||
|
|
||||||
GradeLimits() {
|
GradeLimits() {
|
||||||
this.gradeLimits = new ArrayList<>();
|
this.gradeLimits = new ArrayList<>();
|
||||||
this.gradeLimits.add(new GradeLimit());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void addNewLimit() {
|
void addNewLimit() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user