From 330d7a719800cded4385c633370f782571891f49 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sun, 8 Feb 2015 22:31:17 +0100 Subject: Implement sell action --- app/views/pages/sales/sellForm.scala.html | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 app/views/pages/sales/sellForm.scala.html (limited to 'app/views/pages/sales/sellForm.scala.html') diff --git a/app/views/pages/sales/sellForm.scala.html b/app/views/pages/sales/sellForm.scala.html new file mode 100644 index 0000000..d3988ba --- /dev/null +++ b/app/views/pages/sales/sellForm.scala.html @@ -0,0 +1,34 @@ +@(saleForm: Form[SaleData])(implicit request: AuthRequest[AnyContent], flash: Flash, token: play.filters.csrf.CSRF.Token) + +@templates.ebe("Sell")(request.account) { + +
+
+ +

Sell a new item

+ + @views.html.fragments.forms.globalErrors(saleForm) + + @helper.form(action = routes.Sale.sellSubmit(), 'class -> "pure-form pure-form-stacked") { + + @helper.CSRF.formField + +
+ @views.html.fragments.forms.labeledField(saleForm("name"), "text", "Item name") + @views.html.fragments.forms.labeledField(saleForm("shortDescription"), "text", "Short description") + @views.html.fragments.forms.labeledTextarea(saleForm("longDescription"), "text", "Long description") +
+ +
+ @views.html.fragments.forms.labeledField(saleForm("endDate"), "date", "End date") + @views.html.fragments.forms.labeledField(saleForm("initialPrice"), "number", "Initial price") +
+ + + + } + +
+
+ +} -- cgit v1.2.3