--- loncom/homework/grades.pm 2013/07/22 18:06:54 1.697
+++ 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.697 2013/07/22 18:06:54 bisitz Exp $
+# $Id: grades.pm,v 1.700 2013/08/09 14:56:17 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -908,17 +908,17 @@ LISTJAVASCRIPT
$submission_options.=
''.
''."\n".
+ &mt('last submission').' '."\n".
''.
''."\n".
+ &mt('last submission with details').' '."\n".
''.
''."\n".
+ &mt('all submissions').''."\n".
''.
'';
- $gradeTable .= &Apache::lonhtmlcommon::row_title(&mt('Submissions'))
+ &mt('all submissions with details').'';
+ $gradeTable .= &Apache::lonhtmlcommon::row_title(&mt('View Submissions'))
.$submission_options
.&Apache::lonhtmlcommon::row_closure();
@@ -2239,11 +2239,19 @@ KEYWORDS
'('.&mt('Response ID: [_1]',$respid).')'.
' ';
my $files=&get_submitted_files($udom,$uname,$partid,$respid,\%record);
+
if (@$files) {
if ($hide eq 'anon') {
$lastsubonly.='
'.&mt('[quant,_1,file] uploaded to this anonymous survey',scalar(@{$files}));
} else {
- $lastsubonly.='
'.&mt('Like all files provided by users, this file may contain viruses').'
';
+ $lastsubonly.='
'.''.&mt('Submitted Files:').''
+ .'
';
+ if(@$files == 1) {
+ $lastsubonly .= &mt('Like all files provided by users, this file may contain viruses!');
+ } else {
+ $lastsubonly .= &mt('Like all files provided by users, these files may contain viruses!');
+ }
+ $lastsubonly .= '';
foreach my $file (@$files) {
&Apache::lonnet::allowuploaded('/adm/grades',$file);
$lastsubonly.='
'.$file.'';
@@ -2252,9 +2260,9 @@ KEYWORDS
$lastsubonly.='
';
}
if ($hide eq 'anon') {
- $lastsubonly.=''.&mt('Anonymous Survey').'';
+ $lastsubonly.='
'.&mt('Anonymous Survey').'';
} else {
- $lastsubonly.=''.&mt('Submitted Answer:').' '.
+ $lastsubonly.='
'.&mt('Submitted Answer:').' '.
&cleanRecord($subval,$responsetype,$symb,$partid,
$respid,\%record,$order,undef,$uname,$udom,$type,$trial,$rndseed);
}
@@ -4447,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 = '';
- $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 = '';
- my $options =
- ''."\n".
- ''."
\n";
- $result.=' '.&mt('View Problem Text').': '.$options;
-
- $options =
- ''."\n".
- ''."\n".
- ''."\n";
- $result.=' '.&mt('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);
@@ -4633,7 +4661,7 @@ sub displayPage {
''."\n".
&Apache::loncommon::start_data_table().
&Apache::loncommon::start_data_table_header_row().
- '