]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-12616 - Improve layout so you can distinguish the student's response to an essay...
authortjhunt <tjhunt>
Mon, 17 Dec 2007 12:28:14 +0000 (12:28 +0000)
committertjhunt <tjhunt>
Mon, 17 Dec 2007 12:28:14 +0000 (12:28 +0000)
question/type/essay/questiontype.php
theme/standard/styles_color.css

index c4c48281b4da8275bd52e54ca390c1c9011dae2a..f45eff0646e8fad4e7cb6ae31df969a8d1010226 100644 (file)
@@ -98,6 +98,7 @@ class question_essay_qtype extends default_questiontype {
             $safeformatoptions->para = false;
             $answer = format_text($value, FORMAT_MOODLE,
                                   $safeformatoptions, $cmoptions->course);
+            $answer = '<div class="answerreview">' . $answer . '</div>';
         }
 
         include("$CFG->dirroot/question/type/essay/display.html");
index e15f836f75641e09f76dd897f9207b7dd027176f..c43a675e721d391e49801308f8cecaf5db1e828a 100644 (file)
@@ -754,6 +754,9 @@ table.message_search_results td {
 .shortanswer .answer {
     background-color: #EEE;
 }
+.essay .answerreview {
+    background-color: #EEE;
+}
 .que .feedback {
   border-color: #DDD;
 }