diff options
author | Prabhu Ramachandran | 2016-02-29 15:59:07 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2016-02-29 15:59:07 +0530 |
commit | 2bff22d61d5d4d6f038c5b368ec437c6bda1dfbe (patch) | |
tree | a8496bd91dfc49ec74bdfe1e585c1202083f5c1c /yaksh/templates | |
parent | b1cb1ece826e39639d339f5dee71743044402b74 (diff) | |
parent | 3b055ad0ad3232a25408632a020d5e3c284c245b (diff) | |
download | online_test-2bff22d61d5d4d6f038c5b368ec437c6bda1dfbe.tar.gz online_test-2bff22d61d5d4d6f038c5b368ec437c6bda1dfbe.tar.bz2 online_test-2bff22d61d5d4d6f038c5b368ec437c6bda1dfbe.zip |
Merge pull request #77 from prathamesh920/stats_per_question
Added statistics per question for a quiz
Diffstat (limited to 'yaksh/templates')
-rw-r--r-- | yaksh/templates/yaksh/monitor.html | 1 | ||||
-rw-r--r-- | yaksh/templates/yaksh/statistics_question.html | 30 |
2 files changed, 31 insertions, 0 deletions
diff --git a/yaksh/templates/yaksh/monitor.html b/yaksh/templates/yaksh/monitor.html index ecb8b42..cb14ba5 100644 --- a/yaksh/templates/yaksh/monitor.html +++ b/yaksh/templates/yaksh/monitor.html @@ -39,6 +39,7 @@ {% if papers %} <p>Number of papers: {{ papers|length }} </p> +<p><a href="{{URL_ROOT}}/exam/manage/statistics/question/{{papers.0.question_paper.id}}">Question Statisitics</a></p> <table border="1" cellpadding="3"> <tr> <th> Name </th> diff --git a/yaksh/templates/yaksh/statistics_question.html b/yaksh/templates/yaksh/statistics_question.html new file mode 100644 index 0000000..a63844f --- /dev/null +++ b/yaksh/templates/yaksh/statistics_question.html @@ -0,0 +1,30 @@ +{% extends "manage.html" %} + +{% block title %} Statistics {% endblock title %} + +{% block css %} +<link rel="stylesheet" href="{{ URL_ROOT }}/static/yaksh/css/question_quiz.css" type="text/css" /> +{% endblock %} +{% block subtitle %} +Statistics for {{quiz.description}} +{% endblock %} +{% block manage %} +<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 %} +</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 %} |