From 91fa9c6a40e16f43d935db9641b6833605afc1e8 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Tue, 17 Oct 2017 12:48:51 +0530 Subject: Add a view to preview and download questionpapers --- yaksh/templates/yaksh/download_questionpaper.html | 38 +++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 yaksh/templates/yaksh/download_questionpaper.html (limited to 'yaksh/templates') 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 %} +
+
+
Maximum Mark(s): {{ paper.total_marks }}
+
Total Time: {{ paper.quiz.duration }}
+
+
+
+
Instructions
+
+ {{ paper.quiz.instructions|safe }} +
+
+{% for question in questions %} +
+
+ {{forloop.counter}}. {{ question.summary }} + Mark(s): {{ question.points }} + +
+
+
Question:
{{ question.description|safe }} + {% if question.type == "mcq" or question.type == "mcc" %} +
Choices:
+ {% for testcase in question.get_test_cases %} +
+ {{ forloop.counter }}. {{ testcase.options|safe }} + {% endfor %} + {% endif %} + +
+
+{% endfor %} +{% endblock %} -- cgit