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