[UPDT] HORILLA: Updated multiple forms with date widget
This commit is contained in:
@@ -848,10 +848,6 @@ class ReimbursementForm(ModelForm):
|
||||
"onchange"
|
||||
] = "getAssignedLeave($(this))"
|
||||
|
||||
self.fields["allowance_on"].widget = forms.DateInput(
|
||||
attrs={"type": "date", "class": "oh-input w-100"}
|
||||
)
|
||||
|
||||
self.fields["attachment"] = MultipleFileField(label="Attachments")
|
||||
self.fields["attachment"].widget.attrs["accept"] = ".jpg, .jpeg, .png, .pdf"
|
||||
|
||||
|
||||
@@ -47,20 +47,6 @@ class ContractForm(ModelForm):
|
||||
self.fields["employee_id"].widget.attrs.update(
|
||||
{"onchange": "contractInitial(this)"}
|
||||
)
|
||||
self.fields["contract_start_date"].widget = widgets.DateInput(
|
||||
attrs={
|
||||
"type": "date",
|
||||
"class": "oh-input w-100",
|
||||
"placeholder": "Select a date",
|
||||
}
|
||||
)
|
||||
self.fields["contract_end_date"].widget = widgets.DateInput(
|
||||
attrs={
|
||||
"type": "date",
|
||||
"class": "oh-input w-100",
|
||||
"placeholder": "Select a date",
|
||||
}
|
||||
)
|
||||
self.fields["contract_status"].widget.attrs.update(
|
||||
{
|
||||
"class": "oh-select",
|
||||
|
||||
Reference in New Issue
Block a user