version 1.74, 2018/06/07 15:58:11
|
version 1.75, 2025/01/25 23:24:23
|
Line 408 sub displayfoils {
|
Line 408 sub displayfoils {
|
} |
} |
foreach my $name (@whichfoils) { |
foreach my $name (@whichfoils) { |
my $lastopt=$lastresponse{$name}; |
my $lastopt=$lastresponse{$name}; |
|
my $text=$Apache::response::foilgroup{$name.'.text'}; |
my $optionlist=''; |
my $optionlist=''; |
if ($target ne 'tex') { |
if ($target ne 'tex') { |
$optionlist = "<option value=\"\"></option>\n"; |
$optionlist = "<option value=\"\"></option>\n"; |
Line 433 sub displayfoils {
|
Line 434 sub displayfoils {
|
} |
} |
} |
} |
if ($target ne 'tex' && $Apache::lonhomework::type ne 'exam') { |
if ($target ne 'tex' && $Apache::lonhomework::type ne 'exam') { |
|
my $labeltext = &mt('Choose ranking for:').' '.$text; |
$optionlist='<select onchange="javascript:setSubmittedPart(\''. |
$optionlist='<select onchange="javascript:setSubmittedPart(\''. |
$part.'\');" name="HWVAL_'. |
$part.'\');" name="HWVAL_'. |
$Apache::inputtags::response[-1].':'.$temp.'">'. |
$Apache::inputtags::response[-1].':'.$temp.'" aria-label="'.$labeltext.'">'. |
$optionlist."</select>\n"; |
$optionlist."</select>\n"; |
} elsif ($env{'form.pdfFormFields'} eq 'yes') { |
} elsif ($env{'form.pdfFormFields'} eq 'yes') { |
#do nothing |
#do nothing |
} else { |
} else { |
$optionlist=' '.$temp.' '.$optionlist.' '; |
$optionlist=' '.$temp.' '.$optionlist.' '; |
} |
} |
my $text=$Apache::response::foilgroup{$name.'.text'}; |
|
if ($target ne 'tex') { |
if ($target ne 'tex') { |
$result .= '<div class="LC_rankfoil">'; |
$result .= '<div class="LC_rankfoil">'; |
if ($Apache::lonhomework::type ne 'exam') { |
if ($Apache::lonhomework::type ne 'exam') { |