Blame view

imports/ui/pages/Login.js 1.34 KB
2b1ad7917   tmcdeveloper   wip moving to Met...
1
  import React from 'react';
7df77f0fa   tmcdeveloper   finish wiring up ...
2
  import { Link } from 'react-router';
cac7cbc73   tmcdeveloper   4.1.0 release
3
  import { Row, Col, FormGroup, ControlLabel, FormControl, Button } from 'react-bootstrap';
c42d4eeac   themeteorchef   handful of changes
4
  import handleLogin from '../../modules/login';
2b1ad7917   tmcdeveloper   wip moving to Met...
5

3540345c5   themeteorchef   handful of fixes
6
  export default class Login extends React.Component {
2b1ad7917   tmcdeveloper   wip moving to Met...
7
    componentDidMount() {
f0c912bf1   tmcdeveloper   add method tests ...
8
      handleLogin({ component: this });
2b1ad7917   tmcdeveloper   wip moving to Met...
9
    }
c42d4eeac   themeteorchef   handful of changes
10
11
    handleSubmit(event) {
      event.preventDefault();
2b1ad7917   tmcdeveloper   wip moving to Met...
12
13
14
    }
  
    render() {
3540345c5   themeteorchef   handful of fixes
15
      return (<Row>
2b1ad7917   tmcdeveloper   wip moving to Met...
16
17
18
        <Col xs={ 12 } sm={ 6 } md={ 4 }>
          <h4 className="page-header">Login</h4>
          <form ref="login" className="login" onSubmit={ this.handleSubmit }>
cac7cbc73   tmcdeveloper   4.1.0 release
19
20
21
22
23
24
25
26
27
28
29
            <FormGroup>
              <ControlLabel>Email Address</ControlLabel>
              <FormControl
                type="email"
                ref="emailAddress"
                name="emailAddress"
                placeholder="Email Address"
              />
            </FormGroup>
            <FormGroup>
              <ControlLabel>
2b1ad7917   tmcdeveloper   wip moving to Met...
30
                <span className="pull-left">Password</span>
7df77f0fa   tmcdeveloper   finish wiring up ...
31
                <Link className="pull-right" to="/recover-password">Forgot Password?</Link>
cac7cbc73   tmcdeveloper   4.1.0 release
32
33
              </ControlLabel>
              <FormControl
f0c912bf1   tmcdeveloper   add method tests ...
34
                type="password"
f0c912bf1   tmcdeveloper   add method tests ...
35
36
37
38
                ref="password"
                name="password"
                placeholder="Password"
              />
cac7cbc73   tmcdeveloper   4.1.0 release
39
            </FormGroup>
2b1ad7917   tmcdeveloper   wip moving to Met...
40
41
42
            <Button type="submit" bsStyle="success">Login</Button>
          </form>
        </Col>
3540345c5   themeteorchef   handful of fixes
43
      </Row>);
2b1ad7917   tmcdeveloper   wip moving to Met...
44
45
    }
  }