diff --git a/grade/import/xml/grade_import_form.php b/grade/import/xml/grade_import_form.php index 7792147a8ba..07e0b412491 100644 --- a/grade/import/xml/grade_import_form.php +++ b/grade/import/xml/grade_import_form.php @@ -56,6 +56,7 @@ class grade_import_form extends moodleform { $mform->addElement('text', 'url', get_string('fileurl', 'gradeimport_xml'), 'size="80"'); $mform->setType('url', PARAM_URL); $mform->disabledIf('url', 'userfile', 'noteq', ''); + $mform->addHelpButton('url', 'fileurl', 'gradeimport_xml'); if (!empty($CFG->gradepublishing)) { $mform->addElement('header', 'publishing', get_string('publishing', 'grades')); diff --git a/grade/import/xml/index.php b/grade/import/xml/index.php index 3f3d0811980..b1ebdff82ca 100644 --- a/grade/import/xml/index.php +++ b/grade/import/xml/index.php @@ -51,7 +51,8 @@ if ($data = $mform->get_data()) { raise_memory_limit(MEMORY_EXTRA); if ($text = $mform->get_file_content('userfile')) { - print_grade_page_head($COURSE->id, 'import', 'xml', get_string('importxml', 'grades')); + print_grade_page_head($COURSE->id, 'import', 'xml', + get_string('importxml', 'grades'), false, false, true, 'importxml', 'gradeimport_xml'); $error = ''; $importcode = import_xml_grades($text, $course, $error); @@ -74,7 +75,8 @@ if ($data = $mform->get_data()) { $data->key = create_user_key('grade/import', $USER->id, $course->id, $data->iprestriction, $data->validuntil); } - print_grade_page_head($COURSE->id, 'import', 'xml', get_string('importxml', 'grades')); + print_grade_page_head($COURSE->id, 'import', 'xml', + get_string('importxml', 'grades'), false, false, true, 'importxml', 'gradeimport_xml'); echo '