summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authorprathamesh2016-02-25 00:04:01 +0530
committerprathamesh2016-02-25 00:04:01 +0530
commit3b055ad0ad3232a25408632a020d5e3c284c245b (patch)
treea8496bd91dfc49ec74bdfe1e585c1202083f5c1c /yaksh/templates
parent815cd103ec67bcea8cdced706138063cecdcef8c (diff)
downloadonline_test-3b055ad0ad3232a25408632a020d5e3c284c245b.tar.gz
online_test-3b055ad0ad3232a25408632a020d5e3c284c245b.tar.bz2
online_test-3b055ad0ad3232a25408632a020d5e3c284c245b.zip
Question Statistics for a quiz per attempt.
Shows the number of appearance of a question versus number of times the question was answered correctly
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/statistics_question.html25
1 files changed, 18 insertions, 7 deletions
diff --git a/yaksh/templates/yaksh/statistics_question.html b/yaksh/templates/yaksh/statistics_question.html
index dc4786f..a63844f 100644
--- a/yaksh/templates/yaksh/statistics_question.html
+++ b/yaksh/templates/yaksh/statistics_question.html
@@ -6,14 +6,25 @@
<link rel="stylesheet" href="{{ URL_ROOT }}/static/yaksh/css/question_quiz.css" type="text/css" />
{% endblock %}
{% block subtitle %}
-Statistics for {{quiz_name}}
+Statistics for {{quiz.description}}
{% endblock %}
{% block manage %}
-<p><b>Total number of participants: {{ total }}</b></p>
-<table class="bordered-table zebra-striped">
- <tr><th>Question</th><th>Type</th><th>Answered</th></tr>
- {% for question, attempts in question_stats.items %}
- <tr><td>{{ question.summary }}</td><td>{{ question.type }}</td><td>{{ attempts }} ({% widthratio attempts total 100 %}%)</td></tr>
+<div class="row">
+ <div class="span2">
+{% for attempt in attempts %}
+ <p><a href="{{URL_ROOT}}/exam/manage/statistics/question/{{questionpaper_id}}/{{attempt}}">Attempt {{ attempt }}</a></p>
{% endfor %}
-</table>
+</div>
+<div class="span10">
+{% if question_stats %}
+ <p><b>Total number of participants: {{ total }}</b></p>
+ <table class="bordered-table zebra-striped">
+ <tr><th>Question</th><th>Type</th><th>Total</th><th>Answered</th></tr>
+ {% for question, value in question_stats.items %}
+ <tr><td>{{ question.summary }}</td><td>{{ question.type }}</td><td>{{value.1}}</td><td>{{ value.0 }} ({% widthratio value.0 value.1 100 %}%)</td></tr>
+ {% endfor %}
+ </table>
+ {% endif %}
+ </div>
+</div>
{% endblock %}