mirror of https://github.com/snachodog/mybuddy.git
Fix bug keeping datetime input open after losing focus.
This commit is contained in:
parent
e04d5ece00
commit
5ad656060f
|
@ -50,7 +50,7 @@ class ChildForm(forms.ModelForm):
|
|||
fields.append('picture')
|
||||
widgets = {
|
||||
'birth_date': forms.DateInput(attrs={
|
||||
'class': 'datepicker-input',
|
||||
'class': 'datetimepicker-input',
|
||||
'data-target': '#datetimepicker_date',
|
||||
}),
|
||||
}
|
||||
|
@ -82,7 +82,7 @@ class DiaperChangeForm(forms.ModelForm):
|
|||
fields = ['child', 'time', 'wet', 'solid', 'color']
|
||||
widgets = {
|
||||
'time': forms.DateTimeInput(attrs={
|
||||
'class': 'datepicker-input',
|
||||
'class': 'datetimepicker-input',
|
||||
'data-target': '#datetimepicker_time',
|
||||
}),
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue