diff options
author | Akshen | 2017-06-22 15:24:26 +0530 |
---|---|---|
committer | Akshen | 2017-06-22 15:24:26 +0530 |
commit | 58268fbf548df26cf5de1a36bfd56e17f154a4c4 (patch) | |
tree | 5524c404080864868f0f2523a7a0a241462b261c /workshop_app/templates | |
parent | 9dde06c3ace0cf5ee0a85b17658486ce73991cba (diff) | |
download | workshop_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.html | 6 |
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. }); }); |