aboutsummaryrefslogtreecommitdiff
path: root/app/views/pages/auth/loginForm.scala.html
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/pages/auth/loginForm.scala.html')
-rw-r--r--app/views/pages/auth/loginForm.scala.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/app/views/pages/auth/loginForm.scala.html b/app/views/pages/auth/loginForm.scala.html
new file mode 100644
index 0000000..f359082
--- /dev/null
+++ b/app/views/pages/auth/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.Authentication.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}