From e9d8be7cfd031c156da153d59355e49cb7d2071a Mon Sep 17 00:00:00 2001 From: adityacp Date: Mon, 3 Apr 2017 11:41:13 +0530 Subject: Change courses.html to allow teachers to add/edit Questionpaper --- yaksh/templates/yaksh/courses.html | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'yaksh') diff --git a/yaksh/templates/yaksh/courses.html b/yaksh/templates/yaksh/courses.html index 970d488..4d19fb9 100644 --- a/yaksh/templates/yaksh/courses.html +++ b/yaksh/templates/yaksh/courses.html @@ -130,19 +130,31 @@ -
+

Add Teacher

-
+

Quiz(zes)

{% if course.get_quizzes %} {% for quiz in course.get_quizzes %} {{ quiz.description }}
- {% endfor %} + {% endfor %} {% else %}

No quiz

{% endif %}
+
+

Question Paper(s)

+ {% for quiz in course.get_quizzes %} + {% if quiz.questionpaper_set.get %} + Question Paper for {{ quiz.description }}
+ {% else %} +

No Question Paper + Add +

+ {% endif %} + {% endfor %} +

-- cgit