Files
smartguide/webapp/src/app/modules/projects/projects.component.html
T
2026-07-05 19:47:16 +02:00

61 lines
1.6 KiB
HTML

<div class="content">
<h1>Passende Projekte finden</h1>
<mat-divider />
<app-card-search
[page]="page()"
[cardTmp]="cardTmp"
[additionalFiltersTmp]="additionalFiltersTmp"
[cardMinWidth]="380"
[sortingOptions]="sortingOptions"
[sortingDirectionOptions]="sortingDirectionOptions"
searchLabel="Suche nach Namen" />
</div>
<ng-template #cardTmp let-element>
<mat-card
class="card"
appearance="outlined"
[routerLink]="getDetaiLink(element)">
<mat-card-header>
<mat-card-title>{{ element.title }}</mat-card-title>
<mat-card-subtitle>{{ element.type | uppercase }}</mat-card-subtitle>
</mat-card-header>
<mat-card-content class="card-content">
<mat-divider />
<div class="card-metadata">
<span
>Von {{ element.start_date | date: 'dd.MM.yyyy' }} bis
{{ element.end_date | date: 'dd.MM.yyyy' }}</span
>
</div>
<mat-divider />
</mat-card-content>
<mat-card-footer>
<mat-card-actions>
<a
mat-button
[routerLink]="getDetaiLink(element)"
(click)="$event.stopPropagation()">
<mat-icon>info</mat-icon>
Übersicht
</a>
</mat-card-actions>
</mat-card-footer>
</mat-card>
</ng-template>
<ng-template #additionalFiltersTmp>
<mat-chip-listbox
[value]="urlChips()"
(change)="handleChipBoxChange($event)"
multiple
style="padding: 0rem 1rem">
<mat-chip-option value="eu">EU</mat-chip-option>
<mat-chip-option value="bund">BUND</mat-chip-option>
<mat-chip-option value="dfg">DFG</mat-chip-option>
</mat-chip-listbox>
</ng-template>