summaryrefslogtreecommitdiff
path: root/workshop_app/templates
diff options
context:
space:
mode:
authorAkshen2017-06-22 15:24:26 +0530
committerAkshen2017-06-22 15:24:26 +0530
commit58268fbf548df26cf5de1a36bfd56e17f154a4c4 (patch)
tree5524c404080864868f0f2523a7a0a241462b261c /workshop_app/templates
parent9dde06c3ace0cf5ee0a85b17658486ce73991cba (diff)
downloadworkshop_booking-58268fbf548df26cf5de1a36bfd56e17f154a4c4.tar.gz
workshop_booking-58268fbf548df26cf5de1a36bfd56e17f154a4c4.tar.bz2
workshop_booking-58268fbf548df26cf5de1a36bfd56e17f154a4c4.zip
Sets EndDate time
- Propose Workshop Template - recurrance fuction call in views.py
Diffstat (limited to 'workshop_app/templates')
-rw-r--r--workshop_app/templates/workshop_app/propose_workshop.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/workshop_app/templates/workshop_app/propose_workshop.html b/workshop_app/templates/workshop_app/propose_workshop.html
index fb4c926..ce90dc8 100644
--- a/workshop_app/templates/workshop_app/propose_workshop.html
+++ b/workshop_app/templates/workshop_app/propose_workshop.html
@@ -12,13 +12,17 @@
<script>
var dateToday = new Date();
+ var upto = new Date();
+
dateToday.setDate(dateToday.getDate() + 3);
+ upto.setFullYear(dateToday.getFullYear() + 1);
+
$(function() {
$( ".datepicker" ).datepicker({
changeMonth: true,
changeYear: true,
- yearRange: "1994:2084",
minDate: dateToday,
+ maxDate: upto
// You can put more options here.
});
});