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