MDL-66874 mod_data: Explicitly add btn-secondary class to select all

* Plus use correct option attribute 'classes' for the slave
  checkboxes
This commit is contained in:
Jun Pataleta
2019-10-14 11:27:19 +08:00
parent bc003428bc
commit 4f71255e61
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1444,7 +1444,7 @@ function data_print_template($template, $records, $data, $search='', $page=0, $r
$checkbox = new \core\output\checkbox_toggleall('listview-entries', false, [
'id' => "entry_{$record->id}",
'name' => 'delcheck[]',
'class' => 'recordcheckbox',
'classes' => 'recordcheckbox',
'value' => $record->id,
]);
$replacement[] = $OUTPUT->render($checkbox);
+1 -1
View File
@@ -516,7 +516,7 @@ if ($showactivity) {
'name' => $selectallid,
'value' => 1,
'label' => get_string('selectall'),
'classes' => 'mr-1',
'classes' => 'btn-secondary mr-1',
], true);
echo $OUTPUT->render($mastercheckbox);