diff options
author | adityacp | 2017-04-03 11:41:13 +0530 |
---|---|---|
committer | adityacp | 2017-04-03 11:41:13 +0530 |
commit | e9d8be7cfd031c156da153d59355e49cb7d2071a (patch) | |
tree | 0a5c486b769abf79a9a6a9d7fc80d20ea8af294a /yaksh/templates | |
parent | 734ad94d177be8ad400eb6f97e98612ce099e56a (diff) | |
download | online_test-e9d8be7cfd031c156da153d59355e49cb7d2071a.tar.gz online_test-e9d8be7cfd031c156da153d59355e49cb7d2071a.tar.bz2 online_test-e9d8be7cfd031c156da153d59355e49cb7d2071a.zip |
Change courses.html to allow teachers to add/edit Questionpaper
Diffstat (limited to 'yaksh/templates')
-rw-r--r-- | yaksh/templates/yaksh/courses.html | 18 |
1 files changed, 15 insertions, 3 deletions
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 @@ </div> </div> </div> - <div class="col-md-4"> + <div> <p><b><a href="{{URL_ROOT}}/exam/manage/searchteacher/{{course.id}}/">Add Teacher</a></b></p> </div> - <div class="col-md-4"> + <div class="col-md-2"> <p><b><u>Quiz(zes)</u></b></p> {% if course.get_quizzes %} {% for quiz in course.get_quizzes %} <a href="{{URL_ROOT}}/exam/manage/addquiz/{{course.id}}/{{quiz.id}}/">{{ quiz.description }}</a><br> - {% endfor %} + {% endfor %} {% else %} <p><b>No quiz </b></p> {% endif %} </div> + <div class="col-md-4"> + <p><b><u>Question Paper(s)</u></b></p> + {% for quiz in course.get_quizzes %} + {% if quiz.questionpaper_set.get %} + <a href="{{URL_ROOT}}/exam/manage/designquestionpaper/{{ quiz.id }}/{{quiz.questionpaper_set.get.id}}/">Question Paper for {{ quiz.description }}</a><br> + {% else %} + <p>No Question Paper + <a href="#" onClick='location.replace("{{URL_ROOT}}/exam/manage/quiz/designquestionpaper/{{ quiz.id }}/");'>Add</a> + </p> + {% endif %} + {% endfor %} + </div> </div> <br/> <button class="btn btn-primary pull-right"type="button" onClick='location.replace("{{URL_ROOT}}/exam/manage/addquiz/{{course.id}}/");'>Add New Quiz</button> |