MDL-61129 survey: Add colgroup attribute at survey question tables

This commit is contained in:
Guillermo Alvarez
2018-04-09 10:32:43 -05:00
parent 2d8ddc8239
commit ca9f979270
+2 -1
View File
@@ -537,6 +537,7 @@ function survey_print_multi($question) {
$P = "";
}
echo "<colgroup colspan=\"7\"></colgroup>";
echo "<tr class=\"smalltext\"><th scope=\"row\">$strresponses</th>";
echo "<th scope=\"col\" class=\"hresponse\">". get_string('notyetanswered', 'survey'). "</th>";
foreach ($options as $key => $val) {
@@ -544,7 +545,7 @@ function survey_print_multi($question) {
}
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);