some prelimary work for formtools
This commit is contained in:
parent
508392d700
commit
74cc2898cb
|
@ -9,3 +9,15 @@ class EmployeeForm(ModelForm):
|
||||||
fields = '__all__'
|
fields = '__all__'
|
||||||
widgets = {'firstdate_employment': DateInput(attrs={'type': 'date'}),
|
widgets = {'firstdate_employment': DateInput(attrs={'type': 'date'}),
|
||||||
'firstdate_presence': DateInput(attrs={'type': 'date'}),}
|
'firstdate_presence': DateInput(attrs={'type': 'date'}),}
|
||||||
|
|
||||||
|
class PersonalForm(ModelForm):
|
||||||
|
class Meta:
|
||||||
|
model = Employee
|
||||||
|
fields = ['firstname', 'lastname', 'email', 'department', 'team',]
|
||||||
|
|
||||||
|
class WorkingForm(ModelForm):
|
||||||
|
class Meta:
|
||||||
|
model = Employee
|
||||||
|
fields = ['firstdate_employment', 'firstdate_presence', 'jobdescription_german', 'jobdescription_english', 'desk',]
|
||||||
|
widgets = {'firstdate_employment': DateInput(attrs={'type': 'date'}),
|
||||||
|
'firstdate_presence': DateInput(attrs={'type': 'date'}),}
|
||||||
|
|
Loading…
Reference in New Issue