@(item: Tables.Item, seller: Tables.User, bids: Seq[(Tables.Bid, Tables.User)], bidForm: Form[BidData])(implicit request: AuthRequest[AnyContent], flash: Flash, token: play.filters.csrf.CSRF.Token)
@templates.ebe("Item page")(request.account) {
Item summary: @item.itemName
Item summary |
Item name |
@item.itemName |
Short description |
@item.shortDesc |
Detailed description |
@item.longDesc |
Bid |
Current price |
@if(bids.nonEmpty) {
@bids.head._1.offer
} else {
@item.initialPrice
} €
|
@helper.form(action = routes.Sale.bidSubmit(item.uuid), 'class -> "pure-form") {
@helper.CSRF.formField
@views.html.fragments.forms.inputField(bidForm("offer"), "number", "Offer")
}
|
Bid history |
@if(bids.isEmpty) {
No bid |
}
@for(bid <- bids) {
@bid._2.username |
@bid._1.offer |
}
}