2016-06-07 14:51:41 -07: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 15:32:58 -07:00
.modal-header(class=view.signupState.get('path'))
span.glyphicon.glyphicon-remove.button.close(data-dismiss="modal", aria-hidden="true")
2016-06-07 14:51:41 -07:00
+modal-header-content
mixin modal-header-content
h3
2016-06-30 15:32:58 -07:00
case view.signupState.get('path')
2016-06-07 14:51:41 -07:00
when 'student'
2016-06-30 15:32:58 -07:00
span(data-i18n="signup.create_student_header")
2016-06-07 14:51:41 -07:00
when 'teacher'
2016-06-30 15:32:58 -07:00
span(data-i18n="signup.create_teacher_header")
2016-06-07 14:51:41 -07:00
when 'individual'
2016-06-30 15:32:58 -07:00
span(data-i18n="signup.create_individual_header")
2016-06-07 14:51:41 -07:00
default
2016-09-08 22:48:28 +01:00
span(data-i18n="login.sign_up")
2016-06-07 14:51:41 -07: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 15:32:58 -07:00
case view.signupState.get('screen')
2016-06-07 14:51:41 -07: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
2016-08-05 14:41:29 -07:00
when 'extras'
#extras-view
2016-06-30 15:32:58 -07:00
when 'confirmation'
#confirmation-view
2016-06-07 14:51:41 -07:00
block modal-footer
//-
This allows for the footer color to switch without the subview templates
needing to contain the footer
2016-06-30 15:32:58 -07:00
.modal-footer(class=view.signupState.get('path'))
2016-06-07 14:51:41 -07:00
+modal-footer-content
mixin modal-footer-content
2016-06-30 15:32:58 -07: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")