-
Notifications
You must be signed in to change notification settings - Fork 540
Expand file tree
/
Copy pathsearch-form.component.html
More file actions
23 lines (23 loc) · 1.32 KB
/
search-form.component.html
File metadata and controls
23 lines (23 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<form #form="ngForm" (ngSubmit)="onSubmit(form.value)" action="/search">
<div>
<div class="mb-3 input-group">
@if (showScopeSelector) {
<button class="scope-button btn btn-outline-secondary text-truncate"
[ngbTooltip]="dsoNameService.getName(selectedScope | async)" type="button"
(click)="openScopeModal()" role="button" tabindex="0">
<i class="fa-solid fa-filter"></i>
{{dsoNameService.getName(selectedScope | async) || ('search.form.scope.all' | translate)}}
</button>
}
<div class="checkbox-wrapper-8">
<input class="tgl" id="cb3-8" name="expert" type="checkbox" [(ngModel)]="expert"/>
<label class="tgl-btn" [attr.data-tg-off]="('search.form.expert_off' | translate )"
[attr.data-tg-on]="('search.form.expert_on' | translate )" for="cb3-8"></label>
</div>
<input type="text" [(ngModel)]="query" name="query" class="form-control"
[attr.aria-label]="searchPlaceholder" [attr.data-test]="'search-box' | dsBrowserOnly"
[placeholder]="searchPlaceholder" tabindex="0">
<button type="submit" class="search-button btn btn-{{brandColor}}" [attr.data-test]="'search-button' | dsBrowserOnly" role="button" tabindex="0"><i class="fas fa-search"></i> {{ ('search.form.search' | translate) }}</button>
</div>
</div>
</form>