diff options
author | prathamesh | 2016-02-22 18:33:55 +0530 |
---|---|---|
committer | prathamesh | 2016-02-22 18:33:55 +0530 |
commit | 3c68e49bd4a57d3eae0acfe11061041789c1423f (patch) | |
tree | 95136e6758c459412b391aa56c07d8070d5c5ab6 /yaksh/templates | |
parent | ce4732b65c378a38cac5a504a606872ab25918ec (diff) | |
download | online_test-3c68e49bd4a57d3eae0acfe11061041789c1423f.tar.gz online_test-3c68e49bd4a57d3eae0acfe11061041789c1423f.tar.bz2 online_test-3c68e49bd4a57d3eae0acfe11061041789c1423f.zip |
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 | 19 |
2 files changed, 20 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..d9fcd34 --- /dev/null +++ b/yaksh/templates/yaksh/statistics_question.html @@ -0,0 +1,19 @@ +{% 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_name}} +{% endblock %} +{% block manage %} +<p><b>Total number of participants(including multiple attempts): {{ 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> + {% endfor %} +</table> +{% endblock %} |