Auto focus login, register and password fields

This commit is contained in:
James Allen 2014-07-23 11:18:42 +01:00
parent 96e99a5cc0
commit cca50cf64c
4 changed files with 8 additions and 4 deletions

View file

@ -19,7 +19,8 @@ block content
required,
placeholder='email@example.com',
ng-model="email",
ng-model-options="{ updateOn: 'blur' }"
ng-model-options="{ updateOn: 'blur' }",
autofocus
)
span.small.text-primary(ng-show="loginForm.email.$invalid && loginForm.email.$dirty")
| Must be an email address

View file

@ -26,7 +26,8 @@ block content
name='email',
placeholder='email@example.com',
required,
ng-model="email"
ng-model="email",
autofocus
)
span.small.text-primary(
ng-show="passwordResetForm.email.$invalid && passwordResetForm.email.$dirty"

View file

@ -31,7 +31,8 @@ block content
required,
ng-model="email",
ng-init="email = #{JSON.stringify(new_email)}",
ng-model-options="{ updateOn: 'blur' }"
ng-model-options="{ updateOn: 'blur' }",
autofocus
)
span.small.text-primary(ng-show="registerForm.email.$invalid && registerForm.email.$dirty")
| Must be an email address

View file

@ -26,7 +26,8 @@ block content
name='password',
placeholder='new password',
required,
ng-model="password"
ng-model="password",
autofocus
)
span.small.text-primary(
ng-show="passwordResetForm.password.$invalid && passwordResetForm.password.$dirty"