Skip to content

Commit

Permalink
assignment MDL-23998
Browse files Browse the repository at this point in the history
clarified 'revert to draft' button in a advanced upload assignment with a help icon.
button 'no more submissions' changed to say 'Prevent submission updates'.
  • Loading branch information
nebgor committed Sep 2, 2010
1 parent b593bf4 commit c663653
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mod/assignment/lang/en/assignment.php
Expand Up @@ -97,7 +97,7 @@
$string['feedback'] = 'Feedback';
$string['feedbackfromteacher'] = 'Feedback from the {$a}';
$string['feedbackupdated'] = 'Submissions feedback updated for {$a} people';
$string['finalize'] = 'No more submissions';
$string['finalize'] = 'Prevent submission updates';
$string['finalizeerror'] = 'An error occurred and that submission could not be finalised';
$string['graded'] = 'Graded';
$string['guestnosubmit'] = 'Sorry, guests are not allowed to submit an assignment. You have to log in/ register before you can submit your answer.';
Expand Down Expand Up @@ -186,6 +186,7 @@
$string['typeupload'] = 'Advanced uploading of files';
$string['typeuploadsingle'] = 'Upload a single file';
$string['unfinalize'] = 'Revert to draft';
$string['unfinalize_help'] = 'Reverting to draft enables the student to make further updates to their assignment';
$string['unfinalizeerror'] = 'An error occurred and that submission could not be reverted to draft';
$string['uploadafile'] = 'Upload a file';
$string['uploadfiles'] = 'Upload files';
Expand Down
1 change: 1 addition & 0 deletions mod/assignment/type/upload/assignment.class.php
Expand Up @@ -333,6 +333,7 @@ function print_user_files($userid=0, $return=false) {
if ($this->can_unfinalize($submission)) {
//$options = array ('id'=>$this->cm->id, 'userid'=>$userid, 'action'=>'unfinalize', 'mode'=>$mode, 'offset'=>$offset);
$output .= '<br /><input type="submit" name="unfinalize" value="'.get_string('unfinalize', 'assignment').'" />';
$output .= $OUTPUT->help_icon('unfinalize', 'assignment');

} else if ($this->can_finalize($submission)) {
//$options = array ('id'=>$this->cm->id, 'userid'=>$userid, 'action'=>'finalizeclose', 'mode'=>$mode, 'offset'=>$offset);
Expand Down

0 comments on commit c663653

Please sign in to comment.