Commit e3ee9d48 authored by Dan Poltawski's avatar Dan Poltawski
Browse files

Merge branch 'MDL-57415_m33v1' of https://github.com/sbourget/moodle

parents 1342a1c6 b27c8d81
......@@ -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 '<input type="button" id="checkall" value="' . $label . '" data-showallink="' . $showalllink . '" /> ';
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 '<input type="button" id="checkallonpage" value="' . get_string('selectallusersonpage') . '" /> ';
echo html_writer::tag('input', "", array('type' => 'button', 'id' => 'checkallonpage', 'class' => 'btn btn-secondary',
'value' => get_string('selectallusersonpage')));
} else {
echo '<input type="button" id="checkallonpage" value="' . get_string('selectall') . '" /> ';
echo html_writer::tag('input', "", array('type' => 'button', 'id' => 'checkallonpage', 'class' => 'btn btn-secondary',
'value' => get_string('selectall')));
}
echo '<input type="button" id="checknone" value="'.get_string('deselectall').'" /> ';
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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment