2016-06-07 17:51:41 -04:00
|
|
|
form#basic-info-form.modal-body.basic-info
|
|
|
|
.modal-body-content
|
|
|
|
.auth-network-logins.text-center
|
|
|
|
h4
|
|
|
|
span(data-i18n="signup.connect_with")
|
2016-06-30 18:32:58 -04:00
|
|
|
a#facebook-signup-btn.btn.btn-primary.btn-lg.btn-illustrated.network-login(disabled=!view.signupState.get('facebookEnabled'), data-sso-used="facebook")
|
2016-06-07 17:51:41 -04:00
|
|
|
img.network-logo(src="/images/pages/modal/auth/facebook_sso_button.png", draggable="false", width="175", height="40")
|
|
|
|
span.sign-in-blurb(data-i18n="login.sign_in_with_facebook")
|
2016-06-30 18:32:58 -04:00
|
|
|
a#gplus-signup-btn.btn.btn-danger.btn-lg.btn-illustrated.network-login(disabled=!view.signupState.get('gplusEnabled'), data-sso-used="gplus")
|
|
|
|
img.network-logo(src="/images/pages/modal/auth/gplus_sso_button.png", draggable="false", width="175", height="40")
|
2016-06-07 17:51:41 -04:00
|
|
|
span.sign-in-blurb(data-i18n="login.sign_in_with_gplus")
|
|
|
|
.gplus-login-wrapper
|
|
|
|
.gplus-login-button
|
|
|
|
|
|
|
|
.hr-text
|
|
|
|
hr
|
2016-06-30 18:32:58 -04:00
|
|
|
span(data-i18n="general.or")
|
2016-06-07 17:51:41 -04:00
|
|
|
|
2016-06-30 18:32:58 -04:00
|
|
|
div.form-container
|
|
|
|
if ['student', 'teacher'].indexOf(view.signupState.get('path')) !== -1
|
2016-06-07 17:51:41 -04:00
|
|
|
.row.full-name
|
2016-06-30 18:32:58 -04:00
|
|
|
.col-xs-offset-3.col-xs-5
|
|
|
|
.form-group
|
|
|
|
label.control-label(for="first-name-input")
|
|
|
|
span(data-i18n="general.first_name")
|
|
|
|
input#first-name-input.form-control.input-lg(name="firstName")
|
|
|
|
.col-xs-4
|
|
|
|
.last-initial.form-group
|
|
|
|
label.control-label(for="last-name-input")
|
|
|
|
span(data-i18n="general.last_initial")
|
|
|
|
input#last-name-input.form-control.input-lg(name="lastName" maxlength="1")
|
|
|
|
.form-group
|
|
|
|
.row
|
|
|
|
.col-xs-5.col-xs-offset-3
|
|
|
|
label.control-label(for="email-input")
|
|
|
|
span(data-i18n="share_progress_modal.form_label")
|
2016-07-13 19:50:03 -04:00
|
|
|
if view.signupState.get('path') === 'student'
|
|
|
|
.help-block.optional-help-block.pull-right
|
|
|
|
span(data-i18n="signup.optional")
|
2016-07-26 14:54:02 -04:00
|
|
|
input.form-control.input-lg#email-input(name="email" type="email")
|
|
|
|
.col-xs-4.email-check.fancy-error
|
2016-06-30 18:32:58 -04:00
|
|
|
- var checkEmailState = view.state.get('checkEmailState');
|
|
|
|
if checkEmailState === 'checking'
|
|
|
|
span.small(data-i18n="signup.checking")
|
|
|
|
if checkEmailState === 'exists'
|
|
|
|
span.small
|
|
|
|
span.text-burgandy.glyphicon.glyphicon-remove-circle
|
|
|
|
=" "
|
|
|
|
span(data-i18n="signup.account_exists")
|
|
|
|
=" "
|
|
|
|
a.login-link(data-i18n="signup.sign_in")
|
|
|
|
|
|
|
|
if checkEmailState === 'available'
|
|
|
|
span.small
|
|
|
|
span.text-forest.glyphicon.glyphicon-ok-circle
|
|
|
|
=" "
|
|
|
|
span(data-i18n="signup.email_good")
|
2016-07-13 19:50:03 -04:00
|
|
|
|
2016-06-30 18:32:58 -04:00
|
|
|
.form-group
|
|
|
|
.row
|
2016-07-26 14:54:02 -04:00
|
|
|
.col-xs-5.col-xs-offset-3
|
2016-06-30 18:32:58 -04:00
|
|
|
label.control-label(for="username-input")
|
|
|
|
span(data-i18n="general.username")
|
|
|
|
input.form-control.input-lg#username-input(name="name")
|
2016-07-26 14:54:02 -04:00
|
|
|
.col-xs-4.name-check.fancy-error
|
2016-06-30 18:32:58 -04:00
|
|
|
- var checkNameState = view.state.get('checkNameState');
|
|
|
|
if checkNameState === 'checking'
|
|
|
|
span.small(data-i18n="signup.checking")
|
|
|
|
if checkNameState === 'exists'
|
|
|
|
span.small
|
|
|
|
span.text-burgandy.glyphicon.glyphicon-remove-circle
|
|
|
|
=" "
|
|
|
|
span= view.state.get('suggestedNameText')
|
|
|
|
if checkNameState === 'available'
|
|
|
|
span.small
|
|
|
|
span.text-forest.glyphicon.glyphicon-ok-circle
|
|
|
|
=" "
|
|
|
|
span(data-i18n="signup.name_available")
|
2016-07-13 19:50:03 -04:00
|
|
|
|
2016-06-30 18:32:58 -04:00
|
|
|
.form-group
|
|
|
|
.row
|
2016-07-26 14:54:02 -04:00
|
|
|
.col-xs-5.col-xs-offset-3
|
2016-06-30 18:32:58 -04:00
|
|
|
label.control-label(for="password-input")
|
|
|
|
span(data-i18n="general.password")
|
|
|
|
input.form-control.input-lg#password-input(name="password" type="password")
|
2016-07-13 19:50:03 -04:00
|
|
|
|
2016-06-30 18:32:58 -04:00
|
|
|
.form-group.checkbox.subscribe
|
|
|
|
.row
|
|
|
|
.col-xs-7.col-xs-offset-3
|
|
|
|
.checkbox
|
|
|
|
label
|
|
|
|
input#subscribe-input(type="checkbox" checked="checked" name="subscribe")
|
|
|
|
span(data-i18n="signup.email_announcements")
|
|
|
|
|
|
|
|
.error-area
|
|
|
|
- var error = view.state.get('error');
|
|
|
|
if error
|
|
|
|
.row
|
|
|
|
.col-xs-7.col-xs-offset-3
|
|
|
|
.alert.alert-danger= error
|
2016-06-07 17:51:41 -04:00
|
|
|
|
|
|
|
// In reverse order for tabbing purposes
|
|
|
|
.history-nav-buttons
|
2016-06-30 18:32:58 -04:00
|
|
|
button#create-account-btn.next-button.btn.btn-lg.btn-navy(type='submit')
|
|
|
|
span(data-i18n="signup.create_account")
|
2016-06-07 17:51:41 -04:00
|
|
|
|
|
|
|
button.back-button.btn.btn-lg.btn-navy-alt(type='button')
|
2016-06-30 18:32:58 -04:00
|
|
|
span(data-i18n="common.back")
|