aboutsummaryrefslogtreecommitdiff
path: root/app/views/pages/sales/sellForm.scala.html
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2015-02-08 22:31:17 +0100
committerPacien TRAN-GIRARD2015-02-08 22:31:17 +0100
commit330d7a719800cded4385c633370f782571891f49 (patch)
treec231da0bec9cf7c70adf6ccd1e9dc6b58d1b0e2d /app/views/pages/sales/sellForm.scala.html
parent1ec4626a01da4e21b7e654cb0b6df2f52f6c5d91 (diff)
downloadminibay-330d7a719800cded4385c633370f782571891f49.tar.gz
Implement sell action
Diffstat (limited to 'app/views/pages/sales/sellForm.scala.html')
-rw-r--r--app/views/pages/sales/sellForm.scala.html34
1 files changed, 34 insertions, 0 deletions
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 @@
1@(saleForm: Form[SaleData])(implicit request: AuthRequest[AnyContent], flash: Flash, token: play.filters.csrf.CSRF.Token)
2
3@templates.ebe("Sell")(request.account) {
4
5 <div class="pure-g">
6 <div class="pure-u-1 pure-u-lg-1-2 centered">
7
8 <h2>Sell a new item</h2>
9
10 @views.html.fragments.forms.globalErrors(saleForm)
11
12 @helper.form(action = routes.Sale.sellSubmit(), 'class -> "pure-form pure-form-stacked") {
13
14 @helper.CSRF.formField
15
16 <fieldset>
17 @views.html.fragments.forms.labeledField(saleForm("name"), "text", "Item name")
18 @views.html.fragments.forms.labeledField(saleForm("shortDescription"), "text", "Short description")
19 @views.html.fragments.forms.labeledTextarea(saleForm("longDescription"), "text", "Long description")
20 </fieldset>
21
22 <fieldset>
23 @views.html.fragments.forms.labeledField(saleForm("endDate"), "date", "End date")
24 @views.html.fragments.forms.labeledField(saleForm("initialPrice"), "number", "Initial price")
25 </fieldset>
26
27 <button type="submit" class="pure-button pure-input-1 pure-button-primary">Save</button>
28
29 }
30
31 </div>
32 </div>
33
34}