From 1ec4626a01da4e21b7e654cb0b6df2f52f6c5d91 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sun, 8 Feb 2015 20:22:09 +0100 Subject: Define routes to be done --- app/controllers/Account.scala | 6 ++++++ app/controllers/Profile.scala | 4 ++++ app/views/fragments/accountInfos.scala.html | 2 +- app/views/fragments/ebeMainActions.scala.html | 2 +- app/views/fragments/pepalMainActions.scala.html | 4 ++-- app/views/pages/account/accountSummary.scala.html | 4 ++-- conf/routes | 19 ++++++++++++------- 7 files changed, 28 insertions(+), 13 deletions(-) diff --git a/app/controllers/Account.scala b/app/controllers/Account.scala index 625ab2d..b705653 100644 --- a/app/controllers/Account.scala +++ b/app/controllers/Account.scala @@ -31,4 +31,10 @@ object Account extends Controller { } } + def deposit = TODO + + def withdraw = TODO + + def transfer = TODO + } diff --git a/app/controllers/Profile.scala b/app/controllers/Profile.scala index 8181106..0009628 100644 --- a/app/controllers/Profile.scala +++ b/app/controllers/Profile.scala @@ -138,4 +138,8 @@ object Profile extends Controller { } } + def viewProfile(userUuid: String) = TODO + + def editProfile = TODO + } diff --git a/app/views/fragments/accountInfos.scala.html b/app/views/fragments/accountInfos.scala.html index 60c3583..105fc5a 100644 --- a/app/views/fragments/accountInfos.scala.html +++ b/app/views/fragments/accountInfos.scala.html @@ -12,7 +12,7 @@ @account.equity € - + @account.username diff --git a/app/views/fragments/ebeMainActions.scala.html b/app/views/fragments/ebeMainActions.scala.html index 0043321..9976d17 100644 --- a/app/views/fragments/ebeMainActions.scala.html +++ b/app/views/fragments/ebeMainActions.scala.html @@ -1,5 +1,5 @@
- + Sell diff --git a/app/views/fragments/pepalMainActions.scala.html b/app/views/fragments/pepalMainActions.scala.html index 0e614a6..9c874ba 100644 --- a/app/views/fragments/pepalMainActions.scala.html +++ b/app/views/fragments/pepalMainActions.scala.html @@ -1,12 +1,12 @@
- + Deposit
- + Send money diff --git a/app/views/pages/account/accountSummary.scala.html b/app/views/pages/account/accountSummary.scala.html index 3a10d3d..4b3a263 100644 --- a/app/views/pages/account/accountSummary.scala.html +++ b/app/views/pages/account/accountSummary.scala.html @@ -37,7 +37,7 @@
- + Deposit @@ -46,7 +46,7 @@

- + Withdraw diff --git a/conf/routes b/conf/routes index 06081d1..c245163 100644 --- a/conf/routes +++ b/conf/routes @@ -17,17 +17,22 @@ GET /logout controllers.Authentication.logout GET /signup controllers.Profile.signup POST /signup controllers.Profile.signupSubmit -#GET /profile controllers.Application.index -#POST /profile controllers.Application.index +GET /account controllers.Profile.editProfile +POST /account controllers.Profile.editProfile + +GET /profile/:uuid controllers.Profile.viewProfile(uuid) # Internal wallet and transactions (Pépal) -GET /account controllers.Account.summary +GET /summary controllers.Account.summary + +GET /deposit controllers.Account.deposit +POST /deposit controllers.Account.deposit -#GET /deposit controllers.Application.index -#POST /deposit controllers.Application.index +GET /withdraw controllers.Account.withdraw +POST /withdraw controllers.Account.withdraw -#GET /withdraw controllers.Application.index -#POST /withdraw controllers.Application.index +GET /transfer controllers.Account.transfer +POST /transfer controllers.Account.transfer # Items and sales (eBé) GET /sales controllers.Sale.sales -- cgit v1.2.3