mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 10:06:08 -05:00
61 lines
2.5 KiB
Text
61 lines
2.5 KiB
Text
extends /templates/modal/modal_base
|
|
|
|
block modal-header-content
|
|
if mode === 'login'
|
|
h3(data-i18n="login.log_in") Log In
|
|
if mode === 'signup'
|
|
if title === 'short'
|
|
h3(data-i18n="login.sign_up") Create Account
|
|
else
|
|
h3(data-i18n="signup.create_account_title") Create Account to Save Progress
|
|
|
|
block modal-body-content
|
|
|
|
if showRequiredError
|
|
.alert.alert-success
|
|
span(data-i18n="signup.required") You need to log in before you can that way.
|
|
|
|
else if mode === 'signup' && descriptionOn === "yes"
|
|
p(data-i18n="signup.description") It's free. Just need a couple things and you'll be good to go:
|
|
|
|
form.form
|
|
.form-group
|
|
label.control-label(for="email", data-i18n="general.email") Email
|
|
input#email.input-large.form-control(name="email", type="email", value=formValues.email)
|
|
.form-group
|
|
label.control-label(for="password", data-i18n="general.password") Password
|
|
input#password.input-large.form-control(name="password", type="password", value=formValues.password)
|
|
|
|
if mode === 'signup'
|
|
.form-group.checkbox
|
|
label.control-label(for="subscribe")
|
|
input#subscribe(name="subscribe", type="checkbox", checked='checked')
|
|
span(data-i18n="signup.email_announcements") Receive announcements by email
|
|
.form-group.checkbox
|
|
label.control-label(for="confirm-age")
|
|
input#confirm-age(name="confirm-age", type="checkbox", checked='checked')
|
|
span(data-i18n="signup.coppa") 13+ or non-USA
|
|
a(href="https://en.wikipedia.org/wiki/Children's_Online_Privacy_Protection_Act", data-i18n="signup.coppa_why", target="_blank") (Why?)
|
|
|
|
if mode === 'login'
|
|
input.btn.btn-info.btn-large#login-button(value=translate("login.log_in"), type="submit")
|
|
.btn.btn-default.btn-large#switch-to-signup-button(data-i18n="login.sign_up") Create Account
|
|
if mode === 'signup'
|
|
input.btn.btn-info.btn-large#signup-button(value=translate("signup.sign_up"), type="submit")
|
|
|
|
|
|
block modal-body-wait-content
|
|
|
|
if mode === 'login'
|
|
h3(data-i18n="login.logging_in") Logging In
|
|
if mode === 'signup'
|
|
h3(data-i18n="signup.creating") Creating Account...
|
|
|
|
block modal-footer
|
|
.modal-footer
|
|
div.network-login
|
|
.fb-login-button(data-show-faces="false", data-width="200", data-max-rows="1", data-scope="email")
|
|
div.network-login
|
|
.gplus-login-button#gplus-login-button
|
|
div#recover-account-wrapper
|
|
a(data-toggle="coco-modal", data-target="modal/recover", data-i18n="login.recover")#link-to-recover recover account
|