diff options
author | Prabhu Ramachandran | 2016-11-18 16:35:31 +0530 |
---|---|---|
committer | GitHub | 2016-11-18 16:35:31 +0530 |
commit | 7fab5de07a05cf8f84e7beb8b4c166c0398172be (patch) | |
tree | aa8950fbeff7c6fff463dbd9df33a891045ca303 /yaksh/templates | |
parent | d88708631a568c37ae56602407a29001d97a982f (diff) | |
parent | 2cb22a95912e6fe6bf97046de654207e4f265d8c (diff) | |
download | online_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.html | 7 |
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> |