aboutsummaryrefslogtreecommitdiff
path: root/app/views/pages/sales/currentSales.scala.html
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/pages/sales/currentSales.scala.html')
-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}