From b27c8d8156a39fc9bc8cefab6fdf6f64b8921259 Mon Sep 17 00:00:00 2001 From: Stephen Bourget Date: Wed, 18 Jan 2017 10:35:11 -0500 Subject: [PATCH] MDL-57415 user: Add missing bootstrap classes to participants page --- user/index.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/user/index.php b/user/index.php index 7cc2fd763a0..168ea2d3ebb 100644 --- a/user/index.php +++ b/user/index.php @@ -830,17 +830,23 @@ if ($bulkoperations) { $showalllink = false; } + echo html_writer::start_tag('div', array('class' => 'btn-group')); if ($perpage < $matchcount) { // Select all users, refresh page showing all users and mark them all selected. $label = get_string('selectalluserswithcount', 'moodle', $matchcount); - echo ' '; + echo html_writer::tag('input', "", array('type' => 'button', 'id' => 'checkall', 'class' => 'btn btn-secondary', + 'value' => $label, 'data-showallink' => $showalllink)); // Select all users, mark all users on page as selected. - echo ' '; + echo html_writer::tag('input', "", array('type' => 'button', 'id' => 'checkallonpage', 'class' => 'btn btn-secondary', + 'value' => get_string('selectallusersonpage'))); } else { - echo ' '; + echo html_writer::tag('input', "", array('type' => 'button', 'id' => 'checkallonpage', 'class' => 'btn btn-secondary', + 'value' => get_string('selectall'))); } - echo ' '; + echo html_writer::tag('input', "", array('type' => 'button', 'id' => 'checknone', 'class' => 'btn btn-secondary', + 'value' => get_string('deselectall'))); + echo html_writer::end_tag('div'); $displaylist = array(); $displaylist['messageselect.php'] = get_string('messageselectadd'); if (!empty($CFG->enablenotes) && has_capability('moodle/notes:manage', $context) && $context->id != $frontpagectx->id) {