From c5ae3d4589a71c3f3b9f622c7b67a04277269cde Mon Sep 17 00:00:00 2001 From: prathamesh Date: Tue, 4 Oct 2016 16:57:25 +0530 Subject: Edit Question Paper Feature. Can edit question paper. For creating new and editing existing question paper, same UI and view is used. Ajax previously used for creation is removed. Not necessary as post request handles the same. Removed unnecessary js. --- yaksh/templates/manage.html | 6 + yaksh/templates/yaksh/add_quiz.html | 2 +- yaksh/templates/yaksh/ajax_questions.html | 31 ----- yaksh/templates/yaksh/courses.html | 25 ++-- yaksh/templates/yaksh/design_questionpaper.html | 178 ++++++++++++++---------- 5 files changed, 131 insertions(+), 111 deletions(-) delete mode 100644 yaksh/templates/yaksh/ajax_questions.html (limited to 'yaksh/templates') diff --git a/yaksh/templates/manage.html b/yaksh/templates/manage.html index 63c0ea7..f4c524e 100644 --- a/yaksh/templates/manage.html +++ b/yaksh/templates/manage.html @@ -46,6 +46,12 @@
Course {% if course.active %} @@ -35,7 +34,7 @@ {% if user == course.creator %}
Quiz(zes)
+Quiz(zes)
+ {% for quiz in course.get_quizzes %} {{ quiz.description }}Question Paper(s)
+ {% for quiz in course.get_quizzes %} + {% if quiz.questionpaper_set.get %} + Question Paper for {{ quiz.description }}No Question Paper + +
+ {% endif %} {% endfor %} {% else %}No quiz
@@ -79,7 +89,6 @@