From cb902da50bd75b623a47727e62c0c69913422bfd Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sun, 8 Feb 2015 00:17:21 +0100 Subject: Authentication draft --- app/views/pages/ebeHomepage.scala.html | 10 +++++----- app/views/pages/loginForm.scala.html | 27 +++++++++++++++++++++++++++ app/views/pages/pepalHomepage.scala.html | 8 ++++---- 3 files changed, 36 insertions(+), 9 deletions(-) create mode 100644 app/views/pages/loginForm.scala.html (limited to 'app/views/pages') diff --git a/app/views/pages/ebeHomepage.scala.html b/app/views/pages/ebeHomepage.scala.html index da1fb08..d4fe80a 100644 --- a/app/views/pages/ebeHomepage.scala.html +++ b/app/views/pages/ebeHomepage.scala.html @@ -1,6 +1,6 @@ -@()(implicit flash: Flash) +@()(implicit request : AuthRequest[AnyContent], flash: Flash, token: play.filters.csrf.CSRF.Token) -@templates.ebe("eBé") { +@templates.ebe("eBé")(request.account) {
@fragments.ebeMainActions() @@ -13,7 +13,7 @@

Get started today

- With @fragments.ebeLogo(), the leading online auction platform, buy or sell items in a few clicks! + With @fragments.branding.ebeLogo(), the leading online auction platform, buy or sell items in a few clicks!

@@ -22,7 +22,7 @@

Buy and sell with confidence

- @fragments.ebeLogo() guarantees all transactions for both buyers and sellers. + @fragments.branding.ebeLogo() guarantees all transactions for both buyers and sellers.

@@ -40,7 +40,7 @@

Secure transactions

- With @fragments.ebeLogo(), you are not required to give any personal information to any buyer or seller. + With @fragments.branding.ebeLogo(), you are not required to give any personal information to any buyer or seller.

diff --git a/app/views/pages/loginForm.scala.html b/app/views/pages/loginForm.scala.html new file mode 100644 index 0000000..5e4d8e5 --- /dev/null +++ b/app/views/pages/loginForm.scala.html @@ -0,0 +1,27 @@ +@(loginForm: Form[LoginData])(implicit flash: Flash, token: play.filters.csrf.CSRF.Token) + +@templates.ebe("Log in")() { + +
+
+ +

Log in

+ + @views.html.fragments.forms.globalErrors(loginForm) + + @helper.form(action = routes.Auth.loginSubmit(), 'class -> "pure-form") { + + @helper.CSRF.formField + +
+ @views.html.fragments.forms.inputField(loginForm("username"), "text", "Username") + @views.html.fragments.forms.inputField(loginForm("password"), "password", "Password") +
+ + + } + +
+
+ +} diff --git a/app/views/pages/pepalHomepage.scala.html b/app/views/pages/pepalHomepage.scala.html index b4a8e9c..9f4b227 100644 --- a/app/views/pages/pepalHomepage.scala.html +++ b/app/views/pages/pepalHomepage.scala.html @@ -1,6 +1,6 @@ -@()(implicit flash: Flash) +@()(implicit request : AuthRequest[AnyContent], flash: Flash, token: play.filters.csrf.CSRF.Token) -@templates.pepal("PéPal") { +@templates.pepal("PéPal")(request.account) {
@fragments.pepalMainActions() @@ -13,7 +13,7 @@

Get started today

- With @fragments.pepalLogo(), the leading online payment solution, buy or sell items on the web in a few clicks! + With @fragments.branding.pepalLogo(), the leading online payment solution, buy or sell items on the web in a few clicks!

@@ -40,7 +40,7 @@

Secure transactions

- With @fragments.pepalLogo(), you are not required to give any personal information to any buyer or seller. + With @fragments.branding.pepalLogo(), you are not required to give any personal information to any buyer or seller.

-- cgit v1.2.3