diff options
author | ankitjavalkar | 2017-10-17 12:48:51 +0530 |
---|---|---|
committer | ankitjavalkar | 2018-03-06 11:37:18 +0530 |
commit | 91fa9c6a40e16f43d935db9641b6833605afc1e8 (patch) | |
tree | 0bfcdf7653127cc4161e56c93c5458ba782b1a59 /yaksh/templates | |
parent | 438f8657021981fc7b2e5adbacc13eb332a2e6d3 (diff) | |
download | online_test-91fa9c6a40e16f43d935db9641b6833605afc1e8.tar.gz online_test-91fa9c6a40e16f43d935db9641b6833605afc1e8.tar.bz2 online_test-91fa9c6a40e16f43d935db9641b6833605afc1e8.zip |
Add a view to preview and download questionpapers
Diffstat (limited to 'yaksh/templates')
-rw-r--r-- | yaksh/templates/yaksh/download_questionpaper.html | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/yaksh/templates/yaksh/download_questionpaper.html b/yaksh/templates/yaksh/download_questionpaper.html new file mode 100644 index 0000000..8b04874 --- /dev/null +++ b/yaksh/templates/yaksh/download_questionpaper.html @@ -0,0 +1,38 @@ +{% extends "base.html" %} + +{% block pagetitle %} Quiz: {{ paper.quiz.description }} {% endblock pagetitle %} + +{% block content %} +<div class="well"> + <div class="col-md-12"> + <div class="col-md-6">Maximum Mark(s): {{ paper.total_marks }}</div> + <div class="col-md-6"><span class="pull-right">Total Time: {{ paper.quiz.duration }}</span></div> + </div> +</div> +<div class="panel panel-default"> + <div class="panel-heading">Instructions</div> + <div class="panel-body" id="instructions"> + {{ paper.quiz.instructions|safe }} + </div> +</div> +{% for question in questions %} + <div class="panel panel-info"> + <div class="panel-heading"> + <strong> {{forloop.counter}}. {{ question.summary }} + <span class="marks pull-right"> Mark(s): {{ question.points }} </span> + </strong> + </div> + <div class="panel-body"> + <h5><u>Question:</u></h5> <strong>{{ question.description|safe }}</strong> + {% if question.type == "mcq" or question.type == "mcc" %} + <h5> <u>Choices:</u></h5> + {% for testcase in question.get_test_cases %} + <br/><strong> + {{ forloop.counter }}. {{ testcase.options|safe }}</strong> + {% endfor %} + {% endif %} + + </div> + </div> +{% endfor %} +{% endblock %} |