context = window rest = context.JK.Rest() @JamClassEducationLandingPage = React.createClass({ render: () -> loggedIn = context.JK.currentUserId? if this.state.done ctaButtonText = 'sending you in...' else if this.state.processing ctaButtonText = 'hold on...' else if loggedIn ctaButtonText = "SIGN UP" else ctaButtonText = "SIGN UP" if loggedIn register = `` else if this.state.loginErrors? for key, value of this.state.loginErrors break errorText = context.JK.getFullFirstError(key, this.state.loginErrors, {email: 'Email', password: 'Password', 'terms_of_service': 'The terms of service'}) register = `
{errorText}
` `