diff options
author | Prabhu Ramachandran | 2013-04-27 15:28:28 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2013-04-27 15:28:28 +0530 |
commit | 8b6ac259503323bc3d8333382d3769e5d10f162a (patch) | |
tree | 5d260a3db043492ef731b4241cf0f07563591743 /testapp/templates/exam/show_quiz.html | |
parent | fd044e4a9f08366c9425cb241b7452da2ba904e1 (diff) | |
parent | 5c7f66806e4be50985655b7c12bf3190ee91ae46 (diff) | |
download | online_test-8b6ac259503323bc3d8333382d3769e5d10f162a.tar.gz online_test-8b6ac259503323bc3d8333382d3769e5d10f162a.tar.bz2 online_test-8b6ac259503323bc3d8333382d3769e5d10f162a.zip |
Merge branch 'model_changes' of ...
https://github.com/hardythe1/online_test into master.
Conflicts:
production.cfg
testapp/production.py
Diffstat (limited to 'testapp/templates/exam/show_quiz.html')
-rw-r--r-- | testapp/templates/exam/show_quiz.html | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/testapp/templates/exam/show_quiz.html b/testapp/templates/exam/show_quiz.html new file mode 100644 index 0000000..886a696 --- /dev/null +++ b/testapp/templates/exam/show_quiz.html @@ -0,0 +1,32 @@ +{% extends "manage.html" %} + +{% block title %} Quiz List {% endblock title %} + +{% block script %} +<script src="{{ URL_ROOT }}/static/exam/js/show_quiz.js"></script> +{% endblock %} + +{% block subtitle %} Quiz List {% endblock %} +{% block manage %} +{% if not quizzes and not quiz %} +<center><h5> No quizzes available. </h5></center> +{% endif %} + +{# ############################################################### #} +{# This is rendered when we are just viewing exam/monitor #} +{% if quizzes %} +<form method="post" action="" name='frm'> +{% csrf_token %} + +{% for quiz in quizzes %} +<input type=checkbox name='quiz' value={{quiz.id}} /> <a href="{{URL_ROOT}}/exam/manage/addquiz/{{quiz.id}}/">{{ quiz.description }}</a><br> +{% endfor %} + +<br><br> +<button class="btn" type="button" onClick='location.replace("{{URL_ROOT}}/exam/manage/addquiz");'>Add New Quiz</button> +<button class="btn" type="submit" name='edit' value='edit' onClick="return confirm_edit(frm);" >Edit Selected</button> +<button class="btn" type="submit" name="delete" value='delete' onClick="return confirm_delete(frm);">Delete Selected</button> +</form> +{% endif %} + +{% endblock %} |