Blame view

imports/ui/pages/recover-password.js 1.05 KB
2b1ad7917   tmcdeveloper   wip moving to Met...
1
  import React from 'react';
cac7cbc73   tmcdeveloper   4.1.0 release
2
  import { Row, Col, Alert, FormGroup, FormControl, Button } from 'react-bootstrap';
7df77f0fa   tmcdeveloper   finish wiring up ...
3
  import { handleRecoverPassword } from '../../modules/recover-password';
2b1ad7917   tmcdeveloper   wip moving to Met...
4

7df77f0fa   tmcdeveloper   finish wiring up ...
5
6
  export class RecoverPassword extends React.Component {
    componentDidMount() {
f0c912bf1   tmcdeveloper   add method tests ...
7
      handleRecoverPassword({ component: this });
7df77f0fa   tmcdeveloper   finish wiring up ...
8
    }
f0c912bf1   tmcdeveloper   add method tests ...
9
    handleSubmit(event) {
7df77f0fa   tmcdeveloper   finish wiring up ...
10
11
12
13
14
15
16
      event.preventDefault();
    }
  
    render() {
      return <Row>
        <Col xs={ 12 } sm={ 6 } md={ 4 }>
          <h4 className="page-header">Recover Password</h4>
f0c912bf1   tmcdeveloper   add method tests ...
17
18
19
          <Alert bsStyle="info">
            Enter your email address below to receive a link to reset your password.
          </Alert>
7df77f0fa   tmcdeveloper   finish wiring up ...
20
          <form ref="recoverPassword" className="recover-password" onSubmit={ this.handleSubmit }>
cac7cbc73   tmcdeveloper   4.1.0 release
21
22
23
24
25
26
27
28
29
            <FormGroup>
              <FormControl
                type="email"
                ref="emailAddress"
                name="emailAddress"
                placeholder="Email Address"
              />
            </FormGroup>
            <Button type="submit" bsStyle="success">Recover Password</Button>
7df77f0fa   tmcdeveloper   finish wiring up ...
30
31
32
33
34
          </form>
        </Col>
      </Row>;
    }
  }