summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authormaheshgudi2016-11-06 12:27:05 +0530
committermaheshgudi2016-11-18 15:24:20 +0530
commitfeee73459c681a104d590dd299dc91585650f49e (patch)
treed8de17b2c3edfac4eef0100df2fc3e5e93b4c1a6 /yaksh/templates
parent6f2d4829d15d763177328400d0a1b857b983a770 (diff)
downloadonline_test-feee73459c681a104d590dd299dc91585650f49e.tar.gz
online_test-feee73459c681a104d590dd299dc91585650f49e.tar.bz2
online_test-feee73459c681a104d590dd299dc91585650f49e.zip
added date time picker for simple start and end quiz time selection.
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/add_quiz.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/yaksh/templates/yaksh/add_quiz.html b/yaksh/templates/yaksh/add_quiz.html
index 97bf5a2..2df97a2 100644
--- a/yaksh/templates/yaksh/add_quiz.html
+++ b/yaksh/templates/yaksh/add_quiz.html
@@ -5,9 +5,12 @@
{% block css %}
<link rel="stylesheet" href="{{ URL_ROOT }}/static/yaksh/css/question_quiz.css" type="text/css" />
+<link rel="stylesheet" href="{{ URL_ROOT }}/static/yaksh/css/jquery.datetimepicker.css" type="text/css" />
{% endblock %}
{% block script %}
+<script src="{{ URL_ROOT }}/static/yaksh/js/jquery-1.9.1.min.js"></script>
<script src="{{ URL_ROOT }}/static/yaksh/js/add_quiz.js"></script>
+<script src="{{ URL_ROOT }}/static/yaksh/js/jquery.datetimepicker.full.min.js"></script>
{% endblock %}
{% block onload %} onload="javascript:test();" {% endblock %}
{% block content %}
@@ -17,6 +20,10 @@
<center>
<table class=span1>
{{ form.as_table }}
+ <script type="text/javascript">
+ $("#id_start_date_time").datetimepicker({format: 'Y-m-d H:i:s'});
+ $("#id_end_date_time").datetimepicker({format: 'Y-m-d H:i:s'});
+ </script>
</table>
</center>