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

OO-3594: message if task automatically collected, message to the coach

if the student has some unshared documents, possibility to collect the
document at all time for the coach
parent 4b95ad86
No related branches found
No related tags found
No related merge requests found
...@@ -364,8 +364,13 @@ public abstract class GTAAbstractController extends BasicController implements G ...@@ -364,8 +364,13 @@ public abstract class GTAAbstractController extends BasicController implements G
&& date.compareTo(new Date()) < 0) { && date.compareTo(new Date()) < 0) {
//push to the next step //push to the next step
int numOfDocs = getNumberOfSubmittedDocuments(); int numOfDocs = getNumberOfSubmittedDocuments();
assignedTask = gtaManager.submitTask(assignedTask, gtaNode, numOfDocs, Role.auto); if (numOfDocs > 0 || getDoer() != Role.coach) {
doUpdateAttempts(); assignedTask = gtaManager.submitTask(assignedTask, gtaNode, numOfDocs, Role.auto);
doUpdateAttempts();
if (numOfDocs > 0) {
showInfo("info.task.collected");
}
}
} }
} else if(dueDate.getMessageKey() != null) { } else if(dueDate.getMessageKey() != null) {
mainVC.contextPut("submitDueDateMsg", translate(dueDate.getMessageKey(), dueDate.getMessageArg())); mainVC.contextPut("submitDueDateMsg", translate(dueDate.getMessageKey(), dueDate.getMessageArg()));
......
...@@ -247,6 +247,15 @@ public class GTACoachController extends GTAAbstractController implements Assessm ...@@ -247,6 +247,15 @@ public class GTACoachController extends GTAAbstractController implements Assessm
} else { } else {
TextFactory.createTextComponentFromI18nKey("submittedDocs", "coach.submitted.nofiles", getTranslator(), null, true, mainVC); TextFactory.createTextComponentFromI18nKey("submittedDocs", "coach.submitted.nofiles", getTranslator(), null, true, mainVC);
} }
} else {
File documentsDir;
if(GTAType.group.name().equals(config.getStringValue(GTACourseNode.GTASK_TYPE))) {
documentsDir = gtaManager.getSubmitDirectory(courseEnv, gtaNode, assessedGroup);
} else {
documentsDir = gtaManager.getSubmitDirectory(courseEnv, gtaNode, assessedIdentity);
}
boolean hasDocuments = TaskHelper.hasDocuments(documentsDir);
mainVC.contextPut("hasUploadedDocs", hasDocuments);
} }
return assignedTask; return assignedTask;
} }
...@@ -263,8 +272,7 @@ public class GTACoachController extends GTAAbstractController implements Assessm ...@@ -263,8 +272,7 @@ public class GTACoachController extends GTAAbstractController implements Assessm
} }
private void collect(Task assignedTask) { private void collect(Task assignedTask) {
DueDate dueDate = getSubmissionDueDate(assignedTask); if(!coachCourseEnv.isCourseReadOnly()) {
if(!coachCourseEnv.isCourseReadOnly() && (dueDate == null || dueDate.getDueDate() == null)) {
collectSubmissionsLink = LinkFactory.createButton("coach.collect.task", mainVC, this); collectSubmissionsLink = LinkFactory.createButton("coach.collect.task", mainVC, this);
collectSubmissionsLink.setUserObject(assignedTask); collectSubmissionsLink.setUserObject(assignedTask);
} }
......
...@@ -54,7 +54,11 @@ ...@@ -54,7 +54,11 @@
#else #else
<b>$r.translate("coach.waiting.submitted.documents")</b> <b>$r.translate("coach.waiting.submitted.documents")</b>
<br /> <br />
$r.translate("coach.waiting.submitted.documents.description") #if($hasUploadedDocs)
$r.translate("coach.waiting.submitted.documents.ready.description")
#else
$r.translate("coach.waiting.submitted.documents.description")
#end
#end #end
#if($r.available("coach.collect.task") && $r.visible("coach.collect.task")) #if($r.available("coach.collect.task") && $r.visible("coach.collect.task"))
<h5>$r.translate("coach.collect.confirm.title")</h5> <h5>$r.translate("coach.collect.confirm.title")</h5>
......
...@@ -63,6 +63,7 @@ coach.waiting.assignment=Warten auf Zuweisung ...@@ -63,6 +63,7 @@ coach.waiting.assignment=Warten auf Zuweisung
coach.waiting.assignment.description=Die Aufgabe wurde noch nicht zugewiesen. Die Abgabe und Korrektur kann erst beginnen wenn eine Aufgabe zugewiesen wurde. coach.waiting.assignment.description=Die Aufgabe wurde noch nicht zugewiesen. Die Abgabe und Korrektur kann erst beginnen wenn eine Aufgabe zugewiesen wurde.
coach.waiting.submitted.documents=Warten auf Abgabe L\u00F6sung coach.waiting.submitted.documents=Warten auf Abgabe L\u00F6sung
coach.waiting.submitted.documents.description=Es wurden noch keine Dokumente abgegeben. Die R\u00FCckgabe und Korrektur kann erst beginnen wenn die gel\u00F6ste Aufgabe abgegeben wurde. coach.waiting.submitted.documents.description=Es wurden noch keine Dokumente abgegeben. Die R\u00FCckgabe und Korrektur kann erst beginnen wenn die gel\u00F6ste Aufgabe abgegeben wurde.
coach.waiting.submitted.documents.ready.description=Es wurden Dokumente hochgeladen, aber noch nicht abgegeben. Die R\u00FCckgabe und Korrektur kann erst beginnen wenn die gel\u00F6ste Aufgabe abgegeben wurde.
comment=Kommentar comment=Kommentar
condition.accessibility.title=Zugang condition.accessibility.title=Zugang
confirm.delete.solution.description=Wollen Sie wirklich die L\u00F6sung "{0}" l\u00F6schen? confirm.delete.solution.description=Wollen Sie wirklich die L\u00F6sung "{0}" l\u00F6schen?
...@@ -120,6 +121,7 @@ group.passed=Gruppe bestanden ...@@ -120,6 +121,7 @@ group.passed=Gruppe bestanden
group.score=Gruppe Punkte group.score=Gruppe Punkte
group.title=Leistungs\u00FCbersicht group.title=Leistungs\u00FCbersicht
highscore.forminfo=Die HighScore Funktionalit\u00E4t bezieht sich auf die einzelnen Mitglieder einer Gruppe. Ein Vergleich auf Ebene der Gruppen ist nicht m\u00F6glich. highscore.forminfo=Die HighScore Funktionalit\u00E4t bezieht sich auf die einzelnen Mitglieder einer Gruppe. Ein Vergleich auf Ebene der Gruppen ist nicht m\u00F6glich.
info.task.collected=Die hochgeladenen Dokumente wurden automatisch eingezogen.
info.task.reset.allowed=Die Aufgabe wurde zur\u00FCckgesetzt. Der Teilnehmer kann dies nun best\u00E4tigen. info.task.reset.allowed=Die Aufgabe wurde zur\u00FCckgesetzt. Der Teilnehmer kann dies nun best\u00E4tigen.
info.title=$org.olat.course.nodes.ms\:info.title info.title=$org.olat.course.nodes.ms\:info.title
lastmodified=am {0} lastmodified=am {0}
...@@ -154,7 +156,7 @@ notifications.solution=Im Kurs "{0}" steht die folgende Musterl\u00F6sung zum Do ...@@ -154,7 +156,7 @@ notifications.solution=Im Kurs "{0}" steht die folgende Musterl\u00F6sung zum Do
notifications.solution.task=F\u00FCr die Aufgabe "{0}" im Kurs "{1}" steht die folgende Musterl\u00F6sung zum Download bereit\: "{2}". notifications.solution.task=F\u00FCr die Aufgabe "{0}" im Kurs "{1}" steht die folgende Musterl\u00F6sung zum Download bereit\: "{2}".
notifications.submission.group=Die Aufgabe "{0}" im Kurs "{1}" wurde f\u00FCr Gruppe "{2}" abgegeben. notifications.submission.group=Die Aufgabe "{0}" im Kurs "{1}" wurde f\u00FCr Gruppe "{2}" abgegeben.
notifications.submission.group.doc=F\u00FCr die Aufgabe "{0}" im Kurs "{1}" wurde ein neues Dokument "{2}" von "{3}" f\u00FCr Gruppe "{4}" hochgeladen. notifications.submission.group.doc=F\u00FCr die Aufgabe "{0}" im Kurs "{1}" wurde ein neues Dokument "{2}" von "{3}" f\u00FCr Gruppe "{4}" hochgeladen.
notifications.submission.individual=Die Aufgabe "{0}" im Kurs "{1}" wurde von "{2}" abgegeben. notifications.submission.individual=Die Aufgabe "{0}" im Kurs "{1}" wurde von "{2}" ohne L\u00F6sung abgegeben.
notifications.submission.individual.doc=F\u00FCr die Aufgabe "{0}" im Kurs "{1}" wurde ein neues Dokument "{2}" von "{3}" hochgeladen. notifications.submission.individual.doc=F\u00FCr die Aufgabe "{0}" im Kurs "{1}" wurde ein neues Dokument "{2}" von "{3}" hochgeladen.
open.group=Gruppe \u00F6ffnen open.group=Gruppe \u00F6ffnen
pane.tab.accessibility=Zugang pane.tab.accessibility=Zugang
......
...@@ -63,6 +63,7 @@ coach.waiting.assignment=Waiting for assignment ...@@ -63,6 +63,7 @@ coach.waiting.assignment=Waiting for assignment
coach.waiting.assignment.description=The task has not been assigned yet. The submission and reviewing process can only be started when the task has been assigned first. coach.waiting.assignment.description=The task has not been assigned yet. The submission and reviewing process can only be started when the task has been assigned first.
coach.waiting.submitted.documents=Waiting for documents coach.waiting.submitted.documents=Waiting for documents
coach.waiting.submitted.documents.description=No documents have been submitted so far. The reviewing can only be started when a final submission has been made. coach.waiting.submitted.documents.description=No documents have been submitted so far. The reviewing can only be started when a final submission has been made.
coach.waiting.submitted.documents.ready.description=There are uploaded documents which have not been submitted so far. The reviewing can only be started when a final submission has been made.
comment=Comments comment=Comments
condition.accessibility.title=Access condition.accessibility.title=Access
confirm.delete.solution.description=Do you want to delete the solution "{0}"? confirm.delete.solution.description=Do you want to delete the solution "{0}"?
...@@ -120,6 +121,7 @@ group.passed=Group passed ...@@ -120,6 +121,7 @@ group.passed=Group passed
group.score=Group score group.score=Group score
group.title=Score summary group.title=Score summary
highscore.forminfo=The high-score feature refers to the members of a group. A comparison on group level is not available. highscore.forminfo=The high-score feature refers to the members of a group. A comparison on group level is not available.
info.task.collected=The uploaded documents have been collected automatically.
info.task.reset.allowed=The task has been reset. The participant can confirm it now. info.task.reset.allowed=The task has been reset. The participant can confirm it now.
info.title=$org.olat.course.nodes.ms\:info.title info.title=$org.olat.course.nodes.ms\:info.title
lastmodified=at {0} lastmodified=at {0}
...@@ -154,7 +156,7 @@ notifications.solution=In the course "{0}" the following sample solution is avai ...@@ -154,7 +156,7 @@ notifications.solution=In the course "{0}" the following sample solution is avai
notifications.solution.task=For the task "{0}" in the course "{1}" the following sample solution is available for download\: "{2}". notifications.solution.task=For the task "{0}" in the course "{1}" the following sample solution is available for download\: "{2}".
notifications.submission.group=The task "{0}" in course "{1}" was submitted for the group "{2}". notifications.submission.group=The task "{0}" in course "{1}" was submitted for the group "{2}".
notifications.submission.group.doc=\=For the task "{0}" in course "{1}" was a new document "{2}" submitted by "{3}" for the group "{4}". notifications.submission.group.doc=\=For the task "{0}" in course "{1}" was a new document "{2}" submitted by "{3}" for the group "{4}".
notifications.submission.individual=The task "{0}" in course "{1}" was submitted by "{2}". notifications.submission.individual=The task "{0}" in course "{1}" was submitted by "{2}" without a document.
notifications.submission.individual.doc=For the task "{0}" in course "{1}" was a new document "{2}" submitted by "{3}". notifications.submission.individual.doc=For the task "{0}" in course "{1}" was a new document "{2}" submitted by "{3}".
open.group=Open group open.group=Open group
pane.tab.accessibility=Access pane.tab.accessibility=Access
......
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