--- loncom/homework/templates/DropBox.problem 2009/07/06 17:12:47 1.13
+++ loncom/homework/templates/DropBox.problem 2010/04/20 23:58:31 1.15
@@ -11,22 +11,39 @@ $awarded=&EXT('user.resource.resource.0.
$scoreformat=&EXT('resource.0.scoreformat');
if (!defined($scoreformat) || $scoreformat eq '') { $scoreformat="0f"; }
if (!defined($awarded)) {
- $display='$weight possible points.';
+ $display=$weight.' possible points.';
} else {
$display='You have '.&format($awarded*$weight,$scoreformat).' out of '.
$weight.' possible points.';
}
+$comment=&EXT('user.resource.resource.0.comment');
+if (!defined($comment) || $comment!~/\w/) {
+ $comment='';
+} else {
+ $comment='
';
+}
+$gradeinfo=&EXT('user.resource.resource.0.gradeinfo');
+if (!defined($gradeinfo) || $gradeinfo!~/\w/) {
+ $gradeinfo='';
+} else {
+ $gradeinfo='
';
+}
+
$display
-
-- If non-integer points are used (e.g., 3.5), make sure to change the display format in PPRM, or the result will be displayed in rounded form.
-- To change the allowed file types for submissions, change the "uploadedfiletypes" parameter in PPRM.
-- To change the maximum cumulative size for submitted files for this item, modify the "maxfilesize" parameter in PPRM (The default is 10 MB).
-
-
+
+You should adjust this resource in "Modify parameter settings for this resource:"
+- If non-integer points are used (e.g., 3.5), make sure to change the display format, or the result will be displayed in rounded form.
+- To change the allowed file types for submissions, change the "uploadedfiletypes"
+- To change the maximum cumulative size for submitted files for this item, modify the "maxfilesize" parameter (The default is 10 MB).
+
+You can upload comments and grade information with this resource when uploading CSV files.
+
+$gradeinfo
+$comment