From 5c0d64f8a100a74bda7f9160f2f33db7807c3171 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Wed, 26 Aug 2020 15:59:46 +0530 Subject: Add correct column name to question statistics page --- yaksh/templates/yaksh/statistics_question.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'yaksh') diff --git a/yaksh/templates/yaksh/statistics_question.html b/yaksh/templates/yaksh/statistics_question.html index 58fd8db..606f5e9 100644 --- a/yaksh/templates/yaksh/statistics_question.html +++ b/yaksh/templates/yaksh/statistics_question.html @@ -19,7 +19,7 @@ {% if question_stats %}

Total number of participants: {{ total }}

- + {% for question, value in question_stats.items %} {% endfor %} -- cgit From d8b7314c38a0a1ae4e0cfea9399e943b94366c5b Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Wed, 26 Aug 2020 17:12:45 +0530 Subject: Display question details --- yaksh/templates/yaksh/statistics_question.html | 107 ++++++++++++++++++++++++- 1 file changed, 106 insertions(+), 1 deletion(-) (limited to 'yaksh') diff --git a/yaksh/templates/yaksh/statistics_question.html b/yaksh/templates/yaksh/statistics_question.html index 606f5e9..9a54501 100644 --- a/yaksh/templates/yaksh/statistics_question.html +++ b/yaksh/templates/yaksh/statistics_question.html @@ -21,10 +21,115 @@
QuestionTypeTotalAnswered
QuestionTypeTotalAnswered Correctly
{{ question.summary }}{{ question.type }}{{value.1}}{{ value.0 }} ({% widthratio value.0 value.1 100 %}%)
{% for question, value in question_stats.items %} - + + + + + + + {% endfor %}
QuestionTypeTotalAnswered Correctly
{{ question.summary }}{{ question.type }}{{value.1}}{{ value.0 }} ({% widthratio value.0 value.1 100 %}%)
{{ question.summary }} + +
+
+ + Summary: + +

+ {{ question.summary }} +

+ + Description: + +

+ {{ question.description }} +

+ + Points: + +

+ {{ question.points }} +

+ + Type: + +

+ {{ question.type }} +

+ {% if question.type in 'mcq mcc' %} + + Test Cases: + +

+

    + {% for tc in question.testcase_set.all %} +
  1. + {{ tc.mcqtestcase.options }} + {% if tc.mcqtestcase.correct %} + Correct + {% endif %} +
  2. + {% endfor %} +
+

+ {% endif %} +
+
+
{{ question.type }}{{value.1}}{{ value.0 }} ({% widthratio value.0 value.1 100 %}%)
{% endif %} + + + + + + + -- cgit