aboutsummaryrefslogtreecommitdiff
path: root/app/views/pages/auth/loginForm.scala.html
blob: f35908287e9394a894ea998343548fb68a07a9d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@(loginForm: Form[LoginData])(implicit flash: Flash, token: play.filters.csrf.CSRF.Token)

@templates.ebe("Log in")() {

	<div class="pure-g">
		<div class="pure-u-1 pure-u-lg-1-3 centered">

			<h2>Log in</h2>

			@views.html.fragments.forms.globalErrors(loginForm)

			@helper.form(action = routes.Authentication.loginSubmit(), 'class -> "pure-form") {

				@helper.CSRF.formField

				<fieldset class="pure-group">
					@views.html.fragments.forms.inputField(loginForm("username"), "text", "Username")
					@views.html.fragments.forms.inputField(loginForm("password"), "password", "Password")
				</fieldset>

				<button type="submit" class="pure-button pure-input-1 pure-button-primary">Log in</button>
			}

		</div>
	</div>

}