From 79a7ec2d06c7f44a3ddb4f7f728308d2545013fd Mon Sep 17 00:00:00 2001 From: Horilla Date: Tue, 16 Sep 2025 10:14:03 +0530 Subject: [PATCH] [UPDT] ASSET: Updated asset form widgets --- asset/forms.py | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/asset/forms.py b/asset/forms.py index ee1a2211e..4c8346258 100644 --- a/asset/forms.py +++ b/asset/forms.py @@ -226,30 +226,6 @@ class AssetRequestForm(ModelForm): model = AssetRequest fields = "__all__" exclude = ["is_active"] - widgets = { - "requested_employee_id": forms.Select( - attrs={ - "class": "oh-select oh-select-2 select2-hidden-accessible", - } - ), - "asset_category_id": forms.Select( - attrs={ - "class": "oh-select oh-select-2 select2-hidden-accessible", - } - ), - "description": forms.Textarea( - attrs={ - "type": "text", - "id": "objective_description", - "placeholder": _( - "Requesting a laptop for software development purposes." - ), - "class": "oh-input oh-input--textarea oh-input--block", - "rows": 3, - "cols": 40, - } - ), - } def __init__(self, *args, **kwargs): user = kwargs.pop("user", None)