2016-02-25 18:24:16 -05:00
|
|
|
.modal-dialog
|
|
|
|
.modal-content
|
|
|
|
img(src="/images/pages/modal/auth/signup-background.png", draggable="false").auth-modal-background
|
|
|
|
h1(data-i18n="login.sign_up")
|
|
|
|
|
|
|
|
div#close-modal
|
|
|
|
span.glyphicon.glyphicon-remove
|
|
|
|
|
2016-03-15 16:50:33 -04:00
|
|
|
form.auth-form-content
|
2016-03-10 14:37:31 -05:00
|
|
|
if view.options.showRequiredError
|
|
|
|
#required-error-alert.alert.alert-success
|
|
|
|
span(data-i18n="signup.required")
|
2016-02-25 18:24:16 -05:00
|
|
|
if view.options.showSignupRationale
|
2016-03-10 14:37:31 -05:00
|
|
|
#signup-rationale-alert.alert.alert-info
|
2016-02-25 18:24:16 -05:00
|
|
|
span(data-i18n="play_level.victory_sign_up_poke")
|
|
|
|
|
|
|
|
#email-password-row.row
|
|
|
|
.col-md-6
|
2016-03-15 16:50:33 -04:00
|
|
|
.form-group
|
|
|
|
label.control-label(for="email")
|
|
|
|
span(data-i18n="general.email")
|
|
|
|
| :
|
|
|
|
.input-border
|
|
|
|
input#email.input-large.form-control(name="email", type="email", value=view.previousFormInputs.email, tabindex=1)
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
label.control-label(for="password")
|
|
|
|
span(data-i18n="general.password")
|
|
|
|
| :
|
|
|
|
.input-border
|
|
|
|
input#password.input-large.form-control(name="password", type="password", value=view.previousFormInputs.password, tabindex=2)
|
2016-02-25 18:24:16 -05:00
|
|
|
|
|
|
|
.col-md-6
|
|
|
|
.auth-network-logins.text-center
|
|
|
|
strong(data-i18n="signup.or_sign_up_with")
|
2016-06-25 02:18:52 -04:00
|
|
|
button#facebook-signup-btn.btn.btn-primary.btn-lg.btn-illustrated.network-login(type="button", disabled=true)
|
2016-02-25 18:24:16 -05:00
|
|
|
img.network-logo(src="/images/pages/community/logo_facebook.png", draggable="false")
|
|
|
|
span.sign-in-blurb(data-i18n="login.sign_in_with_facebook")
|
2016-06-25 02:18:52 -04:00
|
|
|
button#gplus-signup-btn.btn.btn-danger.btn-lg.btn-illustrated.network-login(type="button", disabled=true)
|
2016-02-25 18:24:16 -05:00
|
|
|
img.network-logo(src="/images/pages/community/logo_g+.png", draggable="false")
|
|
|
|
span.sign-in-blurb(data-i18n="login.sign_in_with_gplus")
|
|
|
|
.gplus-login-wrapper
|
|
|
|
.gplus-login-button
|
|
|
|
|
|
|
|
#gplus-logged-in-row.row.text-center.hide
|
|
|
|
h2(data-i18n="signup.connected_gplus_header")
|
|
|
|
p(data-i18n="signup.connected_gplus_p")
|
|
|
|
|
|
|
|
#gplus-account-exists-row.row.text-center.hide
|
|
|
|
h2(data-i18n="signup.gplus_exists")
|
|
|
|
a.btn.btn-primary#gplus-login-btn(data-i18n="login.log_in")
|
|
|
|
|
|
|
|
#facebook-logged-in-row.row.text-center.hide
|
|
|
|
h2(data-i18n="signup.connected_facebook_header")
|
|
|
|
p(data-i18n="signup.connected_facebook_p")
|
|
|
|
|
|
|
|
#facebook-account-exists-row.row.text-center.hide
|
|
|
|
h2(data-i18n="signup.facebook_exists")
|
|
|
|
a.btn.btn-primary#facebook-login-btn(data-i18n="login.log_in")
|
|
|
|
|
2016-03-15 16:50:33 -04:00
|
|
|
.row
|
|
|
|
.col-md-6
|
|
|
|
.form-group
|
|
|
|
label.control-label(for="name")
|
2016-04-25 22:51:26 -04:00
|
|
|
span(data-i18n="general.username")
|
2016-03-15 16:50:33 -04:00
|
|
|
| :
|
|
|
|
.input-border
|
|
|
|
if me.get('name')
|
|
|
|
input#name.input-large.form-control(name="name", type="text", value=me.get('name'), tabindex=3)
|
|
|
|
else
|
|
|
|
input#name.input-large.form-control(name="name", type="text", value="", placeholder="e.g. Alex W the Skater", tabindex=3)
|
|
|
|
|
|
|
|
.form-group
|
2016-04-25 22:51:26 -04:00
|
|
|
label.control-label(for="birthday-input")
|
|
|
|
span(data-i18n="signup.birthday")
|
|
|
|
| :
|
2016-03-15 16:50:33 -04:00
|
|
|
.input-border
|
2016-04-28 14:28:43 -04:00
|
|
|
select#birthday-month-input.input-large.form-control(name="birthdayMonth", value=view.previousFormInputs.birthdayMonth || '', tabindex=4, style="width: 106px; float: left")
|
2016-04-26 15:28:48 -04:00
|
|
|
option(value='',data-i18n="calendar.month")
|
2016-04-25 22:51:26 -04:00
|
|
|
for name, val in ['january','february','march','april','may','june','july','august','september','october','november','december']
|
|
|
|
option(data-i18n="calendar.#{name}" value=val+1)
|
2016-04-26 17:35:07 -04:00
|
|
|
select#birthday-day-input.input-large.form-control(name="birthdayDay", value=view.previousFormInputs.birthdayDay || '', tabindex=5, style="width: 75px; float: left")
|
2016-04-26 15:28:48 -04:00
|
|
|
option(value='',data-i18n="calendar.day")
|
2016-04-25 22:51:26 -04:00
|
|
|
for dummy, val in new Array(31)
|
|
|
|
option #{val+1}
|
2016-04-26 17:35:07 -04:00
|
|
|
select#birthday-year-input.input-large.form-control(name="birthdayYear", value=view.previousFormInputs.birthdayMonth || '', tabindex=6, style="width: 90px;")
|
2016-04-26 15:28:48 -04:00
|
|
|
option(value='',data-i18n="calendar.year")
|
2016-04-26 17:35:07 -04:00
|
|
|
- var startYear = new Date().getFullYear() - 1
|
|
|
|
for dummy, val in new Array(100)
|
|
|
|
option #{startYear-val}
|
2016-04-25 22:51:26 -04:00
|
|
|
|
2016-03-15 16:50:33 -04:00
|
|
|
.form-group
|
|
|
|
label.control-label(for="school-input")
|
|
|
|
span.spr(data-i18n="courses.class_code")
|
|
|
|
em.optional-note
|
|
|
|
| (
|
|
|
|
span(data-i18n="signup.optional")
|
|
|
|
| ):
|
|
|
|
.input-border
|
2016-04-25 22:51:26 -04:00
|
|
|
input#class-code-input.input-large.form-control(name="classCode", value=view.previousFormInputs.classCode || '', tabindex=7)
|
2016-03-15 16:50:33 -04:00
|
|
|
|
|
|
|
.col-md-6
|
|
|
|
.form-group.checkbox
|
|
|
|
label.control-label(for="subscribe")
|
|
|
|
.input-border
|
|
|
|
input#subscribe(type="checkbox", checked='checked')
|
|
|
|
span.custom-checkbox
|
|
|
|
.glyphicon.glyphicon-ok
|
|
|
|
span(data-i18n="signup.email_announcements")
|
|
|
|
|
|
|
|
.well(data-i18n="signup.hey_students")
|
2016-02-25 18:24:16 -05:00
|
|
|
|
|
|
|
|
2016-03-15 16:50:33 -04:00
|
|
|
input#signup-button.btn.btn-lg.btn-illustrated.btn-block.btn-success(value=translate("signup.sign_up"), type="submit")
|
2016-02-25 18:24:16 -05:00
|
|
|
|
|
|
|
.extra-pane
|
|
|
|
.switch-explanation(data-i18n="signup.login_switch")
|
|
|
|
.btn.btn-lg.btn-illustrated.btn-warning#switch-to-login-btn(data-i18n="login.log_in")
|