diff --git a/events/forms.py b/events/forms.py index 5693395..0259394 100644 --- a/events/forms.py +++ b/events/forms.py @@ -1,9 +1,13 @@ from django.utils.safestring import mark_safe -from django.forms import ModelForm, Field -from django.forms.widgets import TextInput, Select, Media +from django.forms import ModelForm, Field, SplitDateTimeWidget, DateInput, MultiWidget, Select +from django.forms.widgets import TextInput, Media +from django.utils.translation import ugettext_lazy as _ + from .models.profiles import Team from .models.events import Event, Place +from datetime import time + class LookupMedia(Media): def render(self): return mark_safe(''' {% endwith %} + + $.datepicker.setDefaults({ + showOn: 'focus', + dateFormat: 'yy-mm-dd', + }); + + $("#id_start_time_0").datepicker({altField: "#id_end_time_0", altFormat: "yy-mm-dd"}); + + $("#id_end_time_0").datepicker(); + +}); + + {% endblock %}