Fix datetime picker class name for time form fields.

This commit is contained in:
Christopher Charbonneau Wells 2018-03-13 19:17:30 -07:00
parent 911cde4f95
commit b10944b030
1 changed files with 8 additions and 8 deletions

View File

@ -96,11 +96,11 @@ class FeedingForm(forms.ModelForm):
fields = ['child', 'start', 'end', 'type', 'method', 'amount'] fields = ['child', 'start', 'end', 'type', 'method', 'amount']
widgets = { widgets = {
'start': forms.DateTimeInput(attrs={ 'start': forms.DateTimeInput(attrs={
'class': 'datepicker-input', 'class': 'datetimepicker-input',
'data-target': '#datetimepicker_start', 'data-target': '#datetimepicker_start',
}), }),
'end': forms.DateTimeInput(attrs={ 'end': forms.DateTimeInput(attrs={
'class': 'datepicker-input', 'class': 'datetimepicker-input',
'data-target': '#datetimepicker_end', 'data-target': '#datetimepicker_end',
}), }),
} }
@ -136,11 +136,11 @@ class SleepForm(forms.ModelForm):
fields = ['child', 'start', 'end'] fields = ['child', 'start', 'end']
widgets = { widgets = {
'start': forms.DateTimeInput(attrs={ 'start': forms.DateTimeInput(attrs={
'class': 'datepicker-input', 'class': 'datetimepicker-input',
'data-target': '#datetimepicker_start', 'data-target': '#datetimepicker_start',
}), }),
'end': forms.DateTimeInput(attrs={ 'end': forms.DateTimeInput(attrs={
'class': 'datepicker-input', 'class': 'datetimepicker-input',
'data-target': '#datetimepicker_end', 'data-target': '#datetimepicker_end',
}), }),
} }
@ -166,7 +166,7 @@ class TimerForm(forms.ModelForm):
fields = ['name', 'start'] fields = ['name', 'start']
widgets = { widgets = {
'start': forms.DateTimeInput(attrs={ 'start': forms.DateTimeInput(attrs={
'class': 'datepicker-input', 'class': 'datetimepicker-input',
'data-target': '#datetimepicker_start', 'data-target': '#datetimepicker_start',
}) })
} }
@ -188,11 +188,11 @@ class TummyTimeForm(forms.ModelForm):
fields = ['child', 'start', 'end', 'milestone'] fields = ['child', 'start', 'end', 'milestone']
widgets = { widgets = {
'start': forms.DateTimeInput(attrs={ 'start': forms.DateTimeInput(attrs={
'class': 'datepicker-input', 'class': 'datetimepicker-input',
'data-target': '#datetimepicker_start', 'data-target': '#datetimepicker_start',
}), }),
'end': forms.DateTimeInput(attrs={ 'end': forms.DateTimeInput(attrs={
'class': 'datepicker-input', 'class': 'datetimepicker-input',
'data-target': '#datetimepicker_end', 'data-target': '#datetimepicker_end',
}), }),
} }
@ -218,7 +218,7 @@ class WeightForm(forms.ModelForm):
fields = ['child', 'weight', 'date'] fields = ['child', 'weight', 'date']
widgets = { widgets = {
'date': forms.DateInput(attrs={ 'date': forms.DateInput(attrs={
'class': 'datepicker-input', 'class': 'datetimepicker-input',
'data-target': '#datetimepicker_date', 'data-target': '#datetimepicker_date',
}), }),
} }