From 23ec964e2565ed3fe8c19acd1f633f37b997f9bc Mon Sep 17 00:00:00 2001 From: Ekaterina Vititneva Date: Mon, 12 Aug 2024 08:44:24 +0200 Subject: [PATCH] Comment Form --- project_2/commerce/auctions/forms.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/project_2/commerce/auctions/forms.py b/project_2/commerce/auctions/forms.py index cdc914e..5459d4b 100644 --- a/project_2/commerce/auctions/forms.py +++ b/project_2/commerce/auctions/forms.py @@ -18,4 +18,7 @@ class ListingForm(forms.Form): ) class BidForm(forms.Form): - bid = forms.DecimalField(label="Place Bid", widget=forms.NumberInput(attrs={'class': 'form-control', 'placeholder': '0.00€'})) \ No newline at end of file + bid = forms.DecimalField(label="Place Bid", widget=forms.NumberInput(attrs={'class': 'form-control', 'placeholder': '0.00€'})) + +class CommentForm(forms.Form): + comment = forms.CharField(widget=forms.Textarea(attrs={'rows': 3, 'placeholder': 'Add a comment...'})) \ No newline at end of file