-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinputformtsx
47 lines (44 loc) · 1.36 KB
/
inputformtsx
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
import React from 'react';
import './Search.css';
import { SearchSecProps } from './SearchSec';
class InputForm extends React.Component<SearchSecProps> {
render() {
return (
<div className="inputtp">
<form onSubmit={this.props.onSearchSubmit}>
<div className="form-row">
<div className="form-group col-md-8">
<label>Identifier Id: </label>
<input
type="text"
value={this.props.searchStr}
onChange={this.props.onSearchChange}
className="form-control"
id="IdentifierId"
aria-describedby="emailHelp"
placeholder="Enter Identifier Id"
/>
</div>
</div>
<div className="form-row">
<div className="form-group col-md-8">
<label>Identifier Type</label>
<select
id="IdentifierType"
className="form-control"
onChange={this.props.onIdTypeChange}
value={this.props.idType}
>
<option value="CUSIP">CUSIP</option>
</select>
</div>
</div>
<button type="submit" className="btn btn-primary">
Submit
</button>
</form>
</div>
);
}
}
export default InputForm;