--- loncom/homework/grades.pm 2013/08/09 10:52:54 1.699 +++ loncom/homework/grades.pm 2013/08/09 14:56:17 1.700 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.699 2013/08/09 10:52:54 kruse Exp $ +# $Id: grades.pm,v 1.700 2013/08/09 14:56:17 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -4455,48 +4455,68 @@ LISTJAVASCRIPT my ($curpage) =&Apache::lonnet::decode_symb($symb); # my ($curpage,$mapId) =&Apache::lonnet::decode_symb($symb); # my $type=($curpage =~ /\.(page|sequence)/); - my $select = ''."\n"; + $result.=''."\n"; + $ctr++; } - $select.= ''; - $result.=' '.&mt('Problems from').': '.$select."
\n"; + $result.=''."\n". + ''."\n"; + $result.=&build_section_inputs(); + my $stu_status = join(':',&Apache::loncommon::get_env_multiple('form.Status')); + $result.=''."\n". + ''."\n". + ''."\n"; + + # Show grading options + $result.=&Apache::lonhtmlcommon::start_pick_box(); + my $select = ''."\n"; - $result.=''."\n"; + $select.=''."\n"; $ctr++; } - $result.=''."\n". - ''."\n"; + $select.= ''; - my $options = - ''."\n". - ''."
\n"; - $result.=' '.&mt('View Problem Text').': '.$options; - - $options = - ''."\n". - ''."\n". - ''."\n"; - $result.=' '.&mt('View Submissions').': '.$options; + $result.= + &Apache::lonhtmlcommon::row_title(&mt('Problems from')) + .$select + .&Apache::lonhtmlcommon::row_closure(); + + $result.= + &Apache::lonhtmlcommon::row_title(&mt('View Problem Text')) + .''."\n" + .''."\n" + .&Apache::lonhtmlcommon::row_closure(); + + $result.= + &Apache::lonhtmlcommon::row_title(&mt('View Submissions')) + .''."\n" + .''."\n" + .'' + .&Apache::lonhtmlcommon::row_closure(); - $result.=&build_section_inputs(); - my $stu_status = join(':',&Apache::loncommon::get_env_multiple('form.Status')); - $result.=''."\n". - ''."\n". - ''."
\n"; - - $result.=' '.&mt('Use CODE').':
'."\n"; + $result.= + &Apache::lonhtmlcommon::row_title(&mt('Use CODE')) + .'' + .&Apache::lonhtmlcommon::row_closure(1) + .&Apache::lonhtmlcommon::end_pick_box(); - $result.=' 
'."\n"; $request->print($result); @@ -4641,7 +4661,7 @@ sub displayPage { ''."\n". &Apache::loncommon::start_data_table(). &Apache::loncommon::start_data_table_header_row(). - ' Prob. '. + ''.&mt('Prob.').''. ' '.($env{'form.vProb'} eq 'no' ? &mt('Title') : &mt('Problem Text')).'/'.&mt('Grade').''. &Apache::loncommon::end_data_table_header_row();