From c0909251ecffcdc0df34bb9ad4a90994708c3a5c Mon Sep 17 00:00:00 2001 From: prathamesh Date: Thu, 25 Aug 2016 16:48:29 +0530 Subject: Students can view their submission i.e. answer paper A simple interface for students to view their answerpaper. Moderator has an option where he can allow to students to view their answerpaper. --- yaksh/models.py | 3 ++ yaksh/templates/base.html | 1 + yaksh/templates/manage.html | 1 + yaksh/templates/user.html | 1 + yaksh/templates/yaksh/login.html | 1 - yaksh/templates/yaksh/quizzes_user.html | 8 ++++ yaksh/templates/yaksh/view_answerpaper.html | 57 +++++++++++++++++++++++++++++ yaksh/urls.py | 1 + yaksh/views.py | 16 +++++++- 9 files changed, 87 insertions(+), 2 deletions(-) create mode 100644 yaksh/templates/yaksh/view_answerpaper.html diff --git a/yaksh/models.py b/yaksh/models.py index 73d4b27..eb73499 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -428,6 +428,9 @@ class Quiz(models.Model): is_trial = models.BooleanField(default=False) + view_answerpaper = models.BooleanField('Allow student to view their answer\ + paper', default=False) + objects = QuizManager() class Meta: diff --git a/yaksh/templates/base.html b/yaksh/templates/base.html index 17df0d9..7fe2d27 100644 --- a/yaksh/templates/base.html +++ b/yaksh/templates/base.html @@ -16,6 +16,7 @@ +