[UPDT] LEAVE: Leave request, admin leave request and holiday html updates using htmx attributes

This commit is contained in:
Horilla
2024-01-29 15:16:39 +05:30
parent 9d93b67f5c
commit 927d6807b0
16 changed files with 390 additions and 253 deletions

View File

@@ -440,6 +440,10 @@ class HolidayForm(ModelForm):
labels = {
"name": _("Name"),
}
def __init__(self, *args, **kwargs):
super(HolidayForm, self).__init__(*args, **kwargs)
self.fields['name'].widget.attrs['autocomplete'] = 'name'
class LeaveOneAssignForm(ModelForm):