From 2dd0f54dbf926c51f110b9af4ace8ed7d64bdad4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=B6sch?= Date: Thu, 25 Dec 2025 13:09:37 +0100 Subject: [PATCH] MDL-87552 groupings: Striped hovering lines table with BS 5. --- group/groupings.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/group/groupings.php b/group/groupings.php index 713bb450985..1d39e6588cd 100644 --- a/group/groupings.php +++ b/group/groupings.php @@ -104,13 +104,14 @@ if ($groupings = $DB->get_records('groupings', array('courseid'=>$course->id), ' } $table = new html_table(); $table->head = array($strgrouping, $strgroups, $struses, $stredit); -$table->size = array('30%', '50%', '10%', '10%'); +$table->size = ['30%', '45%', '10%', '15%']; $table->align = array('left', 'left', 'center', 'center'); $table->width = '90%'; +$table->attributes['class'] = 'generaltable table table-hover table-striped'; $table->data = $data; echo html_writer::table($table); -echo $OUTPUT->container_start('buttons'); +echo $OUTPUT->container_start('buttons mt-3'); echo $OUTPUT->single_button(new moodle_url('grouping.php', array('courseid'=>$courseid)), $srtnewgrouping); echo $OUTPUT->container_end();