'use strict'; import React from 'react'; import Router from 'react-router'; import GlobalNotificationModel from '../models/global_notification_model'; import GlobalNotificationActions from '../actions/global_notification_actions'; import Form from './ascribe_forms/form'; import Property from './ascribe_forms/property'; import InputCheckbox from './ascribe_forms/input_checkbox'; import apiUrls from '../constants/api_urls'; let SignupContainer = React.createClass({ mixins: [Router.Navigation], getInitialState(){ return ({ submitted: false, message: null }); }, handleSuccess(message){ this.setState({ submitted: true, message: message }); }, render() { if (this.state.submitted){ return (

{this.state.message}
); } return (

Welcome to ascribe...
); } }); let SignupForm = React.createClass({ mixins: [Router.Navigation], handleSuccess(response){ let notificationText = 'Sign up successful'; let notification = new GlobalNotificationModel(notificationText, 'success', 50000); GlobalNotificationActions.appendGlobalNotification(notification); this.props.handleSuccess('We sent an email to your address ' + response.user.email + ', please confirm.'); }, render() { let tooltipPassword = 'Your password must be at least 10 characters.\n ' + 'This password is securing your digital property like a bank account.\n ' + 'Store it in a safe place!'; return (
Sign up to ascribe } spinner={ }>
I agree to the  Terms of Service }/> ); } }); export default SignupContainer;