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')
|
fields.append('picture')
|
||||||
widgets = {
|
widgets = {
|
||||||
'birth_date': forms.DateInput(attrs={
|
'birth_date': forms.DateInput(attrs={
|
||||||
'class': 'datepicker-input',
|
'class': 'datetimepicker-input',
|
||||||
'data-target': '#datetimepicker_date',
|
'data-target': '#datetimepicker_date',
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
|
@ -82,7 +82,7 @@ class DiaperChangeForm(forms.ModelForm):
|
||||||
fields = ['child', 'time', 'wet', 'solid', 'color']
|
fields = ['child', 'time', 'wet', 'solid', 'color']
|
||||||
widgets = {
|
widgets = {
|
||||||
'time': forms.DateTimeInput(attrs={
|
'time': forms.DateTimeInput(attrs={
|
||||||
'class': 'datepicker-input',
|
'class': 'datetimepicker-input',
|
||||||
'data-target': '#datetimepicker_time',
|
'data-target': '#datetimepicker_time',
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue