[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

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