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")}
|
2014-11-17 09:55:28 -05:00
|
|
|
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",
|
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")
|
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'
|
2014-07-11 12:08:19 -04:00
|
|
|
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")}...
|