mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
Merge branch 'wip-MDL-30921-m24' of git://github.com/samhemelryk/moodle
This commit is contained in:
commit
e830d6f98e
11 changed files with 119 additions and 6 deletions
|
@ -148,4 +148,13 @@ class block_settings extends block_base {
|
|||
$this->contentgenerated = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the role that best describes the settings block.
|
||||
*
|
||||
* @return string 'navigation'
|
||||
*/
|
||||
public function get_aria_role() {
|
||||
return 'navigation';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -84,7 +84,7 @@ class block_settings_renderer extends plugin_renderer_base {
|
|||
}
|
||||
|
||||
public function search_form(moodle_url $formtarget, $searchvalue) {
|
||||
$content = html_writer::start_tag('form', array('class'=>'adminsearchform', 'method'=>'get', 'action'=>$formtarget));
|
||||
$content = html_writer::start_tag('form', array('class'=>'adminsearchform', 'method'=>'get', 'action'=>$formtarget, 'role' => 'search'));
|
||||
$content .= html_writer::start_tag('div');
|
||||
$content .= html_writer::tag('label', s(get_string('searchinsettings', 'admin')), array('for'=>'adminsearchquery', 'class'=>'accesshide'));
|
||||
$content .= html_writer::empty_tag('input', array('id'=>'adminsearchquery', 'type'=>'text', 'name'=>'query', 'value'=>s($searchvalue)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue