From 51366210169f65db6dc93604684728807b6b367e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=B6sch?= Date: Fri, 12 Dec 2025 13:58:51 +0100 Subject: [PATCH] MDL-87452 lesson: Align the checkboxes and labels with BS5. --- public/mod/lesson/locallib.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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