in Dataset/JS/ReactSignUp/signup.js [91:134]
render() {
const {
fields: { name, email, password },
handleSubmit,
submitting,
} = this.props;
const onSubmit = handleSubmit(this.handleSubmit.bind(this));
return (
<DocumentTitle title={getTitle('Signup')}>
<div>
<h2>Join PodBaby today.</h2>
<hr />
<p className="lead">
As a member you can subscribe to podcast feeds and keep track of your favorite episodes.
</p>
<form className="form-horizontal" onSubmit={onSubmit}>
<FormGroup field={name}>
<input type="text" className="form-control" placeholder="Name" {...name} />
</FormGroup>
<FormGroup field={email}>
<input type="email" className="form-control" placeholder="Email address" {...email} />
</FormGroup>
<FormGroup field={password}>
<input type="password" className="form-control" placeholder="Password" {...password} />
</FormGroup>
<Button
bsStyle="primary"
disabled={submitting}
onClick={onSubmit}
className="form-control"
type="submit"
><Icon icon="sign-in" /> Signup
</Button>
</form>
<p><Link to="/login/">Already a member? Log in here.</Link></p>
</div>
</DocumentTitle>
);
}