35 lines
961 B
Plaintext
35 lines
961 B
Plaintext
@page "/"
|
|
@page "/prospect"
|
|
@page "/prospects"
|
|
|
|
@using FoodsharingSiegen.Contracts.Enums
|
|
@using FoodsharingSiegen.Shared.Helper
|
|
@inherits FsBase
|
|
|
|
<PageTitle>Neue Foodsaver - @AppSettings.Terms.Title</PageTitle>
|
|
<h2>Neue Foodsaver</h2>
|
|
|
|
@if (AppSettings.TestMode)
|
|
{
|
|
<div class="alert alert-danger"><strong>TESTMODUS!</strong> Änderungen werden wieder gelöscht.</div>
|
|
}
|
|
|
|
<Button
|
|
Color="Color.Primary"
|
|
Clicked="@CreateProspectAsync"
|
|
Visibility="@(CurrentUser.IsInGroup(UserGroup.WelcomeTeam, UserGroup.Ambassador) ? Visibility.Default : Visibility.Invisible)"
|
|
>Hinzufügen
|
|
</Button>
|
|
|
|
@{
|
|
var filterList = ProspectList.ApplyFilter(Filter);
|
|
}
|
|
|
|
<hr/>
|
|
<ProspectFilterControl Filter="Filter" FilterChanged="FilterChangedAsync" StateFilter="ProspectStateFilter.OnBoarding"></ProspectFilterControl>
|
|
<hr />
|
|
<ProspectGrid
|
|
Prospects="filterList"
|
|
OnDataChanged="@LoadProspects"
|
|
StateFilter="ProspectStateFilter.OnBoarding">
|
|
</ProspectGrid> |