mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
18 lines
990 B
HTML
18 lines
990 B
HTML
<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">
|
|
{{dsoNameService.getName(selectedScope | async) || ('search.form.scope.all' | translate)}}
|
|
</button>
|
|
}
|
|
<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>
|