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