MDL-10837 Added the export_letters checkbox to the txt export form (it was the only one overriding the grade_export form)
This commit is contained in:
@@ -6,6 +6,12 @@ class grade_export_txt_form extends moodleform {
|
||||
global $CFG;
|
||||
include_once($CFG->libdir.'/pear/HTML/QuickForm/advcheckbox.php');
|
||||
$mform =& $this->_form;
|
||||
|
||||
$mform->addElement('advcheckbox', 'export_letters', get_string('exportletters', 'grades'));
|
||||
$mform->setDefault('export_letters', 0);
|
||||
$mform->setHelpButton('export_letters', array(false, get_string('exportletters', 'grades'),
|
||||
false, true, false, get_string("exportlettershelp", 'grades')));
|
||||
|
||||
$mform->addElement('header', 'general', 'Gradeitems to be included'); // TODO: localize
|
||||
$id = $this->_customdata['id']; // course id
|
||||
$mform->addElement('hidden', 'id', $id);
|
||||
@@ -29,4 +35,4 @@ class grade_export_txt_form extends moodleform {
|
||||
$this->add_action_buttons(false, get_string('submit'));
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user