Skip to content

Commit

Permalink
Upgrade: Update Bootstrap classes for Moodle 4.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
abias committed Aug 22, 2024
1 parent 03d21c0 commit 7b3c0ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 7b3c0ec

Please sign in to comment.