Blame view
imports/ui/pages/signup.js
1.62 KB
2b1ad7917
|
1 |
import React from 'react'; |
7df77f0fa
|
2 |
import { Link } from 'react-router'; |
76dd62c7b
|
3 |
import { Row, Col, Input, Button } from 'react-bootstrap'; |
7df77f0fa
|
4 |
import { handleSignup } from '../../modules/signup'; |
2b1ad7917
|
5 |
|
7df77f0fa
|
6 7 |
export class Signup extends React.Component { componentDidMount() { |
f0c912bf1
|
8 |
handleSignup({ component: this }); |
7df77f0fa
|
9 |
} |
f0c912bf1
|
10 |
handleSubmit(event) { |
7df77f0fa
|
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
event.preventDefault(); } render() { return <Row> <Col xs={ 12 } sm={ 6 } md={ 4 }> <h4 className="page-header">Sign Up</h4> <form ref="signup" className="signup" onSubmit={ this.handleSubmit }> <Row> <Col xs={ 6 } sm={ 6 }> <Input type="text" label="First Name" ref="firstName" name="firstName" placeholder="First Name" /> </Col> <Col xs={ 6 } sm={ 6 }> <Input type="text" label="Last Name" ref="lastName" name="lastName" placeholder="Last Name" /> </Col> </Row> <Input type="email" label="Email Address" ref="emailAddress" name="emailAddress" placeholder="Email Address" /> <Input type="password" label="Password" ref="password" name="password" placeholder="Password" /> <Button type="submit" bsStyle="success">Sign Up</Button> </form> <p>Already have an account? <Link to="/login">Log In</Link>.</p> </Col> </Row>; } } |