mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
Merge branch 'MDL-64891-master' of git://github.com/tobiasreischmann/moodle
This commit is contained in:
commit
d2063ed0a1
@ -211,6 +211,8 @@ class edit_category_form extends moodleform {
|
||||
}
|
||||
$mform->addElement('select', 'grade_item_display', get_string('gradedisplaytype', 'grades'), $options);
|
||||
$mform->addHelpButton('grade_item_display', 'gradedisplaytype', 'grades');
|
||||
$mform->disabledIf('grade_item_display', 'grade_item_gradetype', 'in',
|
||||
array(GRADE_TYPE_TEXT, GRADE_TYPE_NONE));
|
||||
|
||||
$default_gradedecimals = grade_get_setting($COURSE->id, 'decimalpoints', $CFG->grade_decimalpoints);
|
||||
$options = array(-1=>get_string('defaultprev', 'grades', $default_gradedecimals), 0=>0, 1=>1, 2=>2, 3=>3, 4=>4, 5=>5);
|
||||
@ -218,6 +220,8 @@ class edit_category_form extends moodleform {
|
||||
$mform->addHelpButton('grade_item_decimals', 'decimalpoints', 'grades');
|
||||
$mform->setDefault('grade_item_decimals', -1);
|
||||
$mform->disabledIf('grade_item_decimals', 'grade_item_display', 'eq', GRADE_DISPLAY_TYPE_LETTER);
|
||||
$mform->disabledIf('grade_item_decimals', 'grade_item_gradetype', 'in',
|
||||
array(GRADE_TYPE_TEXT, GRADE_TYPE_NONE));
|
||||
|
||||
if ($default_gradedisplaytype == GRADE_DISPLAY_TYPE_LETTER) {
|
||||
$mform->disabledIf('grade_item_decimals', 'grade_item_display', "eq", GRADE_DISPLAY_TYPE_DEFAULT);
|
||||
|
@ -166,6 +166,7 @@ class edit_item_form extends moodleform {
|
||||
}
|
||||
$mform->addElement('select', 'display', get_string('gradedisplaytype', 'grades'), $options);
|
||||
$mform->addHelpButton('display', 'gradedisplaytype', 'grades');
|
||||
$mform->disabledIf('display', 'gradetype', 'eq', GRADE_TYPE_TEXT);
|
||||
|
||||
$default_gradedecimals = grade_get_setting($COURSE->id, 'decimalpoints', $CFG->grade_decimalpoints);
|
||||
$options = array(-1=>get_string('defaultprev', 'grades', $default_gradedecimals), 0=>0, 1=>1, 2=>2, 3=>3, 4=>4, 5=>5);
|
||||
@ -176,6 +177,7 @@ class edit_item_form extends moodleform {
|
||||
if ($default_gradedisplaytype == GRADE_DISPLAY_TYPE_LETTER) {
|
||||
$mform->disabledIf('decimals', 'display', "eq", GRADE_DISPLAY_TYPE_DEFAULT);
|
||||
}
|
||||
$mform->disabledIf('decimals', 'gradetype', 'eq', GRADE_TYPE_TEXT);
|
||||
|
||||
/// hiding
|
||||
if ($item->cancontrolvisibility) {
|
||||
|
@ -266,9 +266,9 @@ $string['gradedisplay'] = 'Grade display';
|
||||
$string['gradedisplaytype'] = 'Grade display type';
|
||||
$string['gradedisplaytype_help'] = 'This setting determines how grades are displayed in the grader and user reports.
|
||||
|
||||
* Real - Actual grades
|
||||
* Percentage
|
||||
* Letter - Letters or words are used to represent a range of grades';
|
||||
* Letter - Letters or words are used to represent a range of grades, as defined in \'Letters\' in the gradebook setup
|
||||
* Percentage - Relative to maximum and minimum grades
|
||||
* Real - Actual grades or scale values';
|
||||
$string['gradedon'] = 'Graded: {$a}';
|
||||
$string['gradeexport'] = 'Grade export';
|
||||
$string['gradeexportcolumntype'] = '{$a->name} ({$a->extra})';
|
||||
|
Loading…
x
Reference in New Issue
Block a user