Moved enums to a dedicated namespace and updated references across the codebase. Renamed the `Info` field in the `Interaction` entity to `Info1`, including necessary migrations and UI adjustments. These changes improve the organization and consistency of the codebase.
35 lines
932 B
Plaintext
35 lines
932 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 @bind-Filter="Filter" StateFilter="ProspectStateFilter.OnBoarding"></ProspectFilterControl>
|
|
<hr />
|
|
<ProspectGrid
|
|
Prospects="filterList"
|
|
OnDataChanged="@LoadProspects"
|
|
StateFilter="ProspectStateFilter.OnBoarding">
|
|
</ProspectGrid> |