diff options
author | adityacp | 2018-01-15 16:30:26 +0530 |
---|---|---|
committer | adityacp | 2018-01-16 15:20:55 +0530 |
commit | 8006ffb4a5bd54aa960b24f1508d95844fa579de (patch) | |
tree | 5e03c42d8ec18d708b5e17c289310822c5581d51 /yaksh/templates | |
parent | 3abbc557c57eaf2f3d08222034f9a720a1e7a1ed (diff) | |
download | online_test-8006ffb4a5bd54aa960b24f1508d95844fa579de.tar.gz online_test-8006ffb4a5bd54aa960b24f1508d95844fa579de.tar.bz2 online_test-8006ffb4a5bd54aa960b24f1508d95844fa579de.zip |
Change in template, test_views, urls and views
- Allow teacher to edit questionpaper for a quiz
- Add test to check if teacher is allowed to edit questionpaper for a quiz
Diffstat (limited to 'yaksh/templates')
-rw-r--r-- | yaksh/templates/yaksh/add_quiz.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/yaksh/templates/yaksh/add_quiz.html b/yaksh/templates/yaksh/add_quiz.html index d3705e3..bfd8aa1 100644 --- a/yaksh/templates/yaksh/add_quiz.html +++ b/yaksh/templates/yaksh/add_quiz.html @@ -38,6 +38,7 @@ {% if quiz_id and course_id %} <center> <h4>You can check the quiz by attempting it in the following modes:</h4> + <a href="{{URL_ROOT}}/exam/manage/designquestionpaper/{{ quiz_id }}/{{quiz.questionpaper_set.get.id}}/{{course_id}}" class="btn btn-primary">View Question Paper</a> <button class="btn" type="button" name="button" onClick='usermode("{{URL_ROOT}}/exam/manage/usermode/{{quiz_id}}/{{course_id}}/");'>User Mode</button> <button class="btn" type="button" name="button" onClick='location.replace("{{URL_ROOT}}/exam/manage/godmode/{{quiz_id}}/{{course_id}}/");'> |