Files
smartguide/webapp/src/app/modules/person-projects/person-projects.component.html
T
Mats Paul Tončik 000b68758d
LocationBasedServices/smartguide/pipeline/head This commit looks good
Fixed navigation to single dfg project from person projects
2026-06-19 10:48:17 +02:00

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>