|
@@ -1,19 +1,23 @@
|
|
|
<h1>Track Search</h1>
|
|
<h1>Track Search</h1>
|
|
|
|
|
|
|
|
<form class="vertical-form" (ngSubmit)="search($event)">
|
|
<form class="vertical-form" (ngSubmit)="search($event)">
|
|
|
- <mat-checkbox name="showMyTracks" [(ngModel)]="showMyTracks">
|
|
|
|
|
- Show <em>my</em> tracks
|
|
|
|
|
- </mat-checkbox>
|
|
|
|
|
- <mat-form-field appearance="fill">
|
|
|
|
|
- <mat-label>Track name</mat-label>
|
|
|
|
|
- <input matInput name="nameFilter" [(ngModel)]="nameFilter">
|
|
|
|
|
- </mat-form-field>
|
|
|
|
|
|
|
+ <div class="field-checkbox">
|
|
|
|
|
+ <p-checkbox name="showMyTracks" [(ngModel)]="showMyTracks" [binary]="true" inputId="binary"></p-checkbox>
|
|
|
|
|
+ <label for="binary">Show <em>my</em> tracks</label>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <span class="p-input-icon-left">
|
|
|
|
|
+ <i class="pi pi-search"></i>
|
|
|
|
|
+ <input type="text" pInputText name="nameFilter" [(ngModel)]="nameFilter" placeholder="Search">
|
|
|
|
|
+ </span>
|
|
|
|
|
|
|
|
<div class="button-group">
|
|
<div class="button-group">
|
|
|
- <button type="submit" mat-raised-button color="accent">Search</button>
|
|
|
|
|
|
|
+ <div class="col-12 md:col-6 lg:col-4">
|
|
|
|
|
+ <button type="submit" pButton color="accent">Search</button>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</form>
|
|
</form>
|
|
|
|
|
|
|
|
<app-track-list-item *ngFor="let track of tracks | async" [track]="track"></app-track-list-item>
|
|
<app-track-list-item *ngFor="let track of tracks | async" [track]="track"></app-track-list-item>
|
|
|
|
|
|
|
|
-<button mat-raised-button color="accent" [disabled]="!hasMore" (click)="loadMore()">More</button>
|
|
|
|
|
|
|
+<button pButton class="p-button-secondary" [disabled]="!hasMore" (click)="loadMore()">More</button>
|