--- loncom/homework/grades.pm 2005/02/12 03:14:44 1.244 +++ loncom/homework/grades.pm 2005/02/17 08:58:16 1.247 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.244 2005/02/12 03:14:44 albertel Exp $ +# $Id: grades.pm,v 1.247 2005/02/17 08:58:16 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2651,26 +2651,26 @@ sub split_part_type { # #--- Javascript to handle csv upload sub csvupload_javascript_reverse_associate { + my $error1=&mt('You need to specify the username or ID'); + my $error2=&mt('You need to specify at least one grading field'); return(<3) { foundsomething=1; } } - if ((founduname==0 && foundID==0) || founddomain==0) { - alert('You need to specify the domain and either the username or ID'); - return; + if (founduname==0 && foundID==0) { + alert('$error1'); + return; } if (foundsomething==0) { - alert('You need to specify at least one grading field'); - return; + alert('$error2'); + return; } vf.submit(); } @@ -2737,7 +2737,8 @@ sub csvuploadmap_header { } my ($result) = &showResourceInfo($url,$ENV{'form.probTitle'}); - + my $checked=(($ENV{'form.noFirstLine'})?' checked="checked"':''); + my $ignore=&mt('Ignore First Line'); $request->print(<

Uploading Class Grades

@@ -2748,6 +2749,7 @@ Total number of records found in file: $ Enter as many fields as you can. The system will inform you and bring you back to this page if the data selected is insufficient to run your class.
+ @@ -2759,7 +2761,7 @@ to this page if the data selected is ins - +