MDL-34555 accessibility compliance for calendar: Add forform input text and select tag

This commit is contained in:
Rossiani Wijaya 2012-07-27 18:13:06 +08:00 committed by Aparup Banerjee
parent 5b711b3e99
commit 5c57655218
2 changed files with 4 additions and 1 deletions

View file

@ -710,7 +710,9 @@ class core_calendar_renderer extends plugin_renderer_base {
$select = new single_select(new moodle_url(CALENDAR_URL.'set.php', array('return' => base64_encode($returnurl->out(false)), 'var' => 'setcourse', 'sesskey'=>sesskey())), 'id', $courseoptions, $selected, null);
$select->class = 'cal_courses_flt';
if ($label !== null) {
$select->label = $label;
$select->set_label($label);
} else {
$select->set_label(get_string('listofcourses'), array('class' => 'accesshide'));
}
return $this->output->render($select);
}