Darstellung der Prospects fragmentiert
This commit is contained in:
@@ -1,16 +1,10 @@
|
||||
@page "/"
|
||||
@page "/prospect"
|
||||
@page "/prospects"
|
||||
@using FoodsharingSiegen.Server.Dialogs
|
||||
@using FoodsharingSiegen.Server.Controls
|
||||
@using FoodsharingSiegen.Contracts.Entity
|
||||
@using FoodsharingSiegen.Contracts.Helper
|
||||
@using FoodsharingSiegen.Server.BaseClasses
|
||||
|
||||
@inherits FsBase
|
||||
|
||||
<PageTitle>Einarbeitungen</PageTitle>
|
||||
|
||||
<PageTitle>Aktuelle Einarbeitungen</PageTitle>
|
||||
<h2>Aktuelle Einarbeitungen</h2>
|
||||
|
||||
<Button
|
||||
@@ -19,35 +13,17 @@
|
||||
Visibility="@(CurrentUser.IsInGroup(UserGroup.WelcomeTeam, UserGroup.Ambassador) ? Visibility.Default : Visibility.Invisible)"
|
||||
>Hinzufügen</Button>
|
||||
|
||||
@{
|
||||
var activeProspects = ProspectList?.Where(x => x.Interactions.All(i => i.Type != InteractionType.Complete));
|
||||
}
|
||||
@if (activeProspects?.Any() == true)
|
||||
|
||||
@if (ProspectList?.Any() == true)
|
||||
{
|
||||
<hr />
|
||||
<h3>Aktuell:</h3>
|
||||
<h5>@ProspectList.Count Einträge</h5>
|
||||
<div class="row m-0">
|
||||
<Repeater Items="@activeProspects">
|
||||
<Repeater Items="@ProspectList">
|
||||
<ProspectContainer Prospect="context" InteractionModal="InteractionModal" ProspectModal="ProspectModal" RemoveInteraction="RemoveInteraction"></ProspectContainer>
|
||||
</Repeater>
|
||||
</div>
|
||||
}
|
||||
|
||||
|
||||
@{
|
||||
var completedProspects = ProspectList?.Where(x => x.Interactions.Any(i => i.Type == InteractionType.Complete));
|
||||
}
|
||||
@if (completedProspects?.Any() == true)
|
||||
{
|
||||
<hr />
|
||||
<h3>Abgeschlossen:</h3>
|
||||
<div class="row m-0">
|
||||
<Repeater Items="@completedProspects">
|
||||
<ProspectContainer Prospect="context" InteractionModal="InteractionModal" ProspectModal="ProspectModal" RemoveInteraction="RemoveInteraction"></ProspectContainer>
|
||||
</Repeater>
|
||||
</div>
|
||||
}
|
||||
|
||||
|
||||
<AddProspectModal @ref="ProspectModal" OnAdd="OnAddProspect" OnUpdate="OnUpdateProspect"></AddProspectModal>
|
||||
<AddInteractionModal @ref="InteractionModal" OnAdd="OnAddInteraction" Users="Users"></AddInteractionModal>
|
||||
Reference in New Issue
Block a user