Skip to content

Commit

Permalink
Comment Form
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekaterina-Vititneva committed Aug 12, 2024
1 parent 9057cc7 commit 23ec964
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion project_2/commerce/auctions/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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€'}))
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...'}))

0 comments on commit 23ec964

Please sign in to comment.