-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: added pagination to shortcut widget (#1738)
closes #1692
- Loading branch information
1 parent
27d701a
commit 42295d0
Showing
7 changed files
with
59 additions
and
71 deletions.
There are no files selected for viewing
77 changes: 37 additions & 40 deletions
77
...t/children/dashboard-widgets/entity-count-dashboard/entity-count-dashboard.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,43 @@ | ||
<app-dashboard-widget | ||
<app-dashboard-list-widget | ||
[icon]="entityIcon" | ||
theme="child" | ||
[title]="totalEntities" | ||
[subtitle]="label" | ||
[loading]="loading" | ||
[entries]="entityGroupCounts" | ||
> | ||
<app-widget-content> | ||
<div class="table-wrapper"> | ||
<table | ||
mat-table | ||
[dataSource]="entityGroupCounts" | ||
i18n-aria-label="Label for children count dashboard" | ||
aria-label="Table showing disaggregation of the beneficiaries" | ||
> | ||
<ng-container matColumnDef="label"> | ||
<td *matCellDef="let group">{{ group.label }}</td> | ||
</ng-container> | ||
<ng-container matColumnDef="value"> | ||
<td *matCellDef="let group" class="text-align-end">{{ group.value }}</td> | ||
</ng-container> | ||
<ng-container matColumnDef="link"> | ||
<td *matCellDef class="text-align-end"> | ||
<fa-icon icon="external-link-square-alt"></fa-icon> | ||
</td> | ||
</ng-container> | ||
<div class="table-wrapper"> | ||
<table | ||
mat-table | ||
i18n-aria-label="Label for children count dashboard" | ||
aria-label="Table showing disaggregation of the beneficiaries" | ||
> | ||
<ng-container matColumnDef="label"> | ||
<td *matCellDef="let group">{{ group.label }}</td> | ||
</ng-container> | ||
<ng-container matColumnDef="value"> | ||
<td *matCellDef="let group" class="text-align-end">{{ group.value }}</td> | ||
</ng-container> | ||
<ng-container matColumnDef="link"> | ||
<td *matCellDef class="text-align-end"> | ||
<fa-icon icon="external-link-square-alt"></fa-icon> | ||
</td> | ||
</ng-container> | ||
|
||
<tr hidden> | ||
<th scope="col" i18n="The center that a partiipant belongs to, e.g. a city">Center</th> | ||
<th scope="col" i18n="The amount of children that study at one school">Count of children</th> | ||
<th scope="col" i18n="A link that takes a user to a center">Link</th> | ||
</tr> | ||
<tr | ||
mat-row | ||
*matRowDef="let row; let i=index; columns: ['label', 'value', 'link'];" | ||
(click)="goToChildrenList(row.id)" | ||
class="pointer" | ||
angulartics2On="click" | ||
angularticsCategory="Navigation" | ||
angularticsAction="dashboard_children_count_school_link" | ||
[angularticsLabel]="'list-entry-' + i" | ||
></tr> | ||
</table> | ||
</div> | ||
</app-widget-content> | ||
</app-dashboard-widget> | ||
<tr hidden> | ||
<th scope="col" i18n="The center that a partiipant belongs to, e.g. a city">Center</th> | ||
<th scope="col" i18n="The amount of children that study at one school">Count of children</th> | ||
<th scope="col" i18n="A link that takes a user to a center">Link</th> | ||
</tr> | ||
<tr | ||
mat-row | ||
*matRowDef="let row; let i=index; columns: ['label', 'value', 'link'];" | ||
(click)="goToChildrenList(row.id)" | ||
class="pointer" | ||
angulartics2On="click" | ||
angularticsCategory="Navigation" | ||
angularticsAction="dashboard_children_count_school_link" | ||
[angularticsLabel]="'list-entry-' + i" | ||
></tr> | ||
</table> | ||
</div> | ||
</app-dashboard-list-widget> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...hboard-shortcut-widget/dashboard-shortcut-widget/dashboard-shortcut-widget.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
@use "../../dashboard/dashboard-widget-base"; | ||
|
||
.table-container { | ||
margin-left: 10px; | ||
margin-right: 10px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters