From 39bd8a5c59fc44a657a79c2c2bcc84ea43cf961f Mon Sep 17 00:00:00 2001 From: Rajesh Taneja Date: Fri, 16 Nov 2012 15:57:21 +0800 Subject: [PATCH] MDl-36352 Calendar: Moved poll interval next to url field for accessibility --- calendar/managesubscriptions_form.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/calendar/managesubscriptions_form.php b/calendar/managesubscriptions_form.php index 26598c9cfb2..c08f984da03 100644 --- a/calendar/managesubscriptions_form.php +++ b/calendar/managesubscriptions_form.php @@ -60,9 +60,6 @@ class calendar_addsubscription_form extends moodleform { $mform->addElement('text', 'url', get_string('importfromurl', 'calendar'), array('maxsize' => '255', 'size' => '50')); $mform->setType('url', PARAM_URL); - // Import file - $mform->addElement('filepicker', 'importfile', get_string('importfromfile', 'calendar')); - // Poll interval $choices = calendar_get_pollinterval_choices(); $mform->addElement('select', 'pollinterval', get_string('pollinterval', 'calendar'), $choices); @@ -70,6 +67,9 @@ class calendar_addsubscription_form extends moodleform { $mform->addHelpButton('pollinterval', 'pollinterval', 'calendar'); $mform->setType('pollinterval', PARAM_INT); + // Import file + $mform->addElement('filepicker', 'importfile', get_string('importfromfile', 'calendar')); + // Disable appropriate elements depending on import from value. $mform->disabledIf('pollinterval', 'importfrom', 'eq', CALENDAR_IMPORT_FROM_FILE); $mform->disabledIf('url', 'importfrom', 'eq', CALENDAR_IMPORT_FROM_FILE);