Prospects Page
This commit is contained in:
29
FoodsharingSiegen.Server/Pages/Prospects.razor
Normal file
29
FoodsharingSiegen.Server/Pages/Prospects.razor
Normal file
@@ -0,0 +1,29 @@
|
||||
@page "/"
|
||||
@page "/prospect"
|
||||
@page "/prospects"
|
||||
@using FoodsharingSiegen.Server.Dialogs
|
||||
@using FoodsharingSiegen.Server.Controls
|
||||
@using FoodsharingSiegen.Contracts.Entity
|
||||
|
||||
<PageTitle>Einarbeitungen</PageTitle>
|
||||
|
||||
<h4>Aktuelle Einarbeitungen</h4>
|
||||
|
||||
<Button Color="Color.Primary" Clicked="() => ProspectModal.Show()">Hinzufügen</Button>
|
||||
|
||||
<div class="row">
|
||||
<Repeater Items="@ProspectList?.Where(x => x.Interactions.All(i => i.Type != InteractionType.Complete))">
|
||||
<ProspectContainer Prospect="context" InteractionModal="InteractionModal" RemoveInteraction="@RemoveInteraction"></ProspectContainer>
|
||||
</Repeater>
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
<h4>Abgeschlossen</h4>
|
||||
<div class="row">
|
||||
<Repeater Items="@ProspectList?.Where(x => x.Interactions.Any(i => i.Type == InteractionType.Complete))">
|
||||
<ProspectContainer Prospect="context" InteractionModal="InteractionModal" RemoveInteraction="@RemoveInteraction"></ProspectContainer>
|
||||
</Repeater>
|
||||
</div>
|
||||
|
||||
<AddProspectModal @ref="ProspectModal" OnAdd="OnAddProspect"></AddProspectModal>
|
||||
<AddInteractionModal @ref="InteractionModal" OnAdd="OnAddInteraction" Users="Users"></AddInteractionModal>
|
||||
Reference in New Issue
Block a user