[UPDT]add city field in employee profile

This commit is contained in:
Horilla
2023-08-16 20:51:42 +05:30
parent d89fd76aa4
commit a94347b747
7 changed files with 198 additions and 161 deletions

View File

@@ -55,10 +55,12 @@ class ModelForm(forms.ModelForm):
{"class": "oh-select oh-select-2 select2-hidden-accessible"}
)
elif isinstance(widget, (forms.Textarea)):
if field.label is not None:
label = trans(field.label)
field.widget.attrs.update(
{
"class": "oh-input w-100",
"placeholder": field.label,
"placeholder": label,
"rows": 2,
"cols": 40,
}