From 1ad1ef1c69cb8208e4d330a9695442b4d78134ac Mon Sep 17 00:00:00 2001 From: maheshgudi Date: Thu, 12 Oct 2017 18:05:11 +0530 Subject: Fix User data UI bug and auto-updates demo course total marks --- yaksh/templates/yaksh/user_data.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/user_data.html b/yaksh/templates/yaksh/user_data.html index 31a023d..6dfaac3 100644 --- a/yaksh/templates/yaksh/user_data.html +++ b/yaksh/templates/yaksh/user_data.html @@ -78,7 +78,8 @@ User IP address: {{ paper.user_ip }} {% endif %} {% endfor %} - {% elif question.type == "integer" or "string" or "float" %} + {% elif question.type == "integer" or question.type == "string" + or question.type == "float" %}
Correct Answer:
{% for testcase in question.get_test_cases %} {{ testcase.correct|safe }} @@ -96,15 +97,14 @@ User IP address: {{ paper.user_ip }} {% if question.type != "code" %} {% if "Correct answer" in answers.0.error_list %}
+
Correct
{% else %}
+
Incorrect
{% endif %} -
- Autocheck: {{ answers.0.error_list.0 }} -
Student answer:
- {% if question.type == "mcc"%} + {% if question.type == "mcc"%}
{% for testcases in question.get_test_cases %} {%if testcases.id|stringformat:"i" in answers.0.answer|safe %} @@ -124,9 +124,9 @@ User IP address: {{ paper.user_ip }}
{{ answers.0.answer|safe }}
-
-
{% endif %} +
+
{% else %}
Student answer:
{% for answer in answers %} -- cgit