Blame view

imports/ui/pages/Signup.js 2.29 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 handleSignup from '../../modules/signup';
2b1ad7917   tmcdeveloper   wip moving to Met...
5

3540345c5   themeteorchef   handful of fixes
6
  export default class Signup extends React.Component {
7df77f0fa   tmcdeveloper   finish wiring up ...
7
    componentDidMount() {
f0c912bf1   tmcdeveloper   add method tests ...
8
      handleSignup({ component: this });
7df77f0fa   tmcdeveloper   finish wiring up ...
9
    }
c42d4eeac   themeteorchef   handful of changes
10
11
    handleSubmit(event) {
      event.preventDefault();
7df77f0fa   tmcdeveloper   finish wiring up ...
12
13
14
    }
  
    render() {
4c9b3dfc1   themeteorchef   cleaning up
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
      return (
        <div className="Signup">
          <Row>
            <Col xs={ 12 } sm={ 6 } md={ 4 }>
              <h4 className="page-header">Sign Up</h4>
              <form
                ref={ form => (this.signupForm = form) }
                onSubmit={ this.handleSubmit }
              >
                <Row>
                  <Col xs={ 6 } sm={ 6 }>
                    <FormGroup>
                      <ControlLabel>First Name</ControlLabel>
                      <FormControl
                        type="text"
                        ref="firstName"
                        name="firstName"
                        placeholder="First Name"
                      />
                    </FormGroup>
                  </Col>
                  <Col xs={ 6 } sm={ 6 }>
                    <FormGroup>
                      <ControlLabel>Last Name</ControlLabel>
                      <FormControl
                        type="text"
                        ref="lastName"
                        name="lastName"
                        placeholder="Last Name"
                      />
                    </FormGroup>
                  </Col>
                </Row>
cac7cbc73   tmcdeveloper   4.1.0 release
48
                <FormGroup>
4c9b3dfc1   themeteorchef   cleaning up
49
                  <ControlLabel>Email Address</ControlLabel>
cac7cbc73   tmcdeveloper   4.1.0 release
50
51
                  <FormControl
                    type="text"
4c9b3dfc1   themeteorchef   cleaning up
52
53
54
                    ref="emailAddress"
                    name="emailAddress"
                    placeholder="Email Address"
cac7cbc73   tmcdeveloper   4.1.0 release
55
56
                  />
                </FormGroup>
cac7cbc73   tmcdeveloper   4.1.0 release
57
                <FormGroup>
4c9b3dfc1   themeteorchef   cleaning up
58
                  <ControlLabel>Password</ControlLabel>
cac7cbc73   tmcdeveloper   4.1.0 release
59
                  <FormControl
4c9b3dfc1   themeteorchef   cleaning up
60
61
62
63
                    type="password"
                    ref="password"
                    name="password"
                    placeholder="Password"
cac7cbc73   tmcdeveloper   4.1.0 release
64
65
                  />
                </FormGroup>
4c9b3dfc1   themeteorchef   cleaning up
66
67
68
69
70
71
72
                <Button type="submit" bsStyle="success">Sign Up</Button>
              </form>
              <p>Already have an account? <Link to="/login">Log In</Link>.</p>
            </Col>
          </Row>
        </div>
      );
7df77f0fa   tmcdeveloper   finish wiring up ...
73
74
    }
  }