Skip to content
Snippets Groups Projects
Commit 08309915 authored by srosse's avatar srosse
Browse files

OO-5275: add comment to user in checklist Excel export

parent beebeaa4
No related branches found
No related tags found
No related merge requests found
......@@ -78,6 +78,7 @@ public class CheckListExcelExport {
private final CheckListCourseNode courseNode;
private final boolean hasScore;
private final boolean hasPassed;
private final boolean hasComment;
private final List<UserPropertyHandler> userPropertyHandlers;
private final UserManager userManager;
......@@ -91,6 +92,7 @@ public class CheckListExcelExport {
AssessmentConfig assessmentConfig = courseAssessmentService.getAssessmentConfig(courseNode);
this.hasScore = Mode.none != assessmentConfig.getScoreMode();
this.hasPassed = Mode.none != assessmentConfig.getPassedMode();
this.hasComment = assessmentConfig.hasComment();
userManager = CoreSpringFactory.getImpl(UserManager.class);
checkboxManager = CoreSpringFactory.getImpl(CheckboxManager.class);
......@@ -150,6 +152,9 @@ public class CheckListExcelExport {
if(hasPassed) {
header2Row.addCell(col++, translator.translate("column.header.node.passed"), headerStyle);
}
if(hasComment) {
header2Row.addCell(col++, translator.translate("column.header.usercomment"), headerStyle);
}
ModuleConfiguration config = courseNode.getModuleConfiguration();
CheckboxList list = (CheckboxList)config.get(CheckListCourseNode.CONFIG_KEY_CHECKBOX);
......@@ -214,6 +219,14 @@ public class CheckListExcelExport {
col++;
}
}
if(hasComment) {
if(entry != null) {
dataRow.addCell(col++, entry.getComment(), null);
} else {
col++;
}
}
ModuleConfiguration config = courseNode.getModuleConfiguration();
CheckboxList list = (CheckboxList)config.get(CheckListCourseNode.CONFIG_KEY_CHECKBOX);
......
......@@ -21,6 +21,7 @@ column.header.homepage=Homepage
column.header.node.passed=Kursbaustein bestanden
column.header.node.points=Kursbaustein Punkte
column.header.points=$\:box.points
column.header.usercomment=Kommentar f\u00FCr Benutzer
comment.nocomment=$org.olat.course.nodes.ms\:comment.nocomment
comment.title=$org.olat.course.nodes.ms\:comment.title
config.checkbox.description=W\u00e4hlen Sie "$\:add.checkbox" um eine neue Checkbox zu erzeugen oder "$org.olat.core\:edit" um eine bestehende Checkbox zu ver\u00e4ndern.
......
......@@ -21,6 +21,7 @@ column.header.node.passed=Passed course element
column.header.node.points=Score course element
column.header.points=$\:box.points
column.header.seqnum=Sequence number
column.header.usercomment=Comments for users
comment.nocomment=$org.olat.course.nodes.ms\:comment.nocomment
comment.title=$org.olat.course.nodes.ms\:comment.title
config.checkbox.description=Click "$\:add.checkbox" to create a new checkbox or select "$org.olat.core\:edit" to configure an existing checkbox.
......
......@@ -21,6 +21,7 @@ column.header.node.passed=\u00C9l\u00E9ment de cours r\u00E9ussi
column.header.node.points=Points \u00E9l\u00E9ment de cours
column.header.points=$\:box.points
column.header.seqnum=Num\u00E9ro
column.header.usercomment=Commentaires pour l'utilisateur
comment.nocomment=$org.olat.course.nodes.ms\:comment.nocomment
comment.title=$org.olat.course.nodes.ms\:comment.title
config.checkbox.description=Clicuez "$\:add.checkbox" pour cr\u00E9er une nouvelle case \u00E0 cocher ou s\u00E9lectionnez "$org.olat.core\:edit" pour configurer une case \u00E0 cocher existante.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment