Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'MDL-61129-fix-accessibility-on-tables-mod_survey_Moodle…
…-34' of https://github.com/guillalva06/moodle into MOODLE_34_STABLE
  • Loading branch information
David Monllao committed Apr 10, 2018
2 parents a8c579b + ca9f979 commit 308435a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mod/survey/lib.php
Expand Up @@ -537,14 +537,15 @@ function survey_print_multi($question) {
$P = ""; $P = "";
} }


echo "<colgroup colspan=\"7\"></colgroup>";
echo "<tr class=\"smalltext\"><th scope=\"row\">$strresponses</th>"; echo "<tr class=\"smalltext\"><th scope=\"row\">$strresponses</th>";
echo "<th scope=\"col\" class=\"hresponse\">". get_string('notyetanswered', 'survey'). "</th>"; echo "<th scope=\"col\" class=\"hresponse\">". get_string('notyetanswered', 'survey'). "</th>";
foreach ($options as $key => $val) { foreach ($options as $key => $val) {
echo "<th scope=\"col\" class=\"hresponse\">$val</th>\n"; echo "<th scope=\"col\" class=\"hresponse\">$val</th>\n";
} }
echo "</tr>\n"; echo "</tr>\n";


echo "<tr><th scope=\"col\" colspan=\"7\">$question->intro</th></tr>\n"; echo "<tr><th scope=\"colgroup\" colspan=\"7\">$question->intro</th></tr>\n";


$subquestions = survey_get_subquestions($question); $subquestions = survey_get_subquestions($question);


Expand Down

0 comments on commit 308435a

Please sign in to comment.