Skip to content

Commit

Permalink
MDL-28071 calendar: Accessibility improvments on calendar new event page
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitagarwal committed Sep 21, 2012
1 parent a3ab18c commit 7dbd7bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 0 additions & 2 deletions calendar/event.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
5 changes: 4 additions & 1 deletion calendar/event_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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', ' ');
Expand All @@ -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);
Expand Down

0 comments on commit 7dbd7bb

Please sign in to comment.