mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 20:50:21 +01:00
MDL-37988 Completion reports: Table header row not in thead section
This commit is contained in:
parent
78129ff0be
commit
fea8be4203
@ -314,7 +314,7 @@ if (!$csv) {
|
||||
print '<table id="completion-progress" class="generaltable flexible boxaligncenter completionreport" style="text-align: left" cellpadding="5" border="1">';
|
||||
|
||||
// Print criteria group names
|
||||
print PHP_EOL.'<tr style="vertical-align: top">';
|
||||
print PHP_EOL.'<thead><tr style="vertical-align: top">';
|
||||
echo '<th scope="row" class="rowheader" colspan="' . $leftcols . '">' .
|
||||
get_string('criteriagroup', 'completion') . '</th>';
|
||||
|
||||
@ -511,8 +511,9 @@ if (!$csv) {
|
||||
print '<img src="'.$OUTPUT->pix_url('i/course').'" class="icon" alt="'.get_string('course').'" title="'.get_string('coursecomplete', 'completion').'" />';
|
||||
print '</th>';
|
||||
|
||||
print '</tr>';
|
||||
print '</tr></thead>';
|
||||
|
||||
echo '<tbody>';
|
||||
} else {
|
||||
// The CSV headers
|
||||
$row = array();
|
||||
@ -730,6 +731,8 @@ foreach ($progress as $user) {
|
||||
|
||||
if ($csv) {
|
||||
$export->download_file();
|
||||
} else {
|
||||
echo '</tbody>';
|
||||
}
|
||||
|
||||
print '</table>';
|
||||
|
@ -280,7 +280,7 @@ if (!$csv) {
|
||||
}
|
||||
|
||||
print '<div id="completion-progress-wrapper" class="no-overflow">';
|
||||
print '<table id="completion-progress" class="generaltable flexible boxaligncenter" style="text-align:left"><tr style="vertical-align:top">';
|
||||
print '<table id="completion-progress" class="generaltable flexible boxaligncenter" style="text-align:left"><thead><tr style="vertical-align:top">';
|
||||
|
||||
// User heading / sort option
|
||||
print '<th scope="col" class="completion-sortchoice">';
|
||||
@ -343,7 +343,7 @@ foreach($activities as $activity) {
|
||||
if ($csv) {
|
||||
print $line;
|
||||
} else {
|
||||
print '</tr>';
|
||||
print '</tr></thead><tbody>';
|
||||
}
|
||||
|
||||
// Row for each user
|
||||
@ -415,7 +415,7 @@ foreach($progress as $user) {
|
||||
if ($csv) {
|
||||
exit;
|
||||
}
|
||||
print '</table>';
|
||||
print '</tbody></table>';
|
||||
print '</div>';
|
||||
print $pagingbar;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user