58 lines
1.8 KiB
HTML
58 lines
1.8 KiB
HTML
<div class="content">
|
|
<h3>Projekte</h3>
|
|
|
|
<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>
|
|
|
|
<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 #grantAmountTmp let-row>
|
|
{{ row.grant_amount | currency: 'EUR' : 'symbol' : '1.0-0' : 'de' }}
|
|
</ng-template>
|