mirror of
https://github.com/moodle/moodle.git
synced 2025-02-01 05:18:06 +01:00
MDL-16632 "green highlighting should not be applied to grading method in quiz responses report form" Ooops. We do need highlighting on the reponses report. The responses page does have a grade displayed that needs highlighting. I was looking at an ungraded quiz. Need highlighting to highlight grade of graded attempt.
Reverted earlier patch and instead using a different colour for highlighting graded grade. Now using light yellow with a darker yellow border instead of green which is used in reports to highlight the correct answer.
This commit is contained in:
parent
01e6f9e9e4
commit
bfcaf5e684
@ -165,7 +165,7 @@ class quiz_responses_report extends quiz_default_report {
|
||||
// Print information on the grading method and whether we are displaying
|
||||
//
|
||||
if (!$table->is_downloading()) { //do not print notices when downloading
|
||||
if ($strattempthighlight = quiz_report_highlighting_grading_method($quiz, $qmsubselect, $qmfilter, false)) {
|
||||
if ($strattempthighlight = quiz_report_highlighting_grading_method($quiz, $qmsubselect, $qmfilter)) {
|
||||
echo '<div class="quizattemptcounts">' . $strattempthighlight . '</div>';
|
||||
}
|
||||
}
|
||||
|
@ -28,7 +28,7 @@ class mod_quiz_report_responses_settings extends moodleform {
|
||||
}
|
||||
$mform->addElement('select', 'attemptsmode', get_string('show', 'quiz_overview'), $options);
|
||||
if ($this->_customdata['qmsubselect']){
|
||||
$gm = quiz_get_grading_option_name($this->_customdata['quiz']->grademethod);
|
||||
$gm = '<span class="highlight">'.quiz_get_grading_option_name($this->_customdata['quiz']->grademethod).'</span>';
|
||||
$mform->addElement('advcheckbox', 'qmfilter', get_string('show', 'quiz_overview'), get_string('optonlygradedattempts', 'quiz_overview', $gm), null, array(0,1));
|
||||
}
|
||||
//-------------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user