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.
This commit is contained in:
@@ -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 '<div class="quizattemptcounts">' . quiz_num_attempt_summary($quiz, $cm, true, $currentgroup) . '</div>';
|
||||
|
||||
$this->users = get_users_by_capability($this->context, 'mod/quiz:attempt','','','','',$currentgroup,'',false);
|
||||
$this->userids = implode(',', array_keys($this->users));
|
||||
if(empty($this->users)) {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
/***
|
||||
|
||||
Reference in New Issue
Block a user