--- loncom/homework/grades.pm 2009/05/14 14:24:07 1.574 +++ loncom/homework/grades.pm 2009/05/18 20:07:34 1.574.2.1 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.574 2009/05/14 14:24:07 bisitz Exp $ +# $Id: grades.pm,v 1.574.2.1 2009/05/18 20:07:34 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -8278,50 +8278,36 @@ sub grading_menu { 'saveState'=>"", 'gradingMenu'=>1, 'showgrading'=>"yes"); - - my $url1 = &Apache::lonhtmlcommon::build_url('grades/',\%fields); - + my $url = &Apache::lonhtmlcommon::build_url('grades/',\%fields); + my @menu = ({ url => $url, + name => &mt('Manual Grading/View Submissions'), + short_description => + &mt('Start the process of hand grading submissions.'), + }); $fields{'command'} = 'csvform'; - my $url2 = &Apache::lonhtmlcommon::build_url('grades/',\%fields); - + $url = &Apache::lonhtmlcommon::build_url('grades/',\%fields); + push(@menu, { url => $url, + name => &mt('Upload Scores'), + short_description => + &mt('Specify a file containing the class scores for current resource.')}); $fields{'command'} = 'processclicker'; - my $url3 = &Apache::lonhtmlcommon::build_url('grades/',\%fields); - + $url = &Apache::lonhtmlcommon::build_url('grades/',\%fields); + push(@menu, { url => $url, + name => &mt('Process Clicker'), + short_description => + &mt('Specify a file containing the clicker information for this resource.')}); $fields{'command'} = 'scantron_selectphase'; - my $url4 = &Apache::lonhtmlcommon::build_url('grades/',\%fields); - - my @menu = ({ categorytitle=>'Course Grading', - items =>[ - { linktext => 'Manual Grading/View Submissions', - url => $url1, - permission => 'F', - icon => 'edit-find-replace.png', - linktitle => 'Start the process of hand grading submissions.' - }, - { linktext => 'Upload Scores', - url => $url2, - permission => 'F', - icon => 'uploadscores.png', - linktitle => 'Specify a file containing the class scores for current resource.' - }, - { linktext => 'Process Clicker', - url => $url3, - permission => 'F', - icon => 'addClickerInfoFile.png', - linktitle => 'Specify a file containing the clicker information for this resource.' - }, - { linktext => 'Grade/Manage/Review Scantron Forms', - url => $url4, - permission => 'F', - icon => 'stat.png', - linktitle => 'Grade scantron exams, upload/download scantron data files, and review previously graded scantron exams.' - } - ] - }); - - #$fields{'command'} = 'verify'; - #$url = &Apache::lonhtmlcommon::build_url('grades/',\%fields); - # + $url = &Apache::lonhtmlcommon::build_url('grades/',\%fields); + push(@menu, { url => $url, + name => &mt('Grade/Manage/Review Scantron Forms'), + short_description => + &mt('Grade scantron exams, upload/download scantron data files, and review previously graded scantron exams.')}); + $fields{'command'} = 'verify'; + $url = &Apache::lonhtmlcommon::build_url('grades/',\%fields); + push(@menu, { url => "", + name => &mt('Verify Receipt'), + short_description => + &mt('')}); # Create the menu my $Str; # $Str .= '