69 lines
1.9 KiB
HTML
69 lines
1.9 KiB
HTML
<div class="person-projects">
|
|
<div class="description-container">
|
|
<h5 style="font-weight: bold">Projekte</h5>
|
|
<p>Übersicht der durchgeführten Projekte.</p>
|
|
</div>
|
|
<mat-card appearance="outlined">
|
|
<mat-card-content>
|
|
<mat-form-field style="width: 100%">
|
|
<mat-label>Suche nach Titel</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>
|
|
<mat-tab label="DFG">
|
|
<app-data-table
|
|
[columns]="dfgProjectColumns"
|
|
[data]="dfgProjectData"
|
|
[detailTemplate]="dfgProjectDetailRowTmp"
|
|
[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 #dfgProjectActionsTmp let-element>
|
|
<a
|
|
[routerLink]="['/projects/dfg', element.id]"
|
|
target="_blank"
|
|
mat-icon-button
|
|
color="primary">
|
|
<mat-icon>open_in_new</mat-icon>
|
|
</a>
|
|
</ng-template>
|
|
|
|
<ng-template #dfgProjectFundingEndTmp let-element>
|
|
{{ element.funding_end == '2999' ? 'laufend' : element.funding_end }}
|
|
</ng-template>
|
|
|
|
<ng-template #dfgProjectDetailRowTmp let-element>
|
|
<div class="detail-row">
|
|
<ul>
|
|
@for (
|
|
name of element.names.sort((a, b) => a.localeCompare(b));
|
|
track $index
|
|
) {
|
|
<li>
|
|
{{ name }}
|
|
</li>
|
|
}
|
|
</ul>
|
|
</div>
|
|
</ng-template>
|