From 89c0367ba2364319e6febab191fd46b822b4f6bc Mon Sep 17 00:00:00 2001
From: CruiseDevice
Date: Thu, 14 Feb 2019 15:05:42 +0530
Subject: Add Preview Question Paper button in add_quiz template
---
yaksh/templates/exam.html | 9 ---------
yaksh/templates/yaksh/add_quiz.html | 11 ++++++++++-
yaksh/views.py | 2 ++
3 files changed, 12 insertions(+), 10 deletions(-)
(limited to 'yaksh')
diff --git a/yaksh/templates/exam.html b/yaksh/templates/exam.html
index 0b292bb..29ad167 100644
--- a/yaksh/templates/exam.html
+++ b/yaksh/templates/exam.html
@@ -98,15 +98,6 @@
{% endfor %}
-
- {% if user.profile.is_moderator %}
- {% if quiz.questionpaper_set.get %}
-
- View Question Paper
-
-
- {% endif %}
- {% endif %}
diff --git a/yaksh/templates/yaksh/add_quiz.html b/yaksh/templates/yaksh/add_quiz.html
index c955e65..246e0fb 100644
--- a/yaksh/templates/yaksh/add_quiz.html
+++ b/yaksh/templates/yaksh/add_quiz.html
@@ -37,8 +37,17 @@
{% if quiz and course_id %}
{% if quiz.questionpaper_set.get.id %}