Permalink
Browse files

MDL-28071 calendar: Accessibility improvments on calendar new event page

  • Loading branch information...
ankitagarwal committed Sep 20, 2012
1 parent a3ab18c commit 7dbd7bb7c4ed007bfc2167065cbcf2c658611eb6
Showing with 4 additions and 3 deletions.
  1. +0 −2 calendar/event.php
  2. +4 −1 calendar/event_form.php
View
@@ -194,8 +194,6 @@
$calendar->add_sidecalendar_blocks($renderer);
echo $OUTPUT->header();
-echo $renderer->start_layout();
echo $OUTPUT->heading($title);
$mform->display();
-echo $renderer->complete_layout();
echo $OUTPUT->footer();
View
@@ -48,6 +48,7 @@ function definition () {
$newevent = (empty($this->_customdata->event) || empty($this->_customdata->event->id));
$repeatedevents = (!empty($this->_customdata->event->eventrepeats) && $this->_customdata->event->eventrepeats>0);
$hasduration = (!empty($this->_customdata->hasduration) && $this->_customdata->hasduration);
+ $mform->addElement('header', 'general', get_string('general'));
if ($newevent) {
$eventtypes = $this->_customdata->eventtypes;
@@ -112,7 +113,8 @@ function definition () {
$mform->addElement('date_time_selector', 'timestart', get_string('date'));
$mform->addRule('timestart', get_string('required'), 'required');
- $mform->addElement('radio', 'duration', get_string('eventduration', 'calendar'), get_string('durationnone', 'calendar'), 0);
+ $mform->addElement('header', 'durationdetails', get_string('eventduration', 'calendar'));
+ $mform->addElement('radio', 'duration', null, get_string('durationnone', 'calendar'), 0);
$mform->addElement('radio', 'duration', null, get_string('durationuntil', 'calendar'), 1);
$mform->addElement('date_time_selector', 'timedurationuntil', ' ');
@@ -127,6 +129,7 @@ function definition () {
if ($newevent) {
+ $mform->addElement('header', 'repeatevents', get_string('repeatedevents', 'calendar'));
$mform->addElement('checkbox', 'repeat', get_string('repeatevent', 'calendar'), null, 'repeat');
$mform->addElement('text', 'repeats', get_string('repeatweeksl', 'calendar'), 'maxlength="10" size="10"');
$mform->setType('repeats', PARAM_INT);

0 comments on commit 7dbd7bb

Please sign in to comment.