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

58 lines
2.1 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
2014-07-31 12:07:43 -04:00
h1 #{translate("user_wants_you_to_see_project", {username:sharedProjectData.user_first_name, projectname:sharedProjectData.project_name})}
div #{translate("join_sl_to_view_project")}
2014-06-09 05:19:02 -04:00
else if newTemplateData.templateName !== undefined
2014-07-31 12:07:43 -04:00
h1 #{translate("register_to_edit_template", {templatename:newTemplateData.templateName})}
div #{translate("already_have_sl_account")}
a(href="/login") #{translate("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
2014-07-31 12:07:43 -04:00
h1 #{translate("register")}
form(async-form="register", name="registerForm", action="/register", method="POST", 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-31 12:07:43 -04:00
label(for='email') #{translate("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")
2014-07-31 12:07:43 -04:00
| #{translate("must_be_email_address")}
2014-06-09 05:19:02 -04:00
.form-group
2014-07-31 12:07:43 -04:00
label(for='password') #{translate("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")
2014-07-31 12:07:43 -04:00
| #{translate("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"
)
2014-07-31 12:07:43 -04:00
span(ng-show="!registerForm.inflight") #{translate("register")}
span(ng-show="registerForm.inflight") #{translate("registering")}...