mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 05:41:33 +02:00
Auto focus login, register and password fields
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user