From e86d81b3ca90d0b4189fb2a8a395cd2469bcd3e6 Mon Sep 17 00:00:00 2001 From: jamiesensei Date: Mon, 26 May 2008 14:24:51 +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. --- mod/quiz/report/grading/report.php | 2 ++ theme/standard/styles_layout.css | 2 ++ 2 files changed, 4 insertions(+) diff --git a/mod/quiz/report/grading/report.php b/mod/quiz/report/grading/report.php index ca0a093ceae..70abbb81d44 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)) { diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css index 25c6de6ef3a..9f1e59c1890 100644 --- a/theme/standard/styles_layout.css +++ b/theme/standard/styles_layout.css @@ -3871,6 +3871,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 { @@ -4007,6 +4008,7 @@ table.quizreviewsummary td.cell { } .quizattemptcounts { text-align: center; + clear : left; margin: 6px 0; } /***