diff options
Diffstat (limited to 'app/views/fragments')
-rw-r--r-- | app/views/fragments/accountInfos.scala.html | 46 | ||||
-rw-r--r-- | app/views/fragments/branding/ebeLogo.scala.html (renamed from app/views/fragments/ebeLogo.scala.html) | 0 | ||||
-rw-r--r-- | app/views/fragments/branding/ebeSlogan.scala.html (renamed from app/views/fragments/ebeSlogan.scala.html) | 0 | ||||
-rw-r--r-- | app/views/fragments/branding/pepalLogo.scala.html (renamed from app/views/fragments/pepalLogo.scala.html) | 0 | ||||
-rw-r--r-- | app/views/fragments/branding/pepalSlogan.scala.html (renamed from app/views/fragments/pepalSlogan.scala.html) | 0 | ||||
-rw-r--r-- | app/views/fragments/forms/globalErrors.scala.html | 7 | ||||
-rw-r--r-- | app/views/fragments/forms/inputField.scala.html | 10 | ||||
-rw-r--r-- | app/views/fragments/forms/textarea.scala.html | 8 |
8 files changed, 57 insertions, 14 deletions
diff --git a/app/views/fragments/accountInfos.scala.html b/app/views/fragments/accountInfos.scala.html index 711fb40..8fb0aab 100644 --- a/app/views/fragments/accountInfos.scala.html +++ b/app/views/fragments/accountInfos.scala.html | |||
@@ -1,14 +1,32 @@ | |||
1 | <a class="pure-button" href="#"> | 1 | @(accountData: Option[models.Views.Account] = None) |
2 | <i class="fa fa-sign-out fa-lg"></i> | 2 | |
3 | Logout | 3 | @accountData match { |
4 | </a> | 4 | case Some(account) => { |
5 | 5 | <a class="pure-button" href="@routes.Auth.logout()"> | |
6 | <a class="pure-button" href="#"> | 6 | <i class="fa fa-sign-out fa-lg"></i> |
7 | <i class="fa fa-money fa-lg"></i> | 7 | Logout |
8 | -400 000 € | 8 | </a> |
9 | </a> | 9 | |
10 | 10 | <a class="pure-button" href="#"> | |
11 | <a class="pure-button" href="#"> | 11 | <i class="fa fa-money fa-lg"></i> |
12 | <i class="fa fa-user fa-lg"></i> | 12 | @account.equity € |
13 | Mr. Kornada | 13 | </a> |
14 | </a> | 14 | |
15 | <a class="pure-button" href="#"> | ||
16 | <i class="fa fa-user fa-lg"></i> | ||
17 | @account.username | ||
18 | </a> | ||
19 | } | ||
20 | |||
21 | case None => { | ||
22 | <a class="pure-button" href="@routes.Auth.logout()"> | ||
23 | <i class="fa fa-pencil-square-o fa-lg"></i> | ||
24 | Sign up | ||
25 | </a> | ||
26 | |||
27 | <a class="pure-button" href="@routes.Auth.login()"> | ||
28 | <i class="fa fa-sign-in fa-lg"></i> | ||
29 | Log in | ||
30 | </a> | ||
31 | } | ||
32 | } | ||
diff --git a/app/views/fragments/ebeLogo.scala.html b/app/views/fragments/branding/ebeLogo.scala.html index f2b552a..f2b552a 100644 --- a/app/views/fragments/ebeLogo.scala.html +++ b/app/views/fragments/branding/ebeLogo.scala.html | |||
diff --git a/app/views/fragments/ebeSlogan.scala.html b/app/views/fragments/branding/ebeSlogan.scala.html index c0b5332..c0b5332 100644 --- a/app/views/fragments/ebeSlogan.scala.html +++ b/app/views/fragments/branding/ebeSlogan.scala.html | |||
diff --git a/app/views/fragments/pepalLogo.scala.html b/app/views/fragments/branding/pepalLogo.scala.html index a4b75ae..a4b75ae 100644 --- a/app/views/fragments/pepalLogo.scala.html +++ b/app/views/fragments/branding/pepalLogo.scala.html | |||
diff --git a/app/views/fragments/pepalSlogan.scala.html b/app/views/fragments/branding/pepalSlogan.scala.html index a6d6e69..a6d6e69 100644 --- a/app/views/fragments/pepalSlogan.scala.html +++ b/app/views/fragments/branding/pepalSlogan.scala.html | |||
diff --git a/app/views/fragments/forms/globalErrors.scala.html b/app/views/fragments/forms/globalErrors.scala.html new file mode 100644 index 0000000..98dad24 --- /dev/null +++ b/app/views/fragments/forms/globalErrors.scala.html | |||
@@ -0,0 +1,7 @@ | |||
1 | @(form: Form[_ <: Product]) | ||
2 | |||
3 | <div class="flash-message"> | ||
4 | @for(error <- form.globalErrors) { | ||
5 | <div class="error">@error.message</div> | ||
6 | } | ||
7 | </div> | ||
diff --git a/app/views/fragments/forms/inputField.scala.html b/app/views/fragments/forms/inputField.scala.html new file mode 100644 index 0000000..7de0e3b --- /dev/null +++ b/app/views/fragments/forms/inputField.scala.html | |||
@@ -0,0 +1,10 @@ | |||
1 | @(field: Field, inputType: String, label: String) | ||
2 | |||
3 | <input | ||
4 | class="pure-input-1 @if(field.hasErrors) {input-invalid}" | ||
5 | type="@inputType" | ||
6 | placeholder="@label" | ||
7 | name="@field.name" | ||
8 | id="@field.name" | ||
9 | value="@field.value" | ||
10 | > | ||
diff --git a/app/views/fragments/forms/textarea.scala.html b/app/views/fragments/forms/textarea.scala.html new file mode 100644 index 0000000..44904ca --- /dev/null +++ b/app/views/fragments/forms/textarea.scala.html | |||
@@ -0,0 +1,8 @@ | |||
1 | @(field: Field, label: String) | ||
2 | |||
3 | <textarea | ||
4 | class="pure-input-1 @if(field.hasErrors) {input-invalid}" | ||
5 | placeholder="@label" | ||
6 | name="@field.name" | ||
7 | id="@field.name" | ||
8 | >@field.value</textarea> | ||