mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-60831 search: add BS classes to block elements
This commit is contained in:
parent
9ff02b52b2
commit
7e6ef63e5f
@ -74,12 +74,13 @@ class block_globalsearch extends block_base {
|
||||
// Input.
|
||||
$this->content->text .= html_writer::tag('label', get_string('search', 'search'),
|
||||
array('for' => 'searchform_search', 'class' => 'accesshide'));
|
||||
$inputoptions = array('id' => 'searchform_search', 'name' => 'q', 'type' => 'text', 'size' => '15');
|
||||
$inputoptions = array('id' => 'searchform_search', 'name' => 'q', 'class' => 'form-control',
|
||||
'type' => 'text', 'size' => '15');
|
||||
$this->content->text .= html_writer::empty_tag('input', $inputoptions);
|
||||
|
||||
// Search button.
|
||||
$this->content->text .= html_writer::tag('button', get_string('search', 'search'),
|
||||
array('id' => 'searchform_button', 'type' => 'submit', 'title' => 'globalsearch'));
|
||||
array('id' => 'searchform_button', 'type' => 'submit', 'title' => 'globalsearch', 'class' => 'btn btn-secondary'));
|
||||
$this->content->text .= html_writer::end_tag('fieldset');
|
||||
$this->content->text .= html_writer::end_tag('form');
|
||||
$this->content->text .= html_writer::end_tag('div');
|
||||
|
Loading…
x
Reference in New Issue
Block a user