mirror of https://github.com/snachodog/mybuddy.git
Remove readonly state from datetime picker fields (#284)
This commit is contained in:
parent
5bcf10923c
commit
0a74061a7a
|
@ -95,7 +95,6 @@ class ChildForm(forms.ModelForm):
|
||||||
widgets = {
|
widgets = {
|
||||||
'birth_date': forms.DateInput(attrs={
|
'birth_date': forms.DateInput(attrs={
|
||||||
'autocomplete': 'off',
|
'autocomplete': 'off',
|
||||||
'readonly': 'readonly',
|
|
||||||
'data-target': '#datetimepicker_date',
|
'data-target': '#datetimepicker_date',
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
|
@ -128,7 +127,6 @@ class DiaperChangeForm(CoreModelForm):
|
||||||
widgets = {
|
widgets = {
|
||||||
'time': forms.DateTimeInput(attrs={
|
'time': forms.DateTimeInput(attrs={
|
||||||
'autocomplete': 'off',
|
'autocomplete': 'off',
|
||||||
'readonly': 'readonly',
|
|
||||||
'data-target': '#datetimepicker_time',
|
'data-target': '#datetimepicker_time',
|
||||||
}),
|
}),
|
||||||
'notes': forms.Textarea(attrs={'rows': 5}),
|
'notes': forms.Textarea(attrs={'rows': 5}),
|
||||||
|
@ -142,12 +140,10 @@ class FeedingForm(CoreModelForm):
|
||||||
widgets = {
|
widgets = {
|
||||||
'start': forms.DateTimeInput(attrs={
|
'start': forms.DateTimeInput(attrs={
|
||||||
'autocomplete': 'off',
|
'autocomplete': 'off',
|
||||||
'readonly': 'readonly',
|
|
||||||
'data-target': '#datetimepicker_start',
|
'data-target': '#datetimepicker_start',
|
||||||
}),
|
}),
|
||||||
'end': forms.DateTimeInput(attrs={
|
'end': forms.DateTimeInput(attrs={
|
||||||
'autocomplete': 'off',
|
'autocomplete': 'off',
|
||||||
'readonly': 'readonly',
|
|
||||||
'data-target': '#datetimepicker_end',
|
'data-target': '#datetimepicker_end',
|
||||||
}),
|
}),
|
||||||
'notes': forms.Textarea(attrs={'rows': 5}),
|
'notes': forms.Textarea(attrs={'rows': 5}),
|
||||||
|
@ -161,7 +157,6 @@ class NoteForm(CoreModelForm):
|
||||||
widgets = {
|
widgets = {
|
||||||
'time': forms.DateTimeInput(attrs={
|
'time': forms.DateTimeInput(attrs={
|
||||||
'autocomplete': 'off',
|
'autocomplete': 'off',
|
||||||
'readonly': 'readonly',
|
|
||||||
'data-target': '#datetimepicker_time',
|
'data-target': '#datetimepicker_time',
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
|
@ -174,12 +169,10 @@ class SleepForm(CoreModelForm):
|
||||||
widgets = {
|
widgets = {
|
||||||
'start': forms.DateTimeInput(attrs={
|
'start': forms.DateTimeInput(attrs={
|
||||||
'autocomplete': 'off',
|
'autocomplete': 'off',
|
||||||
'readonly': 'readonly',
|
|
||||||
'data-target': '#datetimepicker_start',
|
'data-target': '#datetimepicker_start',
|
||||||
}),
|
}),
|
||||||
'end': forms.DateTimeInput(attrs={
|
'end': forms.DateTimeInput(attrs={
|
||||||
'autocomplete': 'off',
|
'autocomplete': 'off',
|
||||||
'readonly': 'readonly',
|
|
||||||
'data-target': '#datetimepicker_end',
|
'data-target': '#datetimepicker_end',
|
||||||
}),
|
}),
|
||||||
'notes': forms.Textarea(attrs={'rows': 5}),
|
'notes': forms.Textarea(attrs={'rows': 5}),
|
||||||
|
@ -193,7 +186,6 @@ class TemperatureForm(CoreModelForm):
|
||||||
widgets = {
|
widgets = {
|
||||||
'time': forms.DateTimeInput(attrs={
|
'time': forms.DateTimeInput(attrs={
|
||||||
'autocomplete': 'off',
|
'autocomplete': 'off',
|
||||||
'readonly': 'readonly',
|
|
||||||
'data-target': '#datetimepicker_time',
|
'data-target': '#datetimepicker_time',
|
||||||
}),
|
}),
|
||||||
'notes': forms.Textarea(attrs={'rows': 5}),
|
'notes': forms.Textarea(attrs={'rows': 5}),
|
||||||
|
@ -207,7 +199,6 @@ class TimerForm(CoreModelForm):
|
||||||
widgets = {
|
widgets = {
|
||||||
'start': forms.DateTimeInput(attrs={
|
'start': forms.DateTimeInput(attrs={
|
||||||
'autocomplete': 'off',
|
'autocomplete': 'off',
|
||||||
'readonly': 'readonly',
|
|
||||||
'data-target': '#datetimepicker_start',
|
'data-target': '#datetimepicker_start',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -230,12 +221,10 @@ class TummyTimeForm(CoreModelForm):
|
||||||
widgets = {
|
widgets = {
|
||||||
'start': forms.DateTimeInput(attrs={
|
'start': forms.DateTimeInput(attrs={
|
||||||
'autocomplete': 'off',
|
'autocomplete': 'off',
|
||||||
'readonly': 'readonly',
|
|
||||||
'data-target': '#datetimepicker_start',
|
'data-target': '#datetimepicker_start',
|
||||||
}),
|
}),
|
||||||
'end': forms.DateTimeInput(attrs={
|
'end': forms.DateTimeInput(attrs={
|
||||||
'autocomplete': 'off',
|
'autocomplete': 'off',
|
||||||
'readonly': 'readonly',
|
|
||||||
'data-target': '#datetimepicker_end',
|
'data-target': '#datetimepicker_end',
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
|
@ -248,7 +237,6 @@ class WeightForm(CoreModelForm):
|
||||||
widgets = {
|
widgets = {
|
||||||
'date': forms.DateInput(attrs={
|
'date': forms.DateInput(attrs={
|
||||||
'autocomplete': 'off',
|
'autocomplete': 'off',
|
||||||
'readonly': 'readonly',
|
|
||||||
'data-target': '#datetimepicker_date',
|
'data-target': '#datetimepicker_date',
|
||||||
}),
|
}),
|
||||||
'notes': forms.Textarea(attrs={'rows': 5}),
|
'notes': forms.Textarea(attrs={'rows': 5}),
|
||||||
|
|
Loading…
Reference in New Issue