Browse Source

Improve tables

pull/157/head
Thomas 4 years ago
parent
commit
3227330697
  1. 11
      apps/client/src/app/components/accounts-table/accounts-table.component.html
  2. 10
      apps/client/src/app/components/transactions-table/transactions-table.component.html
  3. 1
      apps/client/src/app/components/transactions-table/transactions-table.component.ts
  4. 10
      apps/client/src/app/pages/admin/admin-page.html

11
apps/client/src/app/components/accounts-table/accounts-table.component.html

@ -3,6 +3,11 @@
<th *matHeaderCellDef class="px-1" i18n mat-header-cell>Name</th> <th *matHeaderCellDef class="px-1" i18n mat-header-cell>Name</th>
<td *matCellDef="let element" class="px-1" mat-cell> <td *matCellDef="let element" class="px-1" mat-cell>
{{ element.name }} {{ element.name }}
<span
*ngIf="element.isDefault"
class="d-lg-inline-block d-none text-muted"
>(Default)</span
>
</td> </td>
</ng-container> </ng-container>
@ -49,8 +54,10 @@
</ng-container> </ng-container>
<ng-container matColumnDef="transactions"> <ng-container matColumnDef="transactions">
<th *matHeaderCellDef i18n mat-header-cell>Transactions</th> <th *matHeaderCellDef class="text-right" i18n mat-header-cell>
<td *matCellDef="let element" mat-cell> Transactions
</th>
<td *matCellDef="let element" class="text-right" mat-cell>
{{ element.Order?.length }} {{ element.Order?.length }}
</td> </td>
</ng-container> </ng-container>

10
apps/client/src/app/components/transactions-table/transactions-table.component.html

@ -40,6 +40,16 @@
mat-table mat-table
[dataSource]="dataSource" [dataSource]="dataSource"
> >
<ng-container matColumnDef="count">
<th *matHeaderCellDef class="px-1 text-right" i18n mat-header-cell>#</th>
<td
*matCellDef="let element; let i = index"
class="px-1 text-right"
mat-cell
>
{{ dataSource.data.length - i }}
</td>
</ng-container>
<ng-container matColumnDef="date"> <ng-container matColumnDef="date">
<th <th
*matHeaderCellDef *matHeaderCellDef

1
apps/client/src/app/components/transactions-table/transactions-table.component.ts

@ -133,6 +133,7 @@ export class TransactionsTableComponent
public ngOnChanges() { public ngOnChanges() {
this.displayedColumns = [ this.displayedColumns = [
'count',
'date', 'date',
'type', 'type',
'symbol', 'symbol',

10
apps/client/src/app/pages/admin/admin-page.html

@ -73,18 +73,18 @@
<table class="gf-table"> <table class="gf-table">
<thead> <thead>
<tr class="mat-header-row"> <tr class="mat-header-row">
<th class="mat-header-cell px-1 py-2 text-center" i18n>#</th> <th class="mat-header-cell px-1 py-2 text-right" i18n>#</th>
<th class="mat-header-cell px-1 py-2" i18n>User</th> <th class="mat-header-cell px-1 py-2" i18n>User</th>
<th class="mat-header-cell px-1 py-2 text-center" i18n> <th class="mat-header-cell px-1 py-2 text-right" i18n>
Registration Date Registration Date
</th> </th>
<th class="mat-header-cell px-1 py-2 text-center" i18n> <th class="mat-header-cell px-1 py-2 text-right" i18n>
Accounts Accounts
</th> </th>
<th class="mat-header-cell px-1 py-2 text-center" i18n> <th class="mat-header-cell px-1 py-2 text-right" i18n>
Transactions Transactions
</th> </th>
<th class="mat-header-cell px-1 py-2 text-center" i18n> <th class="mat-header-cell px-1 py-2 text-right" i18n>
Engagement Engagement
</th> </th>
<th class="mat-header-cell px-1 py-2" i18n>Last Activitiy</th> <th class="mat-header-cell px-1 py-2" i18n>Last Activitiy</th>

Loading…
Cancel
Save