41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
@page "/all"
|
|
@page "/archive"
|
|
|
|
@using FoodsharingSiegen.Contracts
|
|
@using FoodsharingSiegen.Contracts.Enums
|
|
@using FoodsharingSiegen.Shared.Helper
|
|
@inherits FsBase
|
|
|
|
<PageTitle>Archiv - @AppSettings.Terms.Title</PageTitle>
|
|
<h2>Archiv</h2>
|
|
|
|
@if (AppSettings.TestMode)
|
|
{
|
|
<div class="alert alert-danger"><strong>TESTMODUS!</strong> Änderungen werden wieder gelöscht.</div>
|
|
}
|
|
|
|
<ProspectSortControl @bind-CurrentSort="CurrentSort" StorageKey="@StorageKeys.SortProspectsAll" OnSortChanged="StateHasChanged" Filter="Filter" FilterChanged="FilterChangedAsync" StateFilter="ProspectStateFilter.All" />
|
|
|
|
@{
|
|
var filtered = ProspectList.ApplyFilter(Filter);
|
|
var sortList = filtered.ApplySort(CurrentSort);
|
|
}
|
|
|
|
@if (IsLoadingProspects)
|
|
{
|
|
<div class="d-flex justify-content-center align-items-center py-5 text-muted">
|
|
<span class="me-2"><i class="fa-solid fa-spinner fa-spin"></i></span>
|
|
Lade Einarbeitungen...
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<ProspectGrid
|
|
Prospects="sortList"
|
|
OnDataChanged="@LoadProspects"
|
|
OnLoadMore="@LoadMoreProspects"
|
|
IsLoadingMore="IsLoadingMoreProspects"
|
|
HasMore="HasMoreProspects"
|
|
StateFilter="ProspectStateFilter.All">
|
|
</ProspectGrid>
|
|
} |