Skip to content

Commit

Permalink
Merge pull request sakaiproject#462 from bjones86/SAK-29312
Browse files Browse the repository at this point in the history
SAK-29312 show message making it clear that instructor submitted on behalf of student
  • Loading branch information
bjones86 committed Apr 29, 2015
2 parents e4777e1 + 1471ae3 commit bcb3895
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions assignment/assignment-bundles/resources/assignment.properties
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,8 @@ listsub.grasub = Grade submission
listsub.nosub = No Submission
listsub.sorbyrel = Sort by Released
listsub.sorbysub = Sort by Submission Times
listsub.submitted.by = by
listsub.submitted.on.behalf = on behalf of

new = Add
new.title = Add new assignment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5698,8 +5698,8 @@ private void post_save_submission(RunData data, boolean post)
// SAK-23817: return to the Assignments List by Student
state.setAttribute(FROM_VIEW, MODE_INSTRUCTOR_VIEW_STUDENTS_ASSIGNMENT);
try {
u = UserDirectoryService.getUser(studentId);
submitter = u;
u = UserDirectoryService.getUser(studentId);
} catch (UserNotDefinedException ex1) {
M_log.warn("Unable to find user with ID [" + studentId + "]");
submitter = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,8 @@
#set($gusers = $submission.getSubmitters())
#else
#set($siteUser = $userSubmission.User)
#set($submitterName=$!siteUser.sortName)
#set($submitterSortName=$!siteUser.sortName)
#set($submitterName=$!submitterSortName)
#set($submitterDisplayId=$!siteUser.getDisplayId())
#end
#set($submitterId = $!siteUser.getId())
Expand Down Expand Up @@ -797,7 +798,7 @@
$tlang.getString("listsub.nosub")
#end
#if ($!submittedBy)
<br />by $!submittedBy.sortName
<br /> $tlang.getString("listsub.submitted.by") $!submittedBy.sortName ($tlang.getString("listsub.submitted.on.behalf") $validator.escapeHtml($submitterSortName))
#end
</td>
<td headers="status">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,10 @@
#set ($submitterId = false)
#set ($submitterId = $!submission.getProperties().getProperty("submitted_user_id"))
#if ($!submitterId)
<br />by $userService.getUser($submitterId).getDisplayName()
<br />$tlang.getString("listsub.submitted.by") $userService.getUser($submitterId).getDisplayName()
#if( $member.getDisplayId() != $submitterId )
($tlang.getString("listsub.submitted.on.behalf") $validator.escapeHtml($member.sortName))
#end
#end
#elseif ($!submission.TimeSubmitted.toStringLocalFull())
$tlang.getString("gen.subm4") $tlang.getString("submitted.date.redacted")
Expand Down

0 comments on commit bcb3895

Please sign in to comment.