summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authorPrabhu Ramachandran2016-11-18 16:35:31 +0530
committerGitHub2016-11-18 16:35:31 +0530
commit7fab5de07a05cf8f84e7beb8b4c166c0398172be (patch)
treeaa8950fbeff7c6fff463dbd9df33a891045ca303 /yaksh/templates
parentd88708631a568c37ae56602407a29001d97a982f (diff)
parent2cb22a95912e6fe6bf97046de654207e4f265d8c (diff)
downloadonline_test-7fab5de07a05cf8f84e7beb8b4c166c0398172be.tar.gz
online_test-7fab5de07a05cf8f84e7beb8b4c166c0398172be.tar.bz2
online_test-7fab5de07a05cf8f84e7beb8b4c166c0398172be.zip
Merge pull request #160 from maheshgudi/add_datetimepicker
Date time picker and python assertion exception fix
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>