overleaf/services/web/app/views/user/register.jade

57 lines
1.9 KiB
Text
Raw Normal View History

2014-02-12 05:23:40 -05:00
extends ../layout
block content
2014-06-09 05:19:02 -04:00
.content.content-alt
.container
.row
.registration_message
if sharedProjectData.user_first_name !== undefined
h1 #{sharedProjectData.user_first_name} would like you to view '#{sharedProjectData.project_name}'
div Join ShareLaTeX to view this project
else if newTemplateData.templateName !== undefined
h1 Please register to edit the '#{newTemplateData.templateName}' template
div Already have a ShareLaTeX account?
2014-06-09 05:19:02 -04:00
a(href="/login") Login here
2014-02-12 05:23:40 -05:00
2014-06-09 05:19:02 -04:00
.row
.col-md-6.col-md-offset-3.col-lg-4.col-lg-offset-4
.card
.page-header
h1 Register
form(async-form="register", name="registerForm", action="/register", ng-cloak)
2014-06-09 05:19:02 -04:00
input(name='_csrf', type='hidden', value=csrfToken)
input(name='redir', type='hidden', value=redir)
2014-06-20 06:15:25 -04:00
form-messages(for="registerForm")
2014-06-09 05:19:02 -04:00
.form-group
label(for='email') Email
2014-06-18 10:23:00 -04:00
input.form-control(
type='email',
name='email',
placeholder="email@example.com"
required,
2014-06-20 06:15:25 -04:00
ng-model="email",
ng-init="email = #{JSON.stringify(new_email)}",
ng-model-options="{ updateOn: 'blur' }",
focus="true"
2014-06-18 10:23:00 -04:00
)
span.small.text-primary(ng-show="registerForm.email.$invalid && registerForm.email.$dirty")
| Must be an email address
2014-06-09 05:19:02 -04:00
.form-group
label(for='password') Password
2014-06-18 10:23:00 -04:00
input.form-control(
type='password',
name='password',
placeholder="********",
required,
ng-model="password"
)
span.small.text-primary(ng-show="registerForm.password.$invalid && registerForm.password.$dirty")
| Required
2014-06-09 05:19:02 -04:00
.actions
2014-06-18 10:23:00 -04:00
button.btn-primary.btn(
type='submit'
ng-disabled="registerForm.inflight"
)
span(ng-show="!registerForm.inflight") Register
span(ng-show="registerForm.inflight") Registering...