codecombat/app/templates/core/create-account-modal/create-account-modal.jade

59 lines
1.8 KiB
Text
Raw Normal View History

2016-06-07 17:51:41 -04:00
extends /templates/core/modal-base-flat
block modal-header
//-
This allows for the header color to switch without the subview templates
needing to contain the header
2016-06-30 18:32:58 -04:00
.modal-header(class=view.signupState.get('path'))
span.glyphicon.glyphicon-remove.button.close(data-dismiss="modal", aria-hidden="true")
2016-06-07 17:51:41 -04:00
+modal-header-content
mixin modal-header-content
h3
2016-06-30 18:32:58 -04:00
case view.signupState.get('path')
2016-06-07 17:51:41 -04:00
when 'student'
2016-06-30 18:32:58 -04:00
span(data-i18n="signup.create_student_header")
2016-06-07 17:51:41 -04:00
when 'teacher'
2016-06-30 18:32:58 -04:00
span(data-i18n="signup.create_teacher_header")
2016-06-07 17:51:41 -04:00
when 'individual'
2016-06-30 18:32:58 -04:00
span(data-i18n="signup.create_individual_header")
2016-06-07 17:51:41 -04:00
default
span(data-i18n="login.sign_up")
2016-06-07 17:51:41 -04:00
//-
This is where the subviews (screens) are hooked up.
Most subview templates have a .modal-body at their root, but this is inconsistent and needs organization.
block modal-body
2016-06-30 18:32:58 -04:00
case view.signupState.get('screen')
2016-06-07 17:51:41 -04:00
when 'choose-account-type'
#choose-account-type-view
when 'segment-check'
#segment-check-view
when 'basic-info'
#basic-info-view
when 'coppa-deny'
#coppa-deny-view
when 'sso-already-exists'
#single-sign-on-already-exists-view
when 'sso-confirm'
#single-sign-on-confirm-view
when 'extras'
#extras-view
2016-06-30 18:32:58 -04:00
when 'confirmation'
#confirmation-view
2016-06-07 17:51:41 -04:00
block modal-footer
//-
This allows for the footer color to switch without the subview templates
needing to contain the footer
2016-06-30 18:32:58 -04:00
.modal-footer(class=view.signupState.get('path'))
2016-06-07 17:51:41 -04:00
+modal-footer-content
mixin modal-footer-content
2016-06-30 18:32:58 -04:00
if view.signupState.get('screen') !== 'confirmation'
.modal-footer-content
.small-details
span.spr(data-i18n="signup.login_switch")
a.login-link
span(data-i18n="signup.sign_in")