summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaheshgudi2016-05-10 17:51:42 +0530
committermaheshgudi2016-05-27 12:43:12 +0530
commitdf0595e1f3d3dbb2b1a11967fdac053e089a714e (patch)
tree3cc2225123608e167d42628b844a864e0515d619
parent04a4189f5c5786ff121a68f8f191505bbbde0603 (diff)
downloadonline_test-df0595e1f3d3dbb2b1a11967fdac053e089a714e.tar.gz
online_test-df0595e1f3d3dbb2b1a11967fdac053e089a714e.tar.bz2
online_test-df0595e1f3d3dbb2b1a11967fdac053e089a714e.zip
added test mode buttons in addquiz
-rw-r--r--yaksh/templates/yaksh/add_quiz.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/yaksh/templates/yaksh/add_quiz.html b/yaksh/templates/yaksh/add_quiz.html
index c47d1f7..8c3df63 100644
--- a/yaksh/templates/yaksh/add_quiz.html
+++ b/yaksh/templates/yaksh/add_quiz.html
@@ -22,4 +22,9 @@
<center><button class="btn" type="submit" id="submit" name="questionpaper">Design Question Paper</button>
<button class="btn" type="button" name="button" onClick='location.replace("{{URL_ROOT}}/exam/manage/courses/");'>Cancel</button> </center>
</form>
+{% if quiz_id %}
+ <p>You can check the quiz by attempting it in the following modes:</p>
+ <button class="btn" type="button" name="button" onClick='location.replace("{{URL_ROOT}}/exam/manage/usermode/{{quiz_id}}");'>User Mode</button> </center>
+ <button class="btn" type="button" name="button" onClick='location.replace("{{URL_ROOT}}/exam/manage/godmode/{{quiz_id}}");'>God Mode</button> </center>
+ {% endif %}
{% endblock %}