feat: master search tool and page (#1190)

Fixes: #1189
This commit is contained in:
Karan Takalkar
2020-08-10 16:49:46 +05:30
committed by GitHub
parent a27169d8fe
commit bc57a061c4
17 changed files with 426 additions and 38 deletions
@@ -0,0 +1,22 @@
<div class="container">
<mat-card fxLayout="column" fxLayoutGap="2%">
<mat-error *ngIf="overload">Searched query resulted more than 200 records, showing first 200 records.</mat-error>
<mat-list>
<mat-list-item (click)="navigate(entity)" *ngFor="let entity of searchResults">
<h3 matLine><span class="link">{{ entity.entityName }}</span> | #{{ entity.entityAccountNo }}</h3>
<p matLine>
<span>Entity: {{ entity.entityType }}
| {{ ['CLIENT','GROUP', 'CENTER'].includes(entity.entityType) ? 'Office' : 'Client' }}: {{ entity.parentName }}
</span>
</p>
</mat-list-item>
</mat-list>
</mat-card>
</div>