mirror of
https://gitlab.com/openlp/web-remote.git
synced 2024-12-22 11:32:47 +00:00
Require some text while searching
This commit is contained in:
parent
0ea24dd23c
commit
19981ad608
@ -1,5 +1,5 @@
|
|||||||
<h3>Search</h3>
|
<h3>Search</h3>
|
||||||
<form>
|
<form #searchForm="ngForm">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<mat-select [(ngModel)]="selectedPlugin" name="selectedPlugin" placeholder="Search for:">
|
<mat-select [(ngModel)]="selectedPlugin" name="selectedPlugin" placeholder="Search for:">
|
||||||
<mat-option *ngFor="let plugin of searchPlugins" name="searchPlugins" [value]="plugin.key">
|
<mat-option *ngFor="let plugin of searchPlugins" name="searchPlugins" [value]="plugin.key">
|
||||||
@ -9,10 +9,10 @@
|
|||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<br>
|
<br>
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<input matInput [(ngModel)]="searchText" name="searchText" placeholder="Search Text">
|
<input matInput [(ngModel)]="searchText" name="searchText" placeholder="Search Text" required>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<br>
|
<br>
|
||||||
<button mat-raised-button id="searchButton" color="primary" (click)="onSubmit()">Search</button>
|
<button mat-raised-button id="searchButton" color="primary" [disabled]="!searchForm.form.valid" (click)="onSubmit()">Search</button>
|
||||||
</form>
|
</form>
|
||||||
<div *ngIf="searchResults">
|
<div *ngIf="searchResults">
|
||||||
<h3>Search Results:</h3>
|
<h3>Search Results:</h3>
|
||||||
|
Loading…
Reference in New Issue
Block a user