Skip to content
Snippets Groups Projects
Commit 2b295ffd authored by Chris Sangwin's avatar Chris Sangwin
Browse files

Hide PRT code details in details/summary tags.

parent 803166a4
No related branches found
No related tags found
No related merge requests found
...@@ -392,7 +392,9 @@ foreach ($question->prts as $prtname => $prt) { ...@@ -392,7 +392,9 @@ foreach ($question->prts as $prtname => $prt) {
echo html_writer::tag('td', $node); echo html_writer::tag('td', $node);
$maxima = html_writer::start_tag('div', array('class' => 'questionvariables')); $maxima = html_writer::start_tag('div', array('class' => 'questionvariables'));
$maxima .= html_writer::tag('pre', s($offlinemaxima[$prtname])); $out = html_writer::tag('summary', $prtname);
$out .= html_writer::tag('pre', s($offlinemaxima[$prtname]));
$maxima .= html_writer::tag('details', $out);
$maxima .= html_writer::end_tag('div'); $maxima .= html_writer::end_tag('div');
echo html_writer::tag('td', $maxima); echo html_writer::tag('td', $maxima);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment