summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authorAkshen2017-11-03 13:53:27 +0530
committerAkshen2017-11-03 13:53:34 +0530
commit5b38088e39b6fe81c36640b5cacdf891de0273ed (patch)
tree2af99d56980b574a878489367c0a978088439d49 /yaksh/templates
parent840c00b9e939d2b33058d236ef4170923e0a018b (diff)
downloadonline_test-5b38088e39b6fe81c36640b5cacdf891de0273ed.tar.gz
online_test-5b38088e39b6fe81c36640b5cacdf891de0273ed.tar.bz2
online_test-5b38088e39b6fe81c36640b5cacdf891de0273ed.zip
Adds DateTimePicker to Add_Course
Adds DatetimePicker to start_enroll_time and end_enroll_time fields
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/add_course.html15
1 files changed, 13 insertions, 2 deletions
diff --git a/yaksh/templates/yaksh/add_course.html b/yaksh/templates/yaksh/add_course.html
index 55683f4..658e2ff 100644
--- a/yaksh/templates/yaksh/add_course.html
+++ b/yaksh/templates/yaksh/add_course.html
@@ -4,6 +4,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/jquery.datetimepicker.full.min.js"></script>
{% endblock %}
{% block content %}
@@ -13,9 +19,14 @@
<table class=span1>
{{ form.as_table }}
</table>
+ <br/>
+ <script type="text/javascript">
+ $("#id_start_enroll_time").datetimepicker({format: 'Y-m-d H:i:s'});
+ $("#id_end_enroll_time").datetimepicker({format: 'Y-m-d H:i:s'});
+ </script>
</center>
- <center><button class="btn primary" type="submit" id="submit" name="questionpaper">Add Course</button>
- <button class="btn primary" type="button" name="button" onClick='location.replace("{{URL_ROOT}}/exam/manage/");'>Cancel</button> </center>
+ <center><button class="btn btn-default" type="submit" id="submit" name="questionpaper">Add Course</button>
+ <button class="btn btn-default" type="button" name="button" onClick='location.replace("{{URL_ROOT}}/exam/manage/");'>Cancel</button> </center>
</form>
{% endblock %}