Blame view
imports/ui/pages/login.js
1.21 KB
2b1ad7917
|
1 |
import React from 'react'; |
7df77f0fa
|
2 |
import { Link } from 'react-router'; |
2b1ad7917
|
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
import { Row, Col, PageHeader, Input, Button } from 'react-bootstrap'; import { handleLogin } from '../../modules/login'; export class Login extends React.Component { componentDidMount() { handleLogin( { component: this } ); } handleSubmit( event ) { 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
|
30 |
<Link className="pull-right" to="/recover-password">Forgot Password?</Link> |
2b1ad7917
|
31 32 33 34 35 36 37 38 39 |
</label> <input type="password" className="form-control" ref="password" name="password" placeholder="Password" /> </div> <Button type="submit" bsStyle="success">Login</Button> </form> </Col> </Row>; } } |