111 lines
3.8 KiB
HTML
111 lines
3.8 KiB
HTML
<div class="content">
|
|
<h3>Projekte</h3>
|
|
|
|
<div class="funding-area">
|
|
<mat-card appearance="outlined">
|
|
<mat-card-content>
|
|
<mat-form-field style="width: 100%">
|
|
<mat-label>Suche nach Themen</mat-label>
|
|
<input
|
|
matInput
|
|
type="search"
|
|
[debounceTime]="300"
|
|
[(debouncedValue)]="urlSearchTerm"
|
|
(debouncedValueChange)="handleSearchTermChange($event)" />
|
|
<mat-icon matPrefix>search</mat-icon>
|
|
<button matIconButton matSuffix (click)="clearSearchTerm()">
|
|
<mat-icon>clear</mat-icon>
|
|
</button>
|
|
</mat-form-field>
|
|
<mat-tab-group
|
|
[selectedIndex]="tabIndex()"
|
|
(selectedTabChange)="selectedTabChange($event)">
|
|
<mat-tab label="EU">
|
|
<app-data-table
|
|
[data]="euProjectData"
|
|
[columns]="euProjectColumns"
|
|
[activeSortKey]="urlSortKey()"
|
|
[sortDirection]="urlSortDirection()"
|
|
(sortChange)="handleSortChange($event)" />
|
|
</mat-tab>
|
|
<mat-tab label="Bund">
|
|
<app-data-table
|
|
[data]="bundProjectData"
|
|
[columns]="bundProjectColumns"
|
|
[activeSortKey]="urlSortKey()"
|
|
[sortDirection]="urlSortDirection()"
|
|
(sortChange)="handleSortChange($event)" />
|
|
</mat-tab>
|
|
</mat-tab-group>
|
|
<mat-paginator
|
|
[length]="this.pageTotal()"
|
|
[pageSize]="this.pageSize()"
|
|
[pageIndex]="this.pageIndex()"
|
|
(page)="handlePageChange($event)" />
|
|
</mat-card-content>
|
|
</mat-card>
|
|
<div class="funding-info-section">
|
|
<mat-card appearance="outlined">
|
|
<mat-card-header>
|
|
<mat-card-title>Förderung über Zeit</mat-card-title>
|
|
</mat-card-header>
|
|
<mat-card-content>
|
|
<app-institution-projects-funding-graph
|
|
[fundings]="[bundProjectsFunding(), cordisEuProjectsFunding()]" />
|
|
</mat-card-content>
|
|
</mat-card>
|
|
|
|
<div class="funding-info-cards">
|
|
<app-person-network-info-card
|
|
[description]="'Gesamte Förderung durch Bund'"
|
|
[value]="
|
|
(bundTotalFunding()
|
|
| currency: 'EUR' : 'symbol' : '1.0-0' : 'de') ?? undefined
|
|
" />
|
|
<app-person-network-info-card
|
|
[description]="'Durchschnittliche jährliche Förderung durch Bund'"
|
|
[value]="
|
|
(bundAverageAnnualFunding()
|
|
| currency: 'EUR' : 'symbol' : '1.0-0' : 'de') ?? undefined
|
|
" />
|
|
<app-person-network-info-card
|
|
[description]="'Gesamte Förderung durch die Europäische Union'"
|
|
[value]="
|
|
(euTotalFunding() | currency: 'EUR' : 'symbol' : '1.0-0' : 'de') ??
|
|
undefined
|
|
" />
|
|
<app-person-network-info-card
|
|
[description]="
|
|
'Durchschnittliche jährliche Förderung durch die Europäische Union'
|
|
"
|
|
[value]="
|
|
(euAverageAnnualFunding()
|
|
| currency: 'EUR' : 'symbol' : '1.0-0' : 'de') ?? undefined
|
|
" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<ng-template #fundingStartTmp let-row>
|
|
{{ row.funding_start | date: 'dd.MM.yyyy' }}
|
|
</ng-template>
|
|
<ng-template #fundingEndTmp let-row>
|
|
{{ row.funding_end | date: 'dd.MM.yyyy' }}
|
|
</ng-template>
|
|
<ng-template #fundingAmountTmp let-row>
|
|
{{ row.funding_amount | currency: 'EUR' : 'symbol' : '1.0-0' : 'de' }}
|
|
</ng-template>
|
|
|
|
<ng-template #euProjectActionsTmp let-row>
|
|
<a mat-icon-button color="primary" [routerLink]="['/projects/eu', row.id]">
|
|
<mat-icon>open_in_new</mat-icon>
|
|
</a></ng-template
|
|
>
|
|
|
|
<ng-template #bundProjectActionsTmp let-row>
|
|
<a mat-icon-button color="primary" [routerLink]="['/projects/bund', row.id]">
|
|
<mat-icon>open_in_new</mat-icon>
|
|
</a>
|
|
</ng-template>
|