feat(client): POST client address && fix(client): fixed sorting and pagination in view clients (#115)

* feat(client): POST client address && fix(client): fixed sorting and pagination in view clients
This commit is contained in:
Anwesh Nayak
2018-07-11 06:01:03 +05:30
committed by GitHub
parent 340598b540
commit 63925a37c3
12 changed files with 330 additions and 58 deletions
+8 -8
View File
@@ -1,4 +1,4 @@
<div class="container m-t-40">
<div class="container m-t-40 m-b-40">
<mat-form-field class="filter">
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
@@ -9,19 +9,19 @@
<!-- Name Column -->
<ng-container matColumnDef="name">
<th mat-header-cell *matHeaderCellDef mat-sort-header> Name </th>
<th mat-header-cell *matHeaderCellDef mat-sort-header='displayName'> Name </th>
<td mat-cell *matCellDef="let row"> {{row.displayName}} </td>
</ng-container>
<!-- Account no Column -->
<ng-container matColumnDef="clientno">
<th mat-header-cell *matHeaderCellDef mat-sort-header> Account # </th>
<th mat-header-cell *matHeaderCellDef mat-sort-header='accountNo'> Account # </th>
<td mat-cell *matCellDef="let row"> {{row.accountNo}} </td>
</ng-container>
<!-- External ID Column -->
<ng-container matColumnDef="externalid">
<th mat-header-cell *matHeaderCellDef mat-sort-header> ExternalID </th>
<th mat-header-cell *matHeaderCellDef mat-sort-header='externalId'> ExternalID </th>
<td mat-cell *matCellDef="let row"> {{row.externalId}} </td>
</ng-container>
@@ -29,20 +29,20 @@
<!-- Status Column -->
<ng-container matColumnDef="status">
<th mat-header-cell *matHeaderCellDef mat-sort-header> Status </th>
<th mat-header-cell *matHeaderCellDef mat-sort-header='active'> Status </th>
<td mat-cell *matCellDef="let row"> {{row.active}} </td>
</ng-container>
<!-- Color Column -->
<ng-container matColumnDef="office">
<th mat-header-cell *matHeaderCellDef mat-sort-header> OfficeName </th>
<th mat-header-cell *matHeaderCellDef mat-sort-header='officeName'> OfficeName </th>
<td mat-cell *matCellDef="let row"> {{row.officeName}} </td>
</ng-container>
<!-- ID Column -->
<ng-container matColumnDef="staff">
<th mat-header-cell *matHeaderCellDef mat-sort-header> StaffName </th>
<th mat-header-cell *matHeaderCellDef mat-sort-header='staffName'> StaffName </th>
<td mat-cell *matCellDef="let row"> {{row.staffName}} </td>
</ng-container>
@@ -52,7 +52,7 @@
</tr>
</table>
<mat-paginator [pageSizeOptions]="[5, 10, 25, 100]"></mat-paginator>
<mat-paginator [pageSizeOptions]="[10, 25, 100]"></mat-paginator>
</div>