MDL-43347 grades: consistent interface for drop lowest setting

This commit is contained in:
Charles Fulton
2014-07-01 07:34:11 -07:00
parent 83d08fcc21
commit c9bd902bd3
+2 -1
View File
@@ -98,7 +98,8 @@ class edit_category_form extends moodleform {
$mform->setAdvanced('keephigh');
}
$mform->addElement('select', 'droplow', get_string('droplow', 'grades'), $options);
$mform->addElement('text', 'droplow', get_string('droplow', 'grades'), 'size="3"');
$mform->setType('droplow', PARAM_INT);
$mform->addHelpButton('droplow', 'droplow', 'grades');
$mform->disabledIf('droplow', 'keephigh', 'noteq', 0);
if ((int)$CFG->grade_droplow_flag & 2) {