| … | |
… | |
| 273 | ); |
273 | ); |
| 274 | |
274 | |
| 275 | $WeBWorK::timer0->continue("end pg processing") if $timer0_ON; |
275 | $WeBWorK::timer0->continue("end pg processing") if $timer0_ON; |
| 276 | ##### fix hint/solution options ##### |
276 | ##### fix hint/solution options ##### |
| 277 | |
277 | |
| 278 | $can{showHints} &&= $pg->{flags}->{hintExists}; |
278 | $can{showHints} &&= $pg->{flags}->{hintExists} |
|
|
279 | &&= $pg->{flags}->{showHintLimit}<=$pg->{state}->{num_of_incorrect_ans}; |
| 279 | $can{showSolutions} &&= $pg->{flags}->{solutionExists}; |
280 | $can{showSolutions} &&= $pg->{flags}->{solutionExists}; |
| 280 | |
281 | |
| 281 | ##### store fields ##### |
282 | ##### store fields ##### |
| 282 | |
283 | |
| 283 | $self->{want} = \%want; |
284 | $self->{want} = \%want; |
| … | |
… | |
| 588 | -checked => $will{showCorrectAnswers}, |
589 | -checked => $will{showCorrectAnswers}, |
| 589 | -label => "Show correct answers", |
590 | -label => "Show correct answers", |
| 590 | ) ." " |
591 | ) ." " |
| 591 | : "" ), |
592 | : "" ), |
| 592 | ($can{showHints} |
593 | ($can{showHints} |
| 593 | ? CGI::checkbox( |
594 | ? '<div style="color:red">'. CGI::checkbox( |
| 594 | -name => "showHints", |
595 | -name => "showHints", |
| 595 | -checked => $will{showHints}, |
596 | -checked => $will{showHints}, |
| 596 | -label => "Show Hints", |
597 | -label => "Show Hints", |
| 597 | ) . " " |
598 | ) . "</div> " |
| 598 | : " " ), |
599 | : " " ), |
| 599 | ($can{showSolutions} |
600 | ($can{showSolutions} |
| 600 | ? CGI::checkbox( |
601 | ? CGI::checkbox( |
| 601 | -name => "showSolutions", |
602 | -name => "showSolutions", |
| 602 | -checked => $will{showSolutions}, |
603 | -checked => $will{showSolutions}, |