zachgoldstein / vickrey_auctions

An django application for doing Vickrey auctions
0 stars 2 forks source link

Add new bid button & flow to auction page #7

Open zachgoldstein opened 1 year ago

zachgoldstein commented 1 year ago

Buyers place bids on active auctions. We need to add a button on the auction detail view that is only viewable for signed in buyers. This button should be associated with some sort of numeric input for the bid value. When clicked, it should issue a POST request to create a bid model object associated with the auction, then update the page to indicate the current user has bid on the current auction.

zachgoldstein commented 1 year ago

Added an input to place a bid. A successful request creates a bid object, links it to the auction, then returns an alert element that will auto-close after 3 secs. Leaving open b/c we need to only allow buyers to bid once, blocked b/c no real user login/out yet, coming in #1