From f90cd0da3eda7c1723ce4de439f64334c81db712 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sun, 8 Feb 2015 17:06:58 +0100 Subject: Implement account summary page --- app/views/fragments/accountInfos.scala.html | 2 +- app/views/pages/accountSummary.scala.html | 89 +++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+), 1 deletion(-) create mode 100644 app/views/pages/accountSummary.scala.html (limited to 'app/views') diff --git a/app/views/fragments/accountInfos.scala.html b/app/views/fragments/accountInfos.scala.html index 887e485..60c3583 100644 --- a/app/views/fragments/accountInfos.scala.html +++ b/app/views/fragments/accountInfos.scala.html @@ -7,7 +7,7 @@ Logout - + @account.equity € diff --git a/app/views/pages/accountSummary.scala.html b/app/views/pages/accountSummary.scala.html new file mode 100644 index 0000000..3a10d3d --- /dev/null +++ b/app/views/pages/accountSummary.scala.html @@ -0,0 +1,89 @@ +@(transactions: Seq[Tables.Transaction])(implicit request: AuthRequest[AnyContent], flash: Flash, token: play.filters.csrf.CSRF.Token) + +@templates.pepal("Account summary")(request.account) { + +
+ @fragments.pepalMainActions() +
+ +
+ +
+
+
+

My wallet

+ + + + + + + + + + + + + + + + + + + +
Account summary
Balance@request.account.get.balance €
Available funds@request.account.get.equity €
+ +
+ + +
+
+ +
+
+

Transaction history

+ + + + + + + + + + + + + @for(transaction <- transactions) { + + + + + + } + + + +
DateAmountLabel
@transaction.transactionDate@transaction.amount + €@transaction.label
+
+
+
+ +} -- cgit v1.2.3