mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-22999 core_grades: Added ability to configure maximum grade value both globally and for each graded-activity.
This commit is contained in:
parent
1a727e121e
commit
597662335d
7 changed files with 369 additions and 36 deletions
|
@ -461,6 +461,8 @@ abstract class moodleform_mod extends moodleform {
|
|||
|
||||
$mform->addElement('modgrade', 'scale', get_string('scale'), false);
|
||||
$mform->disabledIf('scale', 'assessed', 'eq', 0);
|
||||
$mform->addHelpButton('scale', 'modgrade', 'grades');
|
||||
$mform->setDefault('scale', $CFG->gradepointdefault);
|
||||
|
||||
$mform->addElement('checkbox', 'ratingtime', get_string('ratingtime', 'rating'));
|
||||
$mform->disabledIf('ratingtime', 'assessed', 'eq', 0);
|
||||
|
@ -786,7 +788,8 @@ abstract class moodleform_mod extends moodleform {
|
|||
//if supports grades and grades arent being handled via ratings
|
||||
if (!$this->_features->rating) {
|
||||
$mform->addElement('modgrade', 'grade', get_string('grade'));
|
||||
$mform->setDefault('grade', 100);
|
||||
$mform->addHelpButton('grade', 'modgrade', 'grades');
|
||||
$mform->setDefault('grade', $CFG->gradepointdefault);
|
||||
}
|
||||
|
||||
if ($this->_features->advancedgrading
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue