-
Notifications
You must be signed in to change notification settings - Fork 0
/
search-form.component.html
36 lines (31 loc) · 1.15 KB
/
search-form.component.html
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
<div class="card" data-test="search-form">
<div class="card-body">
<form [formGroup]="searchForm" (ngSubmit)="search()">
<div class="form-row align-items-center">
<div class="col-auto">
<div class="form-check mb-2">
<input formControlName="searchType" class="form-check-input" type="radio" id="people" value="people">
<label class="form-check-label" for="people">
People
</label>
</div>
</div>
<div class="col-auto">
<div class="form-check mb-2">
<input formControlName="searchType" class="form-check-input" type="radio" id="planets" value="planets">
<label class="form-check-label" for="planets">
Planets
</label>
</div>
</div>
<div class="col-auto">
<label class="sr-only" for="query">Query</label>
<input formControlName="query" type="search" class="form-control mb-2" id="query">
</div>
<div class="col-auto">
<button type="submit" class="btn btn-primary mb-2">Search</button>
</div>
</div>
</form>
</div>
</div>