mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
47 lines
1.5 KiB
Text
47 lines
1.5 KiB
Text
extends ../layout
|
|
|
|
block vars
|
|
- metadata = { viewport: true }
|
|
|
|
block content
|
|
.content.content-alt
|
|
.container
|
|
.row
|
|
.col-md-6.col-md-offset-3.col-lg-4.col-lg-offset-4
|
|
.card
|
|
.page-header
|
|
h1 #{translate("log_in")}
|
|
form(async-form="login", name="loginForm", action='/login', method="POST", ng-cloak)
|
|
input(name='_csrf', type='hidden', value=csrfToken)
|
|
form-messages(for="loginForm")
|
|
.form-group
|
|
input.form-control(
|
|
type='email',
|
|
name='email',
|
|
required,
|
|
placeholder='email@example.com',
|
|
ng-model="email",
|
|
ng-model-options="{ updateOn: 'blur' }",
|
|
ng-init="email = "+JSON.stringify(email),
|
|
focus="true"
|
|
)
|
|
span.small.text-primary(ng-show="loginForm.email.$invalid && loginForm.email.$dirty")
|
|
| #{translate("must_be_email_address")}
|
|
.form-group
|
|
input.form-control(
|
|
type='password',
|
|
name='password',
|
|
required,
|
|
placeholder='********',
|
|
ng-model="password"
|
|
)
|
|
span.small.text-primary(ng-show="loginForm.password.$invalid && loginForm.password.$dirty")
|
|
| #{translate("required")}
|
|
.actions
|
|
button.btn-primary.btn(
|
|
type='submit',
|
|
ng-disabled="loginForm.inflight"
|
|
)
|
|
span(ng-show="!loginForm.inflight") #{translate("login")}
|
|
span(ng-show="loginForm.inflight") #{translate("logging_in")}...
|
|
a.pull-right(href='/user/password/reset') #{translate("forgot_your_password")}?
|