Blame view

imports/ui/pages/login.js 1.29 KB
2b1ad7917   tmcdeveloper   wip moving to Met...
1
  import React from 'react';
7df77f0fa   tmcdeveloper   finish wiring up ...
2
  import { Link } from 'react-router';
2b1ad7917   tmcdeveloper   wip moving to Met...
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   tmcdeveloper   add method tests ...
8
      handleLogin({ component: this });
2b1ad7917   tmcdeveloper   wip moving to Met...
9
    }
f0c912bf1   tmcdeveloper   add method tests ...
10
    handleSubmit(event) {
2b1ad7917   tmcdeveloper   wip moving to Met...
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   tmcdeveloper   finish wiring up ...
29
                <Link className="pull-right" to="/recover-password">Forgot Password?</Link>
2b1ad7917   tmcdeveloper   wip moving to Met...
30
              </label>
f0c912bf1   tmcdeveloper   add method tests ...
31
32
33
34
35
36
37
              <input
                type="password"
                className="form-control"
                ref="password"
                name="password"
                placeholder="Password"
              />
2b1ad7917   tmcdeveloper   wip moving to Met...
38
39
40
41
42
43
44
            </div>
            <Button type="submit" bsStyle="success">Login</Button>
          </form>
        </Col>
      </Row>;
    }
  }