@page "/verify"

@using FoodsharingSiegen.Contracts.Enums
@using FoodsharingSiegen.Shared.Helper
@inherits FsBase

<PageTitle>Freischalten - @AppSettings.Terms.Title</PageTitle>
<h2>Freischalten</h2>

@if (AppSettings.TestMode)
{
    <div class="alert alert-danger"><strong>TESTMODUS!</strong> Änderungen werden wieder gelöscht.</div>
}

@{
    var filterList = ProspectList.ApplyFilter(Filter);
}

<hr/>
<ProspectFilterControl Filter="Filter" FilterChanged="FilterChangedAsync" StateFilter="ProspectStateFilter.Verification"></ProspectFilterControl>
<hr />
<ProspectGrid
    Prospects="filterList"
    OnDataChanged="@LoadProspects"
    StateFilter="ProspectStateFilter.Verification">
</ProspectGrid>