For the overview report : MDL-14199 "Option to only show / export final grade" small improvement to UI. Include highlighted message in the form about what the current grading method is.

This commit is contained in:
jamiesensei
2008-05-08 09:51:26 +00:00
parent 18129bbfee
commit 50c68d01cc
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ $string['optallattempts'] = 'all attempts';
$string['optallstudents'] = 'all \'$a\'';
$string['optattemptsonly'] = '\'$a\' with attempts only';
$string['optnoattemptsonly'] = '\'$a\' with no attempts only';
$string['optonlygradedattempts'] = 'only the attempt that is graded for each user';
$string['optonlygradedattempts'] = 'only the attempt that is graded for each user ($a)';
$string['overview'] = 'Overview';
$string['overviewdownload'] = 'Overview download';
$string['overviewdownload'] = 'Overview download';
@@ -18,7 +18,8 @@ class mod_quiz_report_overview_settings extends moodleform {
}
$mform->addElement('select', 'attemptsmode', get_string('show', 'quiz_overview'), $options);
if ($this->_customdata['qmsubselect']){
$mform->addElement('advcheckbox', 'qmfilter', get_string('show', 'quiz_overview'), get_string('optonlygradedattempts', 'quiz_overview'), null, array(0,1));
$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));
}
//-------------------------------------------------------------------------------
$mform->addElement('header', 'general', get_string('preferencesuser', 'quiz_overview'));
+1 -1
View File
@@ -66,7 +66,7 @@ class quiz_report extends quiz_default_report {
$reporturl = new moodle_url($CFG->wwwroot.'/mod/quiz/report.php', $pageoptions);
$qmsubselect = quiz_report_qm_filter_subselect($quiz);
$mform = new mod_quiz_report_overview_settings($reporturl, compact('qmsubselect'));
$mform = new mod_quiz_report_overview_settings($reporturl, compact('qmsubselect', 'quiz'));
if ($fromform = $mform->get_data()){
$attemptsmode = $fromform->attemptsmode;
if ($qmsubselect){