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:
@@ -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>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user