diff --git a/shorts/templates/shorts/exam_scores_user.html b/shorts/templates/shorts/exam_scores_user.html index 3afd3f79..eb5fd585 100644 --- a/shorts/templates/shorts/exam_scores_user.html +++ b/shorts/templates/shorts/exam_scores_user.html @@ -8,13 +8,15 @@
-
+
Sample Answers:
+
+
@@ -85,6 +87,11 @@ if (data.history) { $(".question-display-block .history").empty().append(`History:
${data.history}
`); } + if (data.feedback) { + $(".question-display-block .question-feedback").empty().append(`Feedback:
${data.feedback}
`); + } else { + $(".question-display-block .question-feedback").empty(); + } console.log(data) if (data.answers && data.answers.length > 0) { // Format: [[answer, score], ...] diff --git a/shorts/templates/shorts/mark_answer.html b/shorts/templates/shorts/mark_answer.html index e8b9df9d..5c14cced 100644 --- a/shorts/templates/shorts/mark_answer.html +++ b/shorts/templates/shorts/mark_answer.html @@ -174,37 +174,71 @@ ({{ unmarked|length }} answer{{ unmarked|length|pluralize }} left to mark)
-
- Question Details -

History: {{ question.history }}

-

Region: {{ question.get_regions }}

-

Examination: {{ question.get_examinations }}

-

Abnormality: {{ question.get_abnormalities }}

-
Images: - {% for image in question.images.all %} - - Image {{ forloop.counter }}{% if image.description %} ({{image.description}}){% endif %}{% if image.feedback_image %} [feedback image]{% endif %}: -
-
- {% endfor %} -
-

Feedback: {{ question.feedback }}

-
-
-
- Marking Guidance - {{ question.marking_guidance | safe}} -
-
- User answer -
-
-
{{answer.answer}}
+ +
+
+ + Question Details + +
+

History: {{ question.history }}

+

Region: {{ question.get_regions }}

+

Examination: {{ question.get_examinations }}

+

Abnormality: {{ question.get_abnormalities }}

+
Images: +
+ {% for image in question.images.all %} +
+
+
+ + Image {{ forloop.counter }} + {% if image.description %} ({{image.description}}){% endif %} + {% if image.feedback_image %} + Feedback image + {% endif %} +
+
+
+
+
+ {% endfor %} +
+

Feedback: {{ question.feedback }}

+ +
+
+
+
+ + Marking Guidance + +
+ {{ question.marking_guidance | safe }} +
+
+
+
+
+
+
+ + User Answer + +
+
+
{{ answer.answer }}
+
+
+
+
+
+
{% csrf_token %}