From d7b9cc1655867fc8995237d3791cfb2e2688603b Mon Sep 17 00:00:00 2001 From: maheshgudi Date: Fri, 6 Oct 2017 17:53:40 +0530 Subject: Fix UI related changes in questions.html and view_answerpaper.html --- yaksh/templates/yaksh/question.html | 4 ++-- yaksh/templates/yaksh/view_answerpaper.html | 12 +++++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html index 1e1f38f..fa69b76 100644 --- a/yaksh/templates/yaksh/question.html +++ b/yaksh/templates/yaksh/question.html @@ -184,11 +184,11 @@ lang = "{{ question.language }}" {% if question.type == "mcc" %} {% for test_case in test_cases %} {% if last_attempt and test_case.id|safe in last_attempt|safe %} - {{ test_case.options }} + {{ test_case.options| safe }}
{% else %} - {{ test_case.options}} + {{ test_case.options| safe }}
{% endif %} {% endfor %} diff --git a/yaksh/templates/yaksh/view_answerpaper.html b/yaksh/templates/yaksh/view_answerpaper.html index 850d789..79987b1 100644 --- a/yaksh/templates/yaksh/view_answerpaper.html +++ b/yaksh/templates/yaksh/view_answerpaper.html @@ -79,7 +79,7 @@
{% endif %}
- Autocheck: {{ answers.0.error_list.0 }} + {{ answers.0.error_list.0 }}
{% if question.type == "mcc"%} @@ -117,12 +117,18 @@
Student answer:
{% for answer in answers %} {% if not answer.skipped %} - {% if "Correct answer" in answer.error %} + {% if answer.answer.correct %}
+
+ Correct Answer +
{% else %}
+
+ Incorrect Answer +
{% endif %} -
Error:
+ {% with answer.error_list as err %} {% for error in err %} {% if not error.expected_output %} -- cgit