aboutsummaryrefslogtreecommitdiff
path: root/app/views/pages/sales
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2015-02-08 20:03:02 +0100
committerPacien TRAN-GIRARD2015-02-08 20:03:02 +0100
commitc00cb6ae05f548f7ae270a93ad44f57207380406 (patch)
treed4fff3d2ec28fcfb5be4e0eed2621f8ac1462b74 /app/views/pages/sales
parent00443f9d168dc4fc272dee84c9ab8641062bf259 (diff)
downloadminibay-c00cb6ae05f548f7ae270a93ad44f57207380406.tar.gz
Put views in packages
Diffstat (limited to 'app/views/pages/sales')
-rw-r--r--app/views/pages/sales/currentSales.scala.html41
1 files changed, 41 insertions, 0 deletions
diff --git a/app/views/pages/sales/currentSales.scala.html b/app/views/pages/sales/currentSales.scala.html
new file mode 100644
index 0000000..30cea78
--- /dev/null
+++ b/app/views/pages/sales/currentSales.scala.html
@@ -0,0 +1,41 @@
1@(sales: Seq[Views.Sale])(implicit request: AuthRequest[AnyContent], flash: Flash, token: play.filters.csrf.CSRF.Token)
2
3@templates.ebe("Sales")(request.account) {
4
5 <div class="action-buttons pure-g">
6 @fragments.ebeMainActions()
7 </div>
8
9 <br>
10
11 <div class="pure-g">
12 <div class="pure-u-1 pure-u-lg-1-1">
13 <div class="l-box">
14 <h2>Current sales</h2>
15
16 <table class="pure-table pure-table-horizontal">
17
18 <thead>
19 <tr>
20 <td>End date</td>
21 <td>Item</td>
22 <td>Current price</td>
23 </tr>
24 </thead>
25
26 <tbody>
27 @for(sale <- sales) {
28 <tr>
29 <td>@sale.endDate</td>
30 <td><a href="@routes.Sale.item(sale.itemUuid.get)">@sale.itemName</a></td>
31 <td>@if(sale.bestOffer.isDefined) {@sale.bestOffer} else {sale.initialPrice} €</td>
32 </tr>
33 }
34 </tbody>
35
36 </table>
37 </div>
38 </div>
39 </div>
40
41}