Skip to content

Commit

Permalink
MDL-57415 user: Add missing bootstrap classes to participants page
Browse files Browse the repository at this point in the history
  • Loading branch information
sbourget committed Jan 18, 2017
1 parent d97582f commit b27c8d8
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions user/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -830,17 +830,23 @@
$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) {
Expand Down

0 comments on commit b27c8d8

Please sign in to comment.