From 7b3c0eca1c6bd501ef82b55985ceb711d1cf9c39 Mon Sep 17 00:00:00 2001 From: Alexander Bias Date: Thu, 22 Aug 2024 13:14:11 +0200 Subject: [PATCH] Upgrade: Update Bootstrap classes for Moodle 4.4. --- CHANGES.md | 1 + locallib.php | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 17ab38e..5a75d4e 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -6,6 +6,7 @@ Changes ### Unreleased +* 2024-08-20 - Upgrade: Update Bootstrap classes for Moodle 4.4. * 2024-08-20 - Prepare compatibility for Moodle 4.4. ### v4.3-r2 diff --git a/locallib.php b/locallib.php index f981683..11c4e2c 100644 --- a/locallib.php +++ b/locallib.php @@ -206,11 +206,11 @@ function local_bulkenrol_check_email($email, $linecnt, $courseid, $context, $cur if (empty($alreadymember)) { $groupinfo = html_writer::tag('span', get_string('user_groups_yes', 'local_bulkenrol'), - ['class' => 'badge badge-secondary']); + ['class' => 'badge bg-secondary text-dark']); } else { $groupinfo = html_writer::tag('span', get_string('user_groups_already', 'local_bulkenrol'), - ['class' => 'badge badge-success']); + ['class' => 'badge bg-success text-light']); } $checkedemails->user_groups[$email][] = $currentgroup .': '. $groupinfo; } @@ -555,11 +555,11 @@ function local_bulkenrol_display_table($localbulkenroldata, $key) { if (!empty($localbulkenroldata->user_enroled[$email])) { $cell->text = html_writer::tag('span', get_string('user_enroled_yes', 'local_bulkenrol'), - ['class' => 'badge badge-secondary']); + ['class' => 'badge bg-secondary text-dark']); } else { $cell->text = html_writer::tag('span', get_string('user_enroled_already', 'local_bulkenrol'), - ['class' => 'badge badge-secondary']); + ['class' => 'badge bg-secondary text-dark']); } $row[] = $cell; @@ -622,11 +622,11 @@ function local_bulkenrol_display_table($localbulkenroldata, $key) { if (empty($groupexists)) { $cell->text = html_writer::tag('span', get_string('group_status_create', 'local_bulkenrol'), - ['class' => 'badge badge-secondary']); + ['class' => 'badge bg-secondary text-dark']); } else { $cell->text = html_writer::tag('span', get_string('group_status_exists', 'local_bulkenrol'), - ['class' => 'badge badge-success']); + ['class' => 'badge bg-success text-light']); } $row[] = $cell;