diff --git a/public/mod/lesson/locallib.php b/public/mod/lesson/locallib.php index fc002af00cc..ac88d080537 100644 --- a/public/mod/lesson/locallib.php +++ b/public/mod/lesson/locallib.php @@ -898,7 +898,8 @@ function lesson_get_overview_report_table_and_data(lesson $lesson, $currentgroup 'label' => $selectall, 'selectall' => $selectall, 'deselectall' => $deselectall, - 'labelclasses' => 'form-check-label' + 'classes' => 'form-check-input', + 'labelclasses' => 'form-check-label', ]); $attemptsheader = $OUTPUT->render($togglercheckbox); } @@ -995,9 +996,11 @@ function lesson_get_overview_report_table_and_data(lesson $lesson, $currentgroup $checkbox = new \core\output\checkbox_toggleall('lesson-attempts', false, [ 'id' => $attemptid, 'name' => $attemptname, - 'label' => $attemptlink + 'label' => $attemptlink, + 'classes' => 'form-check-input', + 'labelclasses' => 'form-check-label', ]); - $attemptlink = $OUTPUT->render($checkbox); + $attemptlink = html_writer::div($OUTPUT->render($checkbox), 'form-check p-0'); } // build up the attempts array