This commit is contained in:
@@ -0,0 +1,112 @@
|
||||
<div class="content">
|
||||
<h1>Passende Projekte finden</h1>
|
||||
|
||||
<mat-divider />
|
||||
|
||||
<div style="padding: 0 1rem">
|
||||
<mat-form-field style="width: 100%">
|
||||
<mat-label>Suche nach Namen</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>
|
||||
|
||||
<div
|
||||
style="
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
">
|
||||
<mat-chip-listbox
|
||||
[value]="urlChips()"
|
||||
(change)="handleChipBoxChange($event)"
|
||||
multiple>
|
||||
<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>
|
||||
|
||||
<div class="sorting">
|
||||
<select (change)="handleSortFieldChange($event)" [value]="urlSortBy()">
|
||||
<option value="title">Name</option>
|
||||
</select>
|
||||
|
||||
<select
|
||||
(change)="handleSortOrderChange($event)"
|
||||
[value]="urlSortingOrder()">
|
||||
<option value="desc">Absteigend</option>
|
||||
<option value="asc">Aufsteigend</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<mat-divider />
|
||||
|
||||
@let fundingProjectPageValue = fundingProjectPage();
|
||||
|
||||
@if (
|
||||
fundingProjectPageValue.elements &&
|
||||
fundingProjectPageValue.elements.length > 0
|
||||
) {
|
||||
<div class="cards">
|
||||
@for (fundingProject of fundingProjectPageValue.elements; track $index) {
|
||||
<mat-card
|
||||
class="card"
|
||||
appearance="outlined"
|
||||
[routerLink]="getDetaiLink(fundingProject)">
|
||||
<mat-card-header>
|
||||
<mat-card-title>{{ fundingProject.title }}</mat-card-title>
|
||||
<mat-card-subtitle>{{
|
||||
fundingProject.type | uppercase
|
||||
}}</mat-card-subtitle>
|
||||
</mat-card-header>
|
||||
|
||||
<mat-card-content class="card-content">
|
||||
<mat-divider />
|
||||
<div class="card-metadata">
|
||||
<span
|
||||
>Von {{ fundingProject.start_date | date }} bis
|
||||
{{ fundingProject.end_date | date }}</span
|
||||
>
|
||||
</div>
|
||||
<mat-divider />
|
||||
</mat-card-content>
|
||||
|
||||
<mat-card-footer>
|
||||
<mat-card-actions>
|
||||
<a
|
||||
mat-button
|
||||
[routerLink]="getDetaiLink(fundingProject)"
|
||||
(click)="$event.stopPropagation()">
|
||||
<mat-icon>info</mat-icon>
|
||||
Übersicht
|
||||
</a>
|
||||
</mat-card-actions>
|
||||
</mat-card-footer>
|
||||
</mat-card>
|
||||
}
|
||||
</div>
|
||||
} @else {
|
||||
<div class="no-results">
|
||||
<p>Keine passenden Projekte gefunden.</p>
|
||||
</div>
|
||||
}
|
||||
|
||||
<mat-divider />
|
||||
|
||||
<mat-paginator
|
||||
[length]="fundingProjectPageValue.total"
|
||||
[pageSize]="fundingProjectPageValue.size"
|
||||
[pageSizeOptions]="[10, 20, 50]"
|
||||
[pageIndex]="fundingProjectPageValue.page"
|
||||
(page)="handlePageChange($event)">
|
||||
</mat-paginator>
|
||||
</div>
|
||||
Reference in New Issue
Block a user