From ee5163b051bd2f4b3111e726bfe1d748eb46f631 Mon Sep 17 00:00:00 2001 From: jamiesensei Date: Mon, 26 May 2008 14:26:24 +0000 Subject: [PATCH] MDL-15002 "grading report : notice from quiz_num_attempt_summary about how many total attempts there are on the quiz and how many in this group would make UI clearer" added call to function and fixed centering of notice on overview and grading report by adding a clear:left to stop the centering being affected by the groups menu. merged from 1.9 branch --- mod/quiz/report/grading/report.php | 4 +++- theme/standard/styles_layout.css | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/mod/quiz/report/grading/report.php b/mod/quiz/report/grading/report.php index 641d80cde8..c7ac2bede6 100644 --- a/mod/quiz/report/grading/report.php +++ b/mod/quiz/report/grading/report.php @@ -148,6 +148,8 @@ class quiz_report extends quiz_default_report { groups_print_activity_menu($this->cm, $this->viewurl->out(false, array('userid'=>0, 'attemptid'=>0))); } + echo '
' . quiz_num_attempt_summary($quiz, $cm, true, $currentgroup) . '
'; + $this->users = get_users_by_capability($this->context, 'mod/quiz:attempt','','','','',$currentgroup,'',false); $this->userids = implode(',', array_keys($this->users)); if(empty($this->users)) { @@ -179,7 +181,7 @@ class quiz_report extends quiz_default_report { $qurl = fullclone($this->viewurl); $qurl->remove_params('questionid', 'attemptid', 'gradeall', 'gradeungraded'); $menu = popup_form(($qurl->out()).'&questionid=',$qmenu, 'questionid', $questionid, 'choose', '', '', true); - echo '
'.$menu.'
'; + echo '
'.$menu.'
'; } if (!$questionid){ return true; diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css index 777547a949..a4fed6be2d 100644 --- a/theme/standard/styles_layout.css +++ b/theme/standard/styles_layout.css @@ -3904,6 +3904,7 @@ table.quizreviewsummary td.cell { #mod-quiz-edit #page .controls, #mod-quiz-edit #page .quizattemptcounts { + clear : left; text-align: center; } #mod-quiz-edit .quizquestions h2 { -- 2.39.5