Prospectgrid draft
This commit is contained in:
30
FoodsharingSiegen.Server/Controls/ProspectGrid.razor
Normal file
30
FoodsharingSiegen.Server/Controls/ProspectGrid.razor
Normal file
@@ -0,0 +1,30 @@
|
||||
<h3>ProspectGrid</h3>
|
||||
|
||||
@code {
|
||||
|
||||
[Parameter] public List<Prospect>? Prospects { get; set; }
|
||||
|
||||
[Parameter] public Func<Guid, Task>? OnRemoveInteraction { get; set; }
|
||||
|
||||
[Parameter] public AddInteractionModal InteractionModal { get; set; } = null!;
|
||||
|
||||
[Parameter] public AddProspectModal? ProspectModal { get; set; } = null!;
|
||||
|
||||
[Parameter] public ProspectStateFilter StateFilter { get; set; }
|
||||
|
||||
}
|
||||
<h5>@(Prospects?.Count ?? 0) Einträge</h5>
|
||||
|
||||
@if (Prospects?.Any() == true)
|
||||
{
|
||||
<div class="row m-0">
|
||||
<Repeater Items="@Prospects">
|
||||
<ProspectContainer
|
||||
Prospect="context"
|
||||
InteractionModal="@InteractionModal"
|
||||
ProspectModal="@ProspectModal"
|
||||
RemoveInteraction="OnRemoveInteraction"
|
||||
StateFilter="StateFilter"></ProspectContainer>
|
||||
</Repeater>
|
||||
</div>
|
||||
}
|
||||
Reference in New Issue
Block a user