aboutsummaryrefslogtreecommitdiff
path: root/app/views/pages
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2015-02-08 00:17:21 +0100
committerPacien TRAN-GIRARD2015-02-08 00:17:21 +0100
commitcb902da50bd75b623a47727e62c0c69913422bfd (patch)
tree2296df3bc243176f640732fffc80ec553a371367 /app/views/pages
parent3d22cb7d1ee6bdf7b484bbf001c76e81ae351dea (diff)
downloadminibay-cb902da50bd75b623a47727e62c0c69913422bfd.tar.gz
Authentication draft
Diffstat (limited to 'app/views/pages')
-rw-r--r--app/views/pages/ebeHomepage.scala.html10
-rw-r--r--app/views/pages/loginForm.scala.html27
-rw-r--r--app/views/pages/pepalHomepage.scala.html8
3 files changed, 36 insertions, 9 deletions
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 @@
1@()(implicit flash: Flash) 1@()(implicit request : AuthRequest[AnyContent], flash: Flash, token: play.filters.csrf.CSRF.Token)
2 2
3@templates.ebe("eBé") { 3@templates.ebe("eBé")(request.account) {
4 4
5 <div class="action-buttons pure-g"> 5 <div class="action-buttons pure-g">
6 @fragments.ebeMainActions() 6 @fragments.ebeMainActions()
@@ -13,7 +13,7 @@
13 <div class="l-box"> 13 <div class="l-box">
14 <h3 class="information-head">Get started today</h3> 14 <h3 class="information-head">Get started today</h3>
15 <p> 15 <p>
16 With @fragments.ebeLogo(), the leading online auction platform, buy or sell items in a few clicks! 16 With @fragments.branding.ebeLogo(), the leading online auction platform, buy or sell items in a few clicks!
17 </p> 17 </p>
18 </div> 18 </div>
19 </div> 19 </div>
@@ -22,7 +22,7 @@
22 <div class="l-box"> 22 <div class="l-box">
23 <h3 class="information-head">Buy and sell with confidence</h3> 23 <h3 class="information-head">Buy and sell with confidence</h3>
24 <p> 24 <p>
25 @fragments.ebeLogo() guarantees all transactions for both buyers and sellers. 25 @fragments.branding.ebeLogo() guarantees all transactions for both buyers and sellers.
26 </p> 26 </p>
27 </div> 27 </div>
28 </div> 28 </div>
@@ -40,7 +40,7 @@
40 <div class="l-box"> 40 <div class="l-box">
41 <h3 class="information-head">Secure transactions</h3> 41 <h3 class="information-head">Secure transactions</h3>
42 <p> 42 <p>
43 With @fragments.ebeLogo(), you are not required to give any personal information to any buyer or seller. 43 With @fragments.branding.ebeLogo(), you are not required to give any personal information to any buyer or seller.
44 </p> 44 </p>
45 </div> 45 </div>
46 </div> 46 </div>
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 @@
1@(loginForm: Form[LoginData])(implicit flash: Flash, token: play.filters.csrf.CSRF.Token)
2
3@templates.ebe("Log in")() {
4
5 <div class="pure-g">
6 <div class="pure-u-1 pure-u-lg-1-3 centered">
7
8 <h2>Log in</h2>
9
10 @views.html.fragments.forms.globalErrors(loginForm)
11
12 @helper.form(action = routes.Auth.loginSubmit(), 'class -> "pure-form") {
13
14 @helper.CSRF.formField
15
16 <fieldset class="pure-group">
17 @views.html.fragments.forms.inputField(loginForm("username"), "text", "Username")
18 @views.html.fragments.forms.inputField(loginForm("password"), "password", "Password")
19 </fieldset>
20
21 <button type="submit" class="pure-button pure-input-1 pure-button-primary">Log in</button>
22 }
23
24 </div>
25 </div>
26
27}
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 @@
1@()(implicit flash: Flash) 1@()(implicit request : AuthRequest[AnyContent], flash: Flash, token: play.filters.csrf.CSRF.Token)
2 2
3@templates.pepal("PéPal") { 3@templates.pepal("PéPal")(request.account) {
4 4
5 <div class="action-buttons pure-g"> 5 <div class="action-buttons pure-g">
6 @fragments.pepalMainActions() 6 @fragments.pepalMainActions()
@@ -13,7 +13,7 @@
13 <div class="l-box"> 13 <div class="l-box">
14 <h3 class="information-head">Get started today</h3> 14 <h3 class="information-head">Get started today</h3>
15 <p> 15 <p>
16 With @fragments.pepalLogo(), the leading online payment solution, buy or sell items on the web in a few clicks! 16 With @fragments.branding.pepalLogo(), the leading online payment solution, buy or sell items on the web in a few clicks!
17 </p> 17 </p>
18 </div> 18 </div>
19 </div> 19 </div>
@@ -40,7 +40,7 @@
40 <div class="l-box"> 40 <div class="l-box">
41 <h3 class="information-head">Secure transactions</h3> 41 <h3 class="information-head">Secure transactions</h3>
42 <p> 42 <p>
43 With @fragments.pepalLogo(), you are not required to give any personal information to any buyer or seller. 43 With @fragments.branding.pepalLogo(), you are not required to give any personal information to any buyer or seller.
44 </p> 44 </p>
45 </div> 45 </div>
46 </div> 46 </div>