2014-12-06 20:27:02 -05:00
|
|
|
.modal-dialog
|
|
|
|
.modal-content
|
2014-05-22 14:24:35 -04:00
|
|
|
|
2014-12-06 20:27:02 -05:00
|
|
|
if mode === 'login'
|
|
|
|
img(src="/images/pages/modal/auth/login-background.png", draggable="false").auth-modal-background
|
2014-05-22 14:24:35 -04:00
|
|
|
else
|
2014-12-06 20:27:02 -05:00
|
|
|
img(src="/images/pages/modal/auth/signup-background.png", draggable="false").auth-modal-background
|
2014-05-22 14:24:35 -04:00
|
|
|
|
2014-12-06 20:27:02 -05:00
|
|
|
if mode === 'login'
|
|
|
|
h1(data-i18n="login.log_in") Log In
|
|
|
|
if mode === 'signup'
|
2014-12-08 00:32:09 -05:00
|
|
|
h1(data-i18n="login.sign_up") Create Account
|
2014-05-22 14:24:35 -04:00
|
|
|
|
2014-12-06 20:27:02 -05:00
|
|
|
div#close-modal
|
|
|
|
span.glyphicon.glyphicon-remove
|
2014-05-22 14:24:35 -04:00
|
|
|
|
|
|
|
|
2014-12-06 20:27:02 -05:00
|
|
|
.auth-form-content
|
2014-05-22 14:24:35 -04:00
|
|
|
|
2014-12-06 20:27:02 -05:00
|
|
|
if showRequiredError
|
|
|
|
.alert.alert-success
|
|
|
|
span(data-i18n="signup.required") You need to log in before you can that way.
|
2015-04-08 21:31:13 -04:00
|
|
|
else if mode === 'signup' && showSignupRationale
|
|
|
|
.alert.alert-info
|
|
|
|
span(data-i18n="play_level.victory_sign_up_poke") Want to save your code? Create a free account!
|
2014-12-06 20:27:02 -05:00
|
|
|
|
|
|
|
form.form
|
|
|
|
.form-group
|
|
|
|
label.control-label(for="email")
|
|
|
|
span(data-i18n="general.email") Email
|
|
|
|
| :
|
|
|
|
.input-border
|
|
|
|
input#email.input-large.form-control(name="email", type="email", value=formValues.email)
|
2014-07-10 14:50:16 -04:00
|
|
|
.form-group
|
2014-12-06 20:27:02 -05:00
|
|
|
if mode === 'login'
|
|
|
|
div#recover-account-wrapper
|
2014-12-29 10:38:26 -05:00
|
|
|
a(data-toggle="coco-modal", data-target="core/RecoverModal", data-i18n="login.forgot_password")#link-to-recover Forgot your password?
|
2014-12-06 20:27:02 -05:00
|
|
|
label.control-label(for="password")
|
|
|
|
span(data-i18n="general.password") Password
|
|
|
|
| :
|
|
|
|
.input-border
|
|
|
|
input#password.input-large.form-control(name="password", type="password", value=formValues.password)
|
2014-05-22 14:24:35 -04:00
|
|
|
|
2014-12-06 20:27:02 -05:00
|
|
|
if mode === 'signup'
|
|
|
|
.form-group
|
|
|
|
label.control-label(for="name")
|
|
|
|
span(data-i18n="general.name") Name
|
|
|
|
| :
|
|
|
|
.input-border
|
|
|
|
if me.get('name')
|
|
|
|
input#name.input-large.form-control(name="name", type="text", value="#{me.get('name')}")
|
|
|
|
else
|
|
|
|
input#name.input-large.form-control(name="name", type="text", value="", placeholder="Anoner")
|
|
|
|
.form-group.checkbox
|
|
|
|
label.control-label(for="subscribe")
|
|
|
|
.input-border
|
|
|
|
input#subscribe(name="subscribe", type="checkbox", checked='checked')
|
|
|
|
span.custom-checkbox
|
|
|
|
.glyphicon.glyphicon-ok
|
|
|
|
span(data-i18n="signup.email_announcements") Receive announcements by email
|
2014-05-22 14:24:35 -04:00
|
|
|
|
2014-12-06 20:27:02 -05:00
|
|
|
if mode === 'login'
|
2014-12-06 21:18:42 -05:00
|
|
|
input.btn.btn-lg.btn-illustrated.btn-block#login-button(value=translate("login.log_in"), type="submit")
|
2014-12-06 20:27:02 -05:00
|
|
|
else if mode === 'signup'
|
2014-12-06 21:18:42 -05:00
|
|
|
input.btn.btn-lg.btn-illustrated.btn-block#signup-button(value=translate("signup.sign_up"), type="submit")
|
2014-05-22 14:24:35 -04:00
|
|
|
|
2014-12-06 20:27:02 -05:00
|
|
|
.wait.secret
|
|
|
|
if mode === 'login'
|
|
|
|
h3(data-i18n="login.logging_in") Logging In
|
|
|
|
if mode === 'signup'
|
|
|
|
h3(data-i18n="signup.creating") Creating Account...
|
2014-05-22 14:24:35 -04:00
|
|
|
|
2014-12-06 20:27:02 -05:00
|
|
|
.auth-network-logins
|
2014-11-29 13:52:46 -05:00
|
|
|
// GitHub login too buggy to survive
|
|
|
|
//div.network-login
|
|
|
|
// btn.btn.btn-sm.github-login-button#github-login-button
|
|
|
|
// img(src="/images/pages/modal/auth/github_icon.png")
|
|
|
|
// | GitHub
|
2014-12-06 20:27:02 -05:00
|
|
|
.btn.btn-primary.btn-lg.btn-illustrated.network-login
|
|
|
|
img.network-logo(src="/images/pages/community/logo_facebook.png", draggable="false")
|
|
|
|
span.sign-in-blurb(data-i18n="login.sign_in_with_facebook") Sign in with Facebook
|
|
|
|
.facebook-login-wrapper
|
|
|
|
.fb-login-button(data-show-faces="false", data-width="200", data-max-rows="1", data-scope="email")
|
2015-01-14 17:15:29 -05:00
|
|
|
.btn.btn-danger.btn-lg.btn-illustrated.network-login
|
|
|
|
img.network-logo(src="/images/pages/community/logo_g+.png", draggable="false")
|
|
|
|
span.sign-in-blurb(data-i18n="login.sign_in_with_gplus") Sign in with G+
|
|
|
|
.gplus-login-wrapper
|
|
|
|
.gplus-login-button#gplus-login-button
|
2014-12-06 20:27:02 -05:00
|
|
|
|
|
|
|
.extra-pane
|
|
|
|
if mode === 'login'
|
|
|
|
.switch-explanation(data-i18n="login.signup_switch") Want to create an account?
|
|
|
|
.btn.btn-default.btn-lg.btn-illustrated#switch-to-signup-button(data-i18n="login.sign_up") Create Account
|
|
|
|
else if mode === 'signup'
|
|
|
|
.switch-explanation(data-i18n="signup.login_switch") Already have an account?
|
|
|
|
.btn.btn-default.btn-lg.btn-illustrated#switch-to-login-button(data-i18n="login.log_in")
|