-
Notifications
You must be signed in to change notification settings - Fork 0
/
DetailsForm.js
143 lines (138 loc) · 5 KB
/
DetailsForm.js
1
2
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
import React from "react";
import { Form, Button, Col } from "react-bootstrap";
import { Link } from "react-router-dom";
import editUserDetails from "../../assets/edit-user-details-white.png";
import outcry from "../../assets/outcry-white.png";
import editAlias from "../../assets/edit-alias-white.png";
import "./DetailsForm.css";
export default function DetailsForm(props) {
return (
<div id="details-wrapper-parent">
<div id="details-wrapper">
<Link to="/">
<img className="outcry-details-page" src={outcry} alt="title" />
</Link>
<img
id="edit-user-details-details-page"
src={editUserDetails}
alt="edit-user-details"
/>
<div id="details-form-wrapper">
<Form onSubmit={props.onSubmit}>
<Form.Row>
<Form.Group as={Col} controlId="hkIdNumber">
<Form.Label>香港身分證號碼</Form.Label>
<Form.Control
onChange={props.onChange}
name="hkIdNumber"
value={props.values.hkIdNumber}
placeholder="HKID number"
/>
</Form.Group>
<Form.Group as={Col} controlId="dateOfBirth">
<Form.Label>出生日期</Form.Label>
<Form.Control
onChange={props.onChange}
value={props.values.dateOfBirth}
name="dateOfBirth"
type="date"
/>
</Form.Group>
</Form.Row>
<Form.Row>
<Form.Group as={Col} controlId="address">
<Form.Label>住宅地址</Form.Label>
<Form.Control
onChange={props.onChange}
name="address"
value={props.values.address}
placeholder="Home address"
/>
</Form.Group>
<Form.Group as={Col} controlId="gender">
<Form.Label>性別</Form.Label>
<Form.Control
onChange={props.onChange}
name="gender"
value={props.values.gender}
placeholder="M / F"
/>
</Form.Group>
</Form.Row>
<Form.Row>
<Form.Group as={Col} controlId="phoneNumber">
<Form.Label>電話號碼</Form.Label>
<Form.Control
onChange={props.onChange}
name="phoneNumber"
value={props.values.phoneNumber}
placeholder="Phone number"
/>
</Form.Group>
<Form.Group as={Col} controlId="emailPassword">
<Form.Label>電郵密碼</Form.Label>
<Form.Control
onChange={props.onChange}
name="emailPassword"
value={props.values.emailPassword}
placeholder="Gmail password"
type="password"
/>
</Form.Group>
</Form.Row>
<Form.Row>
<Form.Group as={Col} controlId="emergencyContact">
<Form.Label>緊急聯絡人</Form.Label>
<Form.Control
onChange={props.onChange}
name="emergencyContact"
value={props.values.emergencyContact}
placeholder="Emergency contact relation"
/>
</Form.Group>
<Form.Group as={Col} controlId="emergencyContactNumber">
<Form.Label>聯絡號碼</Form.Label>
<Form.Control
onChange={props.onChange}
name="emergencyContactNumber"
value={props.values.emergencyContactNumber}
placeholder="Contact number"
/>
</Form.Group>
</Form.Row>
<Form.Row>
<Form.Group as={Col} controlId="lawyerEmail">
<Form.Label>律師電郵</Form.Label>
<Form.Control
onChange={props.onChange}
name="lawyerEmail"
value={props.values.lawyerEmail}
placeholder="Lawyer email"
/>
</Form.Group>
<Form.Group as={Col} controlId="otherEmail">
<Form.Label>其他電郵</Form.Label>
<Form.Control
onChange={props.onChange}
name="otherEmail"
value={props.values.otherEmail}
placeholder="Other email"
/>
</Form.Group>
</Form.Row>
<Button type="submit" variant="outline-light">
Submit
</Button>
</Form>
</div>
<Link to="/alias">
<img
className="edit-user-alias-details-page"
src={editAlias}
alt="edit-user-alias"
/>
</Link>
</div>
</div>
);
}