Blame view
imports/ui/pages/login.js
1.34 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'; |
2b1ad7917
|
4 |
import { handleLogin } from '../../modules/login'; |
3540345c5
|
5 |
export default class Login extends React.Component { |
2b1ad7917
|
6 |
componentDidMount() { |
f0c912bf1
|
7 |
handleLogin({ component: this }); |
2b1ad7917
|
8 |
} |
3540345c5
|
9 10 |
handleSubmit() { this.preventDefault(); |
2b1ad7917
|
11 12 13 |
} render() { |
3540345c5
|
14 |
return (<Row> |
2b1ad7917
|
15 16 17 |
<Col xs={ 12 } sm={ 6 } md={ 4 }> <h4 className="page-header">Login</h4> <form ref="login" className="login" onSubmit={ this.handleSubmit }> |
cac7cbc73
|
18 19 20 21 22 23 24 25 26 27 28 |
<FormGroup> <ControlLabel>Email Address</ControlLabel> <FormControl type="email" ref="emailAddress" name="emailAddress" placeholder="Email Address" /> </FormGroup> <FormGroup> <ControlLabel> |
2b1ad7917
|
29 |
<span className="pull-left">Password</span> |
7df77f0fa
|
30 |
<Link className="pull-right" to="/recover-password">Forgot Password?</Link> |
cac7cbc73
|
31 32 |
</ControlLabel> <FormControl |
f0c912bf1
|
33 |
type="password" |
f0c912bf1
|
34 35 36 37 |
ref="password" name="password" placeholder="Password" /> |
cac7cbc73
|
38 |
</FormGroup> |
2b1ad7917
|
39 40 41 |
<Button type="submit" bsStyle="success">Login</Button> </form> </Col> |
3540345c5
|
42 |
</Row>); |
2b1ad7917
|
43 44 |
} } |