MDL-34555 accessibility compliance for calendar: Add forform input text and select tag
This commit is contained in:
committed by
Aparup Banerjee
parent
8291579200
commit
81ff28e7e6
@@ -1627,6 +1627,7 @@ function calendar_print_month_selector($name, $selected) {
|
||||
for ($i=1; $i<=12; $i++) {
|
||||
$months[$i] = userdate(gmmktime(12, 0, 0, $i, 15, 2000), '%B');
|
||||
}
|
||||
echo html_writer::label(get_string('months'), 'menu'. $name, false, array('class' => 'accesshide'));
|
||||
echo html_writer::select($months, $name, $selected, false);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user