[UPDT] HORILLA: Updated multiple forms with date widget

This commit is contained in:
Horilla
2025-09-03 12:53:51 +05:30
parent 748d6dcfa6
commit 95fb8da712
8 changed files with 14 additions and 104 deletions

View File

@@ -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"

View File

@@ -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",