-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generalized RelatedEntitiesWithSummary (from EducationalMaterialCompo…
…nent) (#2029) * feat(core): generalize related entities with summary component to be usable with any entity type, not just EducationalMaterial closes #2004 Co-authored-by: Simon <simon@aam-digital.com>
- Loading branch information
Showing
10 changed files
with
260 additions
and
201 deletions.
There are no files selected for viewing
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
15 changes: 0 additions & 15 deletions
15
...n/educational-material/educational-material-component/educational-material.component.html
This file was deleted.
Oops, something went wrong.
121 changes: 0 additions & 121 deletions
121
...ren/educational-material/educational-material-component/educational-material.component.ts
This file was deleted.
Oops, something went wrong.
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
16 changes: 16 additions & 0 deletions
16
...entity-details/related-entities-with-summary/related-entities-with-summary.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<app-entity-subrecord | ||
[records]="data" | ||
[filter]="filter" | ||
[columns]="columns" | ||
[newRecordFactory]="createNewRecordFactory()" | ||
[isLoading]="isLoading" | ||
></app-entity-subrecord> | ||
|
||
<div class="margin-top-large"> | ||
<ng-container *ngIf="summarySum"> | ||
<strong i18n>Total:</strong> {{ summarySum }} <br /> | ||
</ng-container> | ||
<ng-container *ngIf="summaryAvg"> | ||
<strong i18n>Average:</strong> {{ summaryAvg }} <br /> | ||
</ng-container> | ||
</div> |
Oops, something went wrong.