3494-UI-improvements-grading-templates #21
@ -80,7 +80,10 @@ class EditingGradingTemplate implements Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void addCriteria() {
|
public void addCriteria() {
|
||||||
this.criteria.add(new Criteria());
|
Criteria newCriteria = new Criteria();
|
||||||
|
newCriteria.points.add(newCriteria.new Point());
|
||||||
|
this.criteria.add(newCriteria);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getProjectType() {
|
public String getProjectType() {
|
||||||
@ -123,7 +126,7 @@ class EditingGradingTemplate implements Serializable {
|
|||||||
this.titleEn = criteria.getTitleEn();
|
this.titleEn = criteria.getTitleEn();
|
||||||
this.pointsRequiredToPass = criteria.getPointsRequiredToPass();
|
this.pointsRequiredToPass = criteria.getPointsRequiredToPass();
|
||||||
for (var point : criteria.getGradingCriterionPointTemplates()) {
|
for (var point : criteria.getGradingCriterionPointTemplates()) {
|
||||||
if (point.getPoint() == 1) continue;
|
if (point.getPoint() == 0) continue; // This is to hide zero point requirements that never have any text
|
||||||
Point editingPoint = new Point(point);
|
Point editingPoint = new Point(point);
|
||||||
this.points.add(editingPoint);
|
this.points.add(editingPoint);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user