diff --git a/lib/WeBWorK/ContentGenerator/Instructor/SendMail.pm b/lib/WeBWorK/ContentGenerator/Instructor/SendMail.pm index af99193f63..af689aeefe 100644 --- a/lib/WeBWorK/ContentGenerator/Instructor/SendMail.pm +++ b/lib/WeBWorK/ContentGenerator/Instructor/SendMail.pm @@ -688,24 +688,34 @@ sub print_form { CGI::div( { class => 'col-md-6 mb-2' }, CGI::div( - { class => 'input-group input-group-sm mb-2' }, - CGI::span({ class => 'input-group-text' }, CGI::strong($r->maketext('Send to:'))), - CGI::div( - { class => 'input-group-text' }, - CGI::radio_group({ - name => 'send_to', - values => [ 'all_students', 'studentID' ], - labels => { - all_students => $r->maketext('all'), - studentID => $r->maketext('selected') - }, - default => $r->param('send_to') // 'studentID', - linebreak => 0, - class => 'form-check-input me-1', - labelattributes => { class => 'form-check-label mx-1' } - }) - ), - CGI::label({ for => 'classList', class => 'input-group-text' }, $r->maketext('students')), + { class => 'form-check' }, + CGI::input({ + name => 'send_to', + id => 'send_to_all', + value => 'all_students', + type => 'radio', + class => 'form-check-input', + (($r->param('send_to') // '') eq 'all_students') ? (checked => undef) : () + }), + CGI::label( + { for => 'send_to_all', class => 'form-check-label' }, + $r->maketext('Send to all students') + ) + ), + CGI::div( + { class => 'form-check' }, + CGI::input({ + name => 'send_to', + id => 'send_to_selected', + value => 'studentID', + type => 'radio', + class => 'form-check-input', + (!$r->param('send_to') || $r->param('send_to') eq 'studentID') ? (checked => undef) : () + }), + CGI::label( + { for => 'send_to_selected', class => 'form-check-label' }, + $r->maketext('Send to the students selected below') + ) ), CGI::div( { class => 'mb-2' }, diff --git a/lib/WeBWorK/ContentGenerator/Instructor/StudentProgress.pm b/lib/WeBWorK/ContentGenerator/Instructor/StudentProgress.pm index 8967278b6a..d57b14e9af 100644 --- a/lib/WeBWorK/ContentGenerator/Instructor/StudentProgress.pm +++ b/lib/WeBWorK/ContentGenerator/Instructor/StudentProgress.pm @@ -513,13 +513,13 @@ sub displaySets { last_name => $studentRecord->last_name(), first_name => $studentRecord->first_name(), score => 0, - total => $r->maketext('n/a'), + total => 'n/a', section => $studentRecord->section(), recitation => $studentRecord->recitation(), problemsRow => [$r->maketext('no attempt recorded')], email_address => $studentRecord->email_address(), - date => $r->maketext('none'), - testtime => $r->maketext('none'), + date => 'n/a', + testtime => 'n/a', }; } @@ -534,13 +534,13 @@ sub displaySets { last_name => $studentRecord->last_name(), first_name => $studentRecord->first_name(), score => 0, - total => $r->maketext('n/a'), + total => 'n/a', section => $studentRecord->section(), recitation => $studentRecord->recitation(), problemsRow => [' '], email_address => $studentRecord->email_address(), - date => $r->maketext('none'), - testtime => $r->maketext('none'), + date => 'n/a', + testtime => 'n/a', }; push(@score_list, 0); push(@augmentedUserRecords, $dataH);