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
|
2014-07-21 12:32:16 -04:00
|
|
|
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
|
2014-07-11 12:08:19 -04:00
|
|
|
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
|
2014-07-11 12:08:19 -04:00
|
|
|
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",
|
2014-07-09 09:53:30 -04:00
|
|
|
ng-init="email = #{JSON.stringify(new_email)}",
|
2014-07-23 06:18:42 -04:00
|
|
|
ng-model-options="{ updateOn: 'blur' }",
|
2014-07-24 09:57:53 -04:00
|
|
|
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
|
2014-07-11 12:08:19 -04:00
|
|
|
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'
|
2014-07-11 12:08:19 -04:00
|
|
|
ng-disabled="registerForm.inflight"
|
|
|
|
)
|
|
|
|
span(ng-show="!registerForm.inflight") Register
|
|
|
|
span(ng-show="registerForm.inflight") Registering...
|