From e41a7d2841e85c50820f8ccbba9e7bdce42f04ae Mon Sep 17 00:00:00 2001 From: tjhunt Date: Fri, 29 Aug 2008 11:40:58 +0000 Subject: [PATCH] MDL-16263 - next bit. Flags on the quiz summary page. --- mod/quiz/summary.php | 7 ++++++- theme/standard/styles_layout.css | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/mod/quiz/summary.php b/mod/quiz/summary.php index 0e375a1242..eb3fe54f45 100644 --- a/mod/quiz/summary.php +++ b/mod/quiz/summary.php @@ -86,7 +86,12 @@ foreach ($attemptobj->get_question_iterator() as $number => $question) { if ($question->length == 0) { continue; } - $row = array('' . $number . '', + $flag = ''; + if ($attemptobj->is_question_flagged($question->id)) { + $flag = ' ' .
+                get_string('flagged', 'question') . ''; + } + $row = array('' . $number . $flag . '', get_string($attemptobj->get_question_status($question->id), 'quiz')); if ($scorescolumn) { $row[] = $attemptobj->get_question_score($question->id); diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css index c29cf6c6d9..8b40414609 100644 --- a/theme/standard/styles_layout.css +++ b/theme/standard/styles_layout.css @@ -3923,7 +3923,11 @@ body#mod-forum-search .introcontent { #mod-quiz-summary .submitbtns { margin-top: 1.5em; } - +#mod-quiz-summary .questionflag { + width: 16px; + height: 16px; + vertical-align: middle; +} #mod-quiz-attempt #quiz-timer { display: none; } -- 2.39.5