mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-56785 theme_boost: apply bs4 styles to search options checkboxes
This commit is contained in:
parent
7afc76fbd6
commit
c1584e154c
1 changed files with 8 additions and 5 deletions
|
@ -624,11 +624,14 @@ abstract class user_selector_base {
|
||||||
$checked = '';
|
$checked = '';
|
||||||
}
|
}
|
||||||
$name = 'userselector_' . $name;
|
$name = 'userselector_' . $name;
|
||||||
$output = '<p><input type="hidden" name="' . $name . '" value="0" />' .
|
// For the benefit of brain-dead IE, the id must be different from the name of the hidden form field above.
|
||||||
// For the benefit of brain-dead IE, the id must be different from the name of the hidden form field above.
|
// It seems that document.getElementById('frog') in IE will return and element with name="frog".
|
||||||
// It seems that document.getElementById('frog') in IE will return and element with name="frog".
|
$output = '<div class="form-check"><input type="hidden" name="' . $name . '" value="0" />' .
|
||||||
'<input type="checkbox" id="' . $name . 'id" name="' . $name . '" value="1"' . $checked . ' /> ' .
|
'<label class="form-check-label" for="' . $name . 'id">' .
|
||||||
'<label for="' . $name . 'id">' . $label . "</label></p>\n";
|
'<input class="form-check-input" type="checkbox" id="' . $name . 'id" name="' . $name .
|
||||||
|
'" value="1"' . $checked . ' /> ' . $label .
|
||||||
|
"</label>
|
||||||
|
</div>\n";
|
||||||
user_preference_allow_ajax_update($name, PARAM_BOOL);
|
user_preference_allow_ajax_update($name, PARAM_BOOL);
|
||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue