diff options
Diffstat (limited to 'app/views/pages/sales/sellForm.scala.html')
-rw-r--r-- | app/views/pages/sales/sellForm.scala.html | 34 |
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 | } | ||