Skip to content

Commit

Permalink
MDL-34555 accessibility compliance for calendar: Add forform input te…
Browse files Browse the repository at this point in the history
…xt and select tag
  • Loading branch information
Rossiani Wijaya authored and Aparup Banerjee committed Jul 31, 2012
1 parent 5b711b3 commit 5c57655
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions calendar/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1619,6 +1619,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);
}

Expand Down
4 changes: 3 additions & 1 deletion calendar/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,9 @@ protected function course_filter_selector(moodle_url $returnurl, $label=null) {
$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);
}
Expand Down

0 comments on commit 5c57655

Please sign in to comment.